Monitoring and analytics for APIs.
Project description
API Analytics
Installation
python -m pip install api-analytics
Usage
FastAPI
from fastapi import FastAPI
from api_analytics.fastapi import Analytics
app = FastAPI()
app.add_middleware(Analytics, <api_key>)
@app.get("/")
async def root():
return {"message": "Hello World"}
Flask
from flask import Flask
from api_analytics.flask import add_middleware
app = Flask(__name__)
add_middleware(app, <api_key>)
@app.get("/")
def root():
return {"message": "Hello World"}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
api-analytics-1.0.0.tar.gz
(39.8 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 api-analytics-1.0.0.tar.gz.
File metadata
- Download URL: api-analytics-1.0.0.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/5.0.0 keyring/23.9.3 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
087a91510a1187c1730c854a4c05027aa154e9a5e6ffa84df3f4f208848f0ec2
|
|
| MD5 |
bd1fc4bbb64d5863f0708b2d744797ee
|
|
| BLAKE2b-256 |
167159e729f174046a19a51d41439fa92ded421d8303a13f4c63e6b88b7bb4fa
|
File details
Details for the file api_analytics-1.0.0-py3-none-any.whl.
File metadata
- Download URL: api_analytics-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/5.0.0 keyring/23.9.3 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b601cf6f1a86dc8e07c882866e4e126bb838142c84a02bcf312a8d2987b863a1
|
|
| MD5 |
61a9a6a2550b28759db808737aacab73
|
|
| BLAKE2b-256 |
7cd5f912e9d740d8d69a9d3cbfd68b4f05371f7e4f86a3e418d16f19a4604ab5
|