Registry / http-networking / ghga-service-chassis-lib

ghga-service-chassis-lib

JSON →
library0.17.8pypypiunverified

A library providing the base chassis functionality for microservices at GHGA (German Human Genome-Phenome Archive). It includes common patterns for API configuration, logging, error handling, and HTTP client utilities. Current version: 0.17.8. Release cadence: irregular, roughly monthly.

http-networkingweb-frameworkobservabilitydevops
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.

ApiConfigBase is in the api submodule, not top-level.

from ghga_service_chassis_lib.api import ApiConfigBase

Logging utilities are in the logging submodule.

from ghga_service_chassis_lib.logging import configure_logging

The class is capitalized 'HttpyExpect'.

from ghga_service_chassis_lib.httpyexpect import HttpyExpect

Quickstart demonstrates creating a config class and setting up logging.

from ghga_service_chassis_lib.api import ApiConfigBase from ghga_service_chassis_lib.logging import configure_logging class MyConfig(ApiConfigBase): service_name: str = "my-service" service_instance_id: str = "001" config = MyConfig() configure_logging(config) print(f"Service {config.service_name} ready.")
Debug
Known footguns
breakingBreaking change: In v0.17.0, the dependency pydantic was updated to v2. Config classes must now use pydantic v2 syntax.
breakingBreaking change: In v0.16.0, the httpyexpect library was updated, changing the exception hierarchy.
gotchaThe library uses a namespace package structure. Installing multiple 'ghga-' packages may cause issues if not installed via pip.
deprecatedThe 'api' submodule's 'configure_app' function is deprecated in favor of direct usage of FastAPI lifespan.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
11 hits · last 30 days
gptbot
3
ahrefsbot
3
claudebot
3
bingbot
1
Resources