pydiameter2json
A Python library to convert Diameter protocol messages to JSON.
Features
- Convert Diameter protocol messages into JSON format.
- Built on top of
diameter-codecandpython-diameterlibraries. - Command-line interface powered by
typer.
Installation
Install the library using pip:
pip install pydiameter2json
Usage
Library Usage
from pydiameter2json import message_to_json, avp_to_json
# Example Diameter message
diameter_message = b"..."
json_output = message_to_json(diameter_message)
diameter_avp = b"..."
json_output = message_to_json(diameter_avp)
Command-Line Interface
For more details, use the --help flag:
pydiameter2json --help
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and push the branch.
- Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Links
Metadata
Release files for pydiameter2json 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydiameter2json-0.1.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydiameter2json-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / pydiameter2json-0.1.0.tar.gz
| Download URL | pydiameter2json-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63a45756e648722714f3d68e9d7a6c65f644f31f1d9996b6d9fda760cdea1612
|
|
BLAKE2b-256 checksum How to use checksums |
b190162afcbae31a0e9d18a52a2bf75dcaeeea2d218a2dd5636eda3199256dca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.25
|
Release files / pydiameter2json-0.1.0-py3-none-any.whl
| Download URL | pydiameter2json-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8210f25c1e99ba8887960ee4d3108bb77a0290021fabb6351a20cd25f563125e
|
|
BLAKE2b-256 checksum How to use checksums |
6736b94bf5d0b4f3bfa93d1468b8b60e5f3ffa5538ad91aed20327e6ead5ac44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.25
|