Skip to main content

A simple health check server using FastAPI

Project description

Health Server

A simple health check server built with FastAPI.

Installation

  1. Clone the repository.
  2. Navigate to the health-server directory.
  3. Install the dependencies using pip:
pip install .

Running the server

To run the FastAPI application, use uvicorn:

uvicorn health_server:app --reload

This will start the server at http://127.0.0.1:8000.

Health Check Endpoint

The health check endpoint is available at /health. You can access it using a web browser or a tool like curl:

curl http://127.0.0.1:8000/health

This endpoint will return a JSON response indicating the health status:

{"status": "ok"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

health_server-1.0.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

health_server-1.0.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file health_server-1.0.0.tar.gz.

File metadata

  • Download URL: health_server-1.0.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.8

File hashes

Hashes for health_server-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8d73cfc73a076657c783fa0268e277a69a226e57fb9131a94aa78f6df2d69cb2
MD5 8a824614a20457f1a382f0c392fd84b4
BLAKE2b-256 0e1a774979e66b987018cf8e603b7d29ff841c092ed4ac9dee3c1e910d50c2e9

See more details on using hashes here.

File details

Details for the file health_server-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for health_server-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffcd5feb9f41cdfdeee7d83f924233d11b0902ac50027edcfb86380eec905740
MD5 e62eff9d9874ca4f5b591d9069def15f
BLAKE2b-256 79b9b3c0d6fa62473e42df356c67b2907e1cddb47290ad27ca3885b4e564872e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page