Registry / web-framework / ghga-service-commons

ghga-service-commons

JSON →
library7.0.1pypypiunverified

A library providing common functionality for GHGA services, including FastAPI utilities, authentication, config management, and custom HTTPX transports (caching, retry, rate limiting). Current version: 7.0.1. Requires Python >=3.10. Release cadence: irregular, with breaking changes in major versions (6.0.0, 7.0.0).

pip install ghga-service-commons
INSTALL
IMPORT
SIG · GHGA-SERVICE-COMMO
G
ghga-service-commons
web-frameworkpythonv7.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

HealthEndpointConfig
✓ from ghga_service_commons.utils.health_check import HealthEndpointConfig
✗ from ghga_service_commons.utils.health_check import HealthEndpointConfig

Basic usage: health endpoint configuration and auth context creation.

import os from ghga_service_commons.utils.health_check import HealthEndpointConfig from ghga_service_commons.auth.context import AuthContext # Example: configure health endpoint config = HealthEndpointConfig() print(f"Health endpoint configured: {config}") # Example: create an auth context # (requires GHGA credentials or use environment variable) auth = AuthContext() print(f"Auth context: {auth}")
Debug
Known issues
breakingVersion 7.0.0 introduced potentially breaking changes: FastAPI now returns 401 instead of 403 for missing authentication. Also Hishel was upgraded to a stable version, removing some caching features.
fix
Review your FastAPI error handling: expect 401 instead of 403 for auth failures. If using caching, check Hishel compatibility.
affects: >=7.0.0
breakingVersion 6.0.0 introduced changes to the transport layer. CompositeRetryAndRateLimitTransport and other custom transports may require updated instantiation patterns.
fix
See the migration guide in the GitHub release notes for 6.0.0.
affects: >=6.0.0 <7.0.0
gotchaThe transports subpackage requires the optional dependency 'transports' extra. Install with 'pip install ghga-service-commons[transports]'.
fix
Add the 'transports' extra to your dependency.
affects: >=5.3.0
deprecatedOld import paths like 'ghga_service_commons.utils.health' are deprecated. Use 'ghga_service_commons.utils.health_check' instead.
fix
Update imports to the correct submodules.
affects: >=6.0.0
Upgrade
Version history
7.0.1latest on PyPI · released Apr 23, 2026
Audit
Dependencies
fastapirequiredcore web framework dependency
httpxrequiredHTTP client for transports
hisheloptionalcaching support (transports extra)
Agent activity
33 hits · last 30 days
node
30
OpenAI (training)
2
Amazon
1
Resources
ghga-service-commons — pip install ghga-service-commons · libregistry