Skip to main content

pydiameter2json

A Python library to convert Diameter protocol messages to JSON.

Features

  • Convert Diameter protocol messages into JSON format.
  • Built on top of diameter-codec and python-diameter libraries.
  • 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:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes and push the branch.
  4. 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)

Source distribution for pydiameter2json 0.1.0
File Size Uploaded
pydiameter2json-0.1.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydiameter2json 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

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