{"id":27810,"library":"ghga-service-chassis-lib","title":"GHGA Service Chassis Library","description":"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.","status":"active","version":"0.17.8","language":"python","source_language":"en","source_url":"https://github.com/ghga-de/ghga-service-chassis-lib","tags":["ghga","service","chassis","microservice","configuration","logging","error-handling"],"install":[{"cmd":"pip install ghga-service-chassis-lib","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"note":"ApiConfigBase is in the api submodule, not top-level.","wrong":"from ghga_service_chassis_lib import ApiConfigBase","symbol":"ApiConfigBase","correct":"from ghga_service_chassis_lib.api import ApiConfigBase"},{"note":"Logging utilities are in the logging submodule.","wrong":"from ghga_service_chassis_lib import configure_logging","symbol":"configure_logging","correct":"from ghga_service_chassis_lib.logging import configure_logging"},{"note":"The class is capitalized 'HttpyExpect'.","wrong":"from ghga_service_chassis_lib.httpyexpect import httpyexpect","symbol":"HttpyExpect","correct":"from ghga_service_chassis_lib.httpyexpect import HttpyExpect"}],"quickstart":{"code":"from ghga_service_chassis_lib.api import ApiConfigBase\nfrom ghga_service_chassis_lib.logging import configure_logging\n\nclass MyConfig(ApiConfigBase):\n    service_name: str = \"my-service\"\n    service_instance_id: str = \"001\"\n\nconfig = MyConfig()\nconfigure_logging(config)\nprint(f\"Service {config.service_name} ready.\")","lang":"python","description":"Quickstart demonstrates creating a config class and setting up logging."},"warnings":[{"fix":"Update config models: replace 'class Config' with 'model_config = ConfigDict()' and use 'Field()' for validators if needed.","message":"Breaking change: In v0.17.0, the dependency pydantic was updated to v2. Config classes must now use pydantic v2 syntax.","severity":"breaking","affected_versions":">=0.17.0"},{"fix":"Catch 'HttpyExpectError' instead of older exception types.","message":"Breaking change: In v0.16.0, the httpyexpect library was updated, changing the exception hierarchy.","severity":"breaking","affected_versions":">=0.16.0"},{"fix":"Always install via pip; avoid manually copying packages into site-packages.","message":"The library uses a namespace package structure. Installing multiple 'ghga-' packages may cause issues if not installed via pip.","severity":"gotcha","affected_versions":"all"},{"fix":"Use FastAPI's lifespan context manager instead of 'configure_app'.","message":"The 'api' submodule's 'configure_app' function is deprecated in favor of direct usage of FastAPI lifespan.","severity":"deprecated","affected_versions":">=0.17.0"}],"env_vars":null,"search_vec":"'0.17.8':38 'api':27 'archiv':21 'base':9 'cadenc':40 'chassi':3,10,46 'client':34 'common':24 'configur':28,48 'current':36 'error':30,51 'error-handl':50 'function':11 'genom':19 'genome-phenom':18 'german':16 'ghga':1,15,44 'handl':31,52 'http':33 'human':17 'includ':23 'irregular':41 'librari':4,6 'log':29,49 'microservic':13,47 'month':43 'pattern':25 'phenom':20 'provid':7 'releas':39 'rough':42 'servic':2,45 'util':35 'version':37","created_at":"2026-05-09T05:52:12.422332+00:00","updated_at":"2026-05-09T05:52:12.422332+00:00","problems":{"verify_error":"× Failed to build `pyyaml==6.0`\n  ├─▶ The build backend returned an error\n  ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)\n\n      [stdout]\n      running egg_info\n      writing lib/PyYAML.egg-info/PKG-INFO\n      writing dependency_links to lib/PyYAML.egg-info/dependency_links"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/ghga-de/ghga-service-chassis-lib","docs":null,"changelog":null,"pypi":"https://pypi.org/project/ghga-service-chassis-lib/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking","web-framework","observability","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}