Utility library with various reusable FastAPI components
Project description
OS2MO-FastAPI-Utils
Utility library with various reusable FastAPI components.
Usage
Install into your project using pip
:
pip install os2mo-fastapi-utils
Then import it inside a Python file:
from fastapi import FastAPI
from os2mo_fastapi_utils.tracing import setup_instrumentation
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello World"}
app = setup_instrumentation(app)
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
Built Distribution
Close
Hashes for os2mo-fastapi-utils-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f093172ff14550288d8d226e65d377d3fe59d2393b789758c6f77b8a203fd8e |
|
MD5 | 4f8a9694372bb24370719ed32e56b0cd |
|
BLAKE2b-256 | ed5c66c5d30133fc74aa8e1526f940fab344ddaeda92c49a77b0771f1d3545b7 |
Close
Hashes for os2mo_fastapi_utils-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53458b2a573022a6bf0ab10df3b35d6ffc1f834d54618cf8dfc23e3b8983a1b |
|
MD5 | b569f3b123f3138b3b6f7a6a19316eb4 |
|
BLAKE2b-256 | 337f0344850bc76840b16650aee085924ffbbcebebe8274344869d38f7374058 |