Skip to main content

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)

Source distribution for rfc9290 0.1.1
File Size Uploaded
rfc9290-0.1.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rfc9290 0.1.1
File Interpreter ABI Platform
rfc9290-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page