Metadata-Version: 2.1
Name: rfc9290
Version: 0.1.1
Summary: Simple encoder/decoder for RFC 9290 Concise Problem Details
Home-page: https://github.com/JAG-UK/rfc9290
Author: JAG-UK
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cbor2

# rfc9290
Simple encoder/decoder for RFC 9290 Concise Problem Details

# Usage

```python
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!
