Health Server
A simple health check server built with FastAPI.
Installation
- Clone the repository.
- Navigate to the
health-serverdirectory. - 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"}
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d73cfc73a076657c783fa0268e277a69a226e57fb9131a94aa78f6df2d69cb2
|
|
| MD5 |
8a824614a20457f1a382f0c392fd84b4
|
|
| BLAKE2b-256 |
0e1a774979e66b987018cf8e603b7d29ff841c092ed4ac9dee3c1e910d50c2e9
|
File details
Details for the file health_server-1.0.0-py3-none-any.whl.
File metadata
- Download URL: health_server-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffcd5feb9f41cdfdeee7d83f924233d11b0902ac50027edcfb86380eec905740
|
|
| MD5 |
e62eff9d9874ca4f5b591d9069def15f
|
|
| BLAKE2b-256 |
79b9b3c0d6fa62473e42df356c67b2907e1cddb47290ad27ca3885b4e564872e
|