APIStats
Simple django module with a middleware to track calls to django backend.
Description
APIStats is a middleware that stores basic information on the requests and responses to Django backend.
Installation
pip install apistats- Add
apistatstoINSTALLED_APPS - Run
./manage.py migrate - Add
'apistats.middlewares.LoggingMiddleware'toMIDDLEWAREinsettings.py
Usage
APIstats adds an admin interface to :
- view / sort / filter records
- view detail of a record and statistics
Model
APIStats stores the following fields:
- user: user account making the request
- record_time: time of the record
- method: method of the request
- domain: first part of the request path
- path: complete path
- query: query parameters for GET requests
- ip: IP of the caller
- delay: nb of milliseconds between request and response
- status: response HTTP status
Metadata
Release files for apistats 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apistats-0.4.1.tar.gz | 7.0 kB | Without provenance | Details for apistats-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apistats-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for apistats-0.4.1-py3-none-any.whl |
Total release size: 16.6 kB
Release files / apistats-0.4.1.tar.gz
| Download URL | apistats-0.4.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f0c1d08c955b86b0bebd0d5cf3c93ee77e0e4a4c1c0c556ad7905f2776b32cd
|
|
BLAKE2b-256 checksum How to use checksums |
5a0785c260702aa435631c5da30bcb437940eb0079d53d60236a5df3c052c1c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.3
|
Release files / apistats-0.4.1-py3-none-any.whl
| Download URL | apistats-0.4.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17b620aeea6fbb000f8cdbba6af3c1bdc8a6bb66146ca4567ae053f83b16c716
|
|
BLAKE2b-256 checksum How to use checksums |
55b27cda5294ed719219e95b76b4ea120fa06da9861a307dd0cd61431f1362ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.3
|
Security for apistats 0.4.1
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.