Calibrated!
This is a middleware for django which gives same structure in django success and error case.
When frontend softwares integrate apis, then they expect response structure should remain same in case of both error and success. By adding this middleware onne can achive sam structure through out.
{ "status": false, "detail": {}, "error_detail": { } }
The above payload is the structure which one can recive by applying the package to django appliaction.
Description to payload
- status field can be true or false in success and error case respectively
- detail field will always be in form of dict and will hold value only in case of success(2xx)
- error_detail will have detail in cases excluding (2xx)
Steps to install
This is quite easy to use
pip install calibrated
After installing pip package, go to you django settings and add middeware
calibrated.Response
Metadata
Release files for calibrated 0.0.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 |
|---|---|---|---|---|
| calibrated-0.0.1.tar.gz | 1.9 kB | Without provenance | Details for calibrated-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| calibrated-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for calibrated-0.0.1-py3-none-any.whl |
Total release size: 4.9 kB
Release files / calibrated-0.0.1.tar.gz
| Download URL | calibrated-0.0.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04dc3ee240168617bb23f251158c980142f00cf3b32545d2ee222ff5dd8c315a
|
|
BLAKE2b-256 checksum How to use checksums |
72245b02305602f1dbb5a85a71db6114cb9b89d2cd7d270e63e19702c298ddd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
|
Release files / calibrated-0.0.1-py3-none-any.whl
| Download URL | calibrated-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dcd90224d23ed9fca4da6825e33663a707b997a1a42a09a28f75d18a37f3fe74
|
|
BLAKE2b-256 checksum How to use checksums |
7ebb5b570f5212362f6f62c8dc04705fe5446a75cc32eab9ae7a4d37df602754
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
|
Security for calibrated 0.0.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.