{"id":44915,"library":"fastapi-healthchecks","title":"FastAPI Healthchecks","description":"FastAPI Healthchecks provides a simple, configurable healthcheck endpoint for FastAPI applications. Version 1.1.0 supports customizable health checks, async checks, and integration with monitoring tools. Released as needed, currently active.","status":"active","version":"1.1.0","language":"python","source_language":"en","source_url":"https://github.com/Kludex/fastapi-healthchecks","tags":["fastapi","healthcheck","monitoring"],"install":[{"cmd":"pip install fastapi-healthchecks","lang":"bash","label":"default"}],"dependencies":[{"reason":"required for app integration","package":"fastapi","optional":false}],"imports":[{"wrong":"from fastapi_healthchecks import HealthCheck","symbol":"HealthCheck","correct":"from fastapi_healthchecks import HealthCheck"}],"quickstart":{"code":"from fastapi import FastAPI\nfrom fastapi_healthchecks import HealthCheck\n\napp = FastAPI()\n\ndef db_health() -> dict:\n    return {\"database\": \"ok\"}\n\n@app.on_event(\"startup\")\nasync def startup():\n    hc = HealthCheck(app, checks=[db_health])\n    hc.register()","lang":"python","description":"Registers a basic healthcheck endpoint at /health."},"warnings":[{"fix":"Replace `healthcheck=your_check` with `checks=[your_check]`.","message":"Version 1.0.0 removed the deprecated `healthcheck` attribute in favor of `checks` parameter.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Call register() inside @app.on_event('startup') or during app initialization.","message":"HealthCheck.register() must be called after the app is ready (e.g., inside a startup event) or the endpoint may not be available.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to `checks` parameter as a list of callables.","message":"The `healthcheck` parameter in HealthCheck is deprecated since 0.3.0 and removed in 1.0.0.","severity":"deprecated","affected_versions":"<1.0.0"}],"env_vars":null,"search_vec":"'1.1.0':15 'activ':31 'applic':13 'async':20 'check':19,21 'configur':8 'current':30 'customiz':17 'endpoint':10 'fastapi':1,3,12,32 'health':18 'healthcheck':2,4,9,33 'integr':23 'monitor':25,34 'need':29 'provid':5 'releas':27 'simpl':7 'support':16 'tool':26 'version':14","created_at":"2026-06-07T12:52:27.796786+00:00","updated_at":"2026-06-07T12:52:27.796786+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'HealthCheck' from 'fastapi_healthchecks' (/tmp/tmprlcy5u70/venv/lib/python3.12/site-packages/fastapi_healthchecks/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}