rfc9290
Simple encoder/decoder for RFC 9290 Concise Problem Details
Usage
from rfc9290 import encode_problem_details, decode_problem_details
# Build Problem Details as a dictionary
problem_details = {
"type": "https://example.com/error/validation-error",
"title": "Validation Error",
"detail": "Missing required field 'username'.",
"instance": "/requests/12345",
"response-code": 400
}
# Encode to CBOR
cbor_encoded = encode_problem_details(problem_details)
print("CBOR Encoded:", cbor_encoded)
# Decode back to dictionary
decoded_details = decode_problem_details(cbor_encoded)
print("Decoded Details:", decoded_details)
Contributing
If you like CBOR/COSE please join the party and contribute code/tools!
Metadata
Release files for rfc9290 0.1.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 |
|---|---|---|---|---|
| rfc9290-0.1.1.tar.gz | 2.9 kB | Without provenance | Details for rfc9290-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rfc9290-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rfc9290-0.1.1-py3-none-any.whl |
Total release size: 6.6 kB
Release files / rfc9290-0.1.1.tar.gz
| Download URL | rfc9290-0.1.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95f4e26fe73159f7475db2366edb824a7072ad61a92a9bb8c58c2f45cdf8e138
|
|
BLAKE2b-256 checksum How to use checksums |
832dec4f57bcc04a56623bfe804bc1feabeab0b27f38b7f832c9ae0cccebdf56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / rfc9290-0.1.1-py3-none-any.whl
| Download URL | rfc9290-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0880ad63716ca337997d77fb70e22762aa893cd4fadd00e98ffb31051e920566
|
|
BLAKE2b-256 checksum How to use checksums |
442c811ff744e2c37fdcdf0963e2ae0bf8803318e218e7d666d6b754b1a84641
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for rfc9290 0.1.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.