{"id":342,"library":"azure-core","title":"Azure Core Library for Python","description":"The Azure Core Library for Python provides essential functionalities for Azure SDK clients, including authentication, logging, and HTTP transport. Current version: 1.39.0. Release cadence: Regular updates with new features and fixes.","status":"active","version":"1.39.0","language":"python","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core","tags":["azure","core","python","sdk"],"install":[{"cmd":"pip install azure-core","lang":"bash","label":"Install azure-core"}],"dependencies":[{"reason":"Provides authentication support for Azure SDK clients","package":"azure-identity","optional":false}],"imports":[{"note":"Ensure correct import path to avoid ImportError","symbol":"HttpRequest","correct":"from azure.core.pipeline import HttpRequest"}],"quickstart":{"code":"from azure.core.pipeline import HttpRequest\n\n# Create an HttpRequest object\nrequest = HttpRequest('GET', 'https://example.com')\n\n# Send the request (assuming a transport is set up)\nresponse = await transport.send(request)\n\nprint(response.status_code)","lang":"python","description":"Basic usage of HttpRequest from azure-core"},"warnings":[{"fix":"Install specific Azure SDK packages like 'azure-core' directly.","message":"The 'azure' meta-package is deprecated as of version 5.0.0 and can no longer be installed. Install individual packages as needed.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Install specific Azure SDK packages like 'azure-core' directly.","message":"The 'azure' meta-package is deprecated as of version 5.0.0 and can no longer be installed. Install individual packages as needed.","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"Ensure that any function containing 'await' expressions is declared with 'async def'. For top-level script execution, wrap the async call in an async function and use `asyncio.run()`.","message":"Attempting to 'await' an asynchronous operation (e.g., from an Azure SDK transport client) outside of an 'async def' function will result in a 'SyntaxError: 'await' outside function'. This typically happens when using async client methods without defining the caller function as asynchronous.","severity":"gotcha","affected_versions":"*"},{"fix":"Ensure all 'await' expressions are placed inside a function defined with 'async def'. If using 'await' at the top level, ensure your Python version and execution environment supports it (e.g., Python 3.11+ module, IPython/Jupyter, or a custom event loop runner).","message":"Using 'await' outside of an 'async def' function context will raise a SyntaxError. Top-level 'await' is not directly supported in standard Python scripts prior to Python 3.11 for modules, or Python 3.7 for REPL.","severity":"breaking","affected_versions":">=3.5"}],"env_vars":null,"last_verified":"2026-05-12T13:11:06.339Z","next_check":"2026-06-26T00:00:00.000Z","problems":[{"fix":"Install the package using 'pip install azure-core'.","cause":"The 'azure-core' package is not installed in the Python environment.","error":"ModuleNotFoundError: No module named 'azure.core'"},{"fix":"Ensure 'azure-core' is installed by running 'pip install azure-core'.","cause":"The 'azure-core' package is missing, which is required by the Azure SDK.","error":"ImportError: You need to install 'azure-core' to use this feature"},{"fix":"Use the client interface provided by the SDK instead of importing operation classes directly.","cause":"A circular import issue occurs when directly importing operation classes from the Azure SDK.","error":"ImportError: cannot import name 'VirtualMachinesOperations' from partially initialized module 'azure.mgmt.compute.v2022_03_01.operations'"},{"fix":"Update the 'azure-identity' package to the latest version using 'pip install --upgrade azure-identity'.","cause":"A version compatibility issue exists between the 'azure-identity' package and the Python environment.","error":"ImportError: DLL load failed while importing _rust: The specified procedure could not be found."},{"fix":"Upgrade the `azure-core` library to the latest version, or a version that includes `AccessTokenInfo`: `pip install --upgrade azure-core azure-identity` (if using `azure-identity` which often relies on it).","cause":"The `AccessTokenInfo` class was introduced in a newer version (e.g., 1.33.0) of `azure-core`, and your installed version is older, or there's a dependency conflict where an older version is being used.","error":"ImportError: cannot import name 'AccessTokenInfo' from 'azure.core.credentials'"}],"ecosystem":"pypi","meta_description":null,"install_score":0,"install_tag":"stale","quickstart_score":0,"quickstart_tag":"stale","pypi_latest":null,"install_checks":{"last_tested":"2026-05-12","tag":"stale","tag_description":"widespread failures or data too old to trust","results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null}]},"quickstart_checks":{"last_tested":"2026-04-23","tag":"stale","tag_description":"widespread failures or data too old to trust","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}}