edgegrid-python
{OPEN} client authentication protocol for python-requests
What it is and what it does
EdgeGrid for Python is an authentication handler that integrates with the requests library to sign HTTP requests using the EdgeGrid Authentication scheme. It allows you to authenticate API calls by managing credentials (client token, client secret, access token) and automatically computing request signatures with timestamps. The library reads credentials from a local .edgerc configuration file or accepts them as constructor arguments, then attaches the computed authentication headers to outgoing requests.
The package is designed for developers building Python applications that interact with APIs requiring EdgeGrid authentication. It handles the cryptographic signing and header construction transparently, so you work with requests as normal—passing headers, query parameters, and request bodies—while the authentication layer manages signing. It supports multipart form data via requests_toolbelt and file-like objects for request bodies, and includes debugging facilities for logging request details.
Use it for:
- Authenticate requests to APIs from a Python application or script using EdgeGrid credentials.
- Build automation tools that interact with identity management, configuration, or reporting endpoints.
- Integrate API calls into a larger Python service without manually computing EdgeGrid signatures.
- Debug and log API interactions during development using the built-in logging support.
- Deploy credential-based API clients that read authentication from .edgerc files for multi-environment setups.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides an authentication handler for HTTP requests using Akamai's EdgeGrid Authentication scheme, integrating with the requests library to sign API calls.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is the standard way to authenticate EdgeGrid API requests from Python. Install it if you need to call EdgeGrid-authenticated APIs from a Python application.
Install
edgegrid-python on PyPI
pip
pip install edgegrid-pythonuv
uv add edgegrid-pythonpoetry
poetry add edgegrid-pythonInstalling edgegrid-python
Before you install
Low friction install with only two runtime dependencies (requests and requests_toolbelt). The package is actively maintained with a recent release and no known vulnerabilities.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install edgegrid-python
import requests
from edgegrid_python import EdgeGridAuth, EdgeRc
edgerc = EdgeRc('~/.edgerc')
session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, 'default')
result = session.get('https://host.luna.akamaiapis.net/path')
Requires Python 3.10 or later; credentials must be configured in a .edgerc file or passed explicitly to EdgeGridAuth.
Verify before relying
- Whether the package supports HTTP/2 or other modern protocol features beyond standard HTTP/1.1 signing.
- Performance characteristics when handling high-volume or concurrent requests.
- Compatibility with async/await patterns or if it is synchronous-only.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, requests_toolbelt |
| Maintenance | actively maintained — 87 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 878,769/month — #4,825 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: edgegrid_python-2.0.7-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
requests-ntlm3Provides HTTP NTLM authentication for the…
permissive · top 15,000 on PyPI
google-cloud-bigquery-loggingPython client library for Google Cloud BigQuery…
permissive · top 15,000 on PyPI
google-cloud-iamconnectorcredentialsProvides a Python client library for Google…
permissive · top 15,000 on PyPI
aws-requests-authAdds AWS Signature Version 4 authentication to…
permissive · top 1,000 on PyPI
aws-request-signerSigns HTTP requests using AWS Signature V4,…
permissive · top 15,000 on PyPI
google-cloud-iamProvides a Python client library for Google…
permissive · top 5,000 on PyPI
turnkey-api-key-stamperSigns Turnkey API requests with your API key…
permissive · top 15,000 on PyPI
veracode-api-signingSigns HTTP requests destined for the Veracode…
permissive · top 15,000 on PyPI
xclienttransactionGenerates X-Client-Transaction-ID headers for…
permissive · top 15,000 on PyPI
linode-api4Official Python SDK for the Linode API v4,…
permissive · top 15,000 on PyPI