Api-Stats
Updates a json file with the function name whenever the function is called
I'm gonna use this with my api so im calling it api-stats
Download:
pip install fast-api-stats
Example Usage:
from fastapi import FastAPI
from fastapistats import Stats
app = FastAPI()
# Add this line if you want a custom location for you json file
Stats.file_name = "json_files/stats.json"
# you can also make a variable with the class and use that instead of @Stats.update_stats
update = Stats.update_stats
@app.get("/name")
@update(name="name") # if the name kwarg is not passed it will default to the function name
def show_name(name : str): # This is just an example endpoint
return {"your_name" : name}
Metadata
Release files for fast-api-stats 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fast_api_stats-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for fast_api_stats-0.0.4-py3-none-any.whl |
Release files / fast_api_stats-0.0.4-py3-none-any.whl
| Download URL | fast_api_stats-0.0.4-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
274df88df51c344a7830c1187030f53adfeba2395ccb1e1c32342ddfa630d498
|
|
BLAKE2b-256 checksum How to use checksums |
ee340a2ff07544eabe98f17a722a361edfbcce4819eb4b85d0a37fc999ec1147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.60.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.0
|
Security for fast-api-stats 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.