A Python library to convert Diameter protocol messages to JSON.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydiameter2json-0.1.0.tar.gz.
File metadata
- Download URL: pydiameter2json-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63a45756e648722714f3d68e9d7a6c65f644f31f1d9996b6d9fda760cdea1612
|
|
| MD5 |
d7b5da6d2bdcdffb234228fd3b3f8254
|
|
| BLAKE2b-256 |
b190162afcbae31a0e9d18a52a2bf75dcaeeea2d218a2dd5636eda3199256dca
|
File details
Details for the file pydiameter2json-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydiameter2json-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8210f25c1e99ba8887960ee4d3108bb77a0290021fabb6351a20cd25f563125e
|
|
| MD5 |
e36e9d587bbcf793739548ac5eac4a85
|
|
| BLAKE2b-256 |
6736b94bf5d0b4f3bfa93d1468b8b60e5f3ffa5538ad91aed20327e6ead5ac44
|