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.1.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.1.tar.gz.
File metadata
- Download URL: api-analytics-1.0.1.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 |
be816e74d370a94d221c0da2ab4c9629c994eaf668d2c023201f99f82057a942
|
|
| MD5 |
b85d1689416443b945e56798f50af1a1
|
|
| BLAKE2b-256 |
0fea0ad9466eef69f3ac6aa661baed4551d77d933937c5abfd79fdf5ae2bf3dc
|
File details
Details for the file api_analytics-1.0.1-py3-none-any.whl.
File metadata
- Download URL: api_analytics-1.0.1-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 |
75b3bc7ebf8095bafefe4d79a662d9b72386d471ce4074b815711dfde70f902b
|
|
| MD5 |
1fb7bcedafbc32c51d32c19875196b1b
|
|
| BLAKE2b-256 |
9590eb8a14db442cd77ba8fc13d66875bd115891b63d84d3b4ef243ec04c0ea7
|