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
File details
Details for the file os2mo-fastapi-utils-0.0.2.tar.gz
.
File metadata
- Download URL: os2mo-fastapi-utils-0.0.2.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
44eea26244dc10b6394ccd0336fdf7314d6162557d800107b1794c1b6dc7ed6a
|
|
MD5 |
b2c81680bb0f85679a2fb947502272a5
|
|
BLAKE2b-256 |
bba4892d8b621ed271afe988cd744ec1ab4f458f20d1c70ea005b1c60797c0d8
|
File details
Details for the file os2mo_fastapi_utils-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: os2mo_fastapi_utils-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a596973a967b7e7a7385bc898be56cea92958886703a883ab798d7d3b056380b
|
|
MD5 |
3e739a6fe62c6544715269273dee3553
|
|
BLAKE2b-256 |
b8cf5ccef9752a37e22bf9bf4371a8141f54358cce3b41b5e92616a90c511f45
|