Registry / azure / azure-core

azure-core

JSON →
library1.41.0pypypi✓ verified 25d ago

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.

pip install azure-core
INSTALL
IMPORT
SIG · AZURE-CORE
A
azure-core
azurepythonv1.41.0
Install
2.6s avg
Import
362ms
Disk
21MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.41.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.378s · 23MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.346s · 23MB
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpRequest
from azure.core.pipeline.transport import HttpRequest
from azure.core.pipeline import HttpRequest

Basic usage of HttpRequest from azure-core

from azure.core.pipeline import HttpRequest # Create an HttpRequest object request = HttpRequest('GET', 'https://example.com') # Send the request (assuming a transport is set up) response = await transport.send(request) print(response.status_code)
Debug
Known issues
breakingThe 'azure' meta-package is deprecated as of version 5.0.0 and can no longer be installed. Install individual packages as needed.
fix
Install specific Azure SDK packages like 'azure-core' directly.
affects: >=5.0.0
deprecatedThe 'azure' meta-package is deprecated as of version 5.0.0 and can no longer be installed. Install individual packages as needed.
fix
Install specific Azure SDK packages like 'azure-core' directly.
affects: >=5.0.0
gotchaAttempting 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.
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()`.
affects: *
breakingUsing '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.
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).
affects: >=3.5
Upgrade
Version history
1.41.0latest on PyPI · released May 7, 2026
Audit
Dependencies
azure-identityrequiredProvides authentication support for Azure SDK clients
Agent activity
25 hits · last 30 days
node
20
OpenAI (training)
1
Resources
azure-core — pip install azure-core · libregistry