Skip to main content

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-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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydiameter2json-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydiameter2json-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for pydiameter2json-0.1.0.tar.gz
Algorithm Hash digest
SHA256 63a45756e648722714f3d68e9d7a6c65f644f31f1d9996b6d9fda760cdea1612
MD5 d7b5da6d2bdcdffb234228fd3b3f8254
BLAKE2b-256 b190162afcbae31a0e9d18a52a2bf75dcaeeea2d218a2dd5636eda3199256dca

See more details on using hashes here.

File details

Details for the file pydiameter2json-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pydiameter2json-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8210f25c1e99ba8887960ee4d3108bb77a0290021fabb6351a20cd25f563125e
MD5 e36e9d587bbcf793739548ac5eac4a85
BLAKE2b-256 6736b94bf5d0b4f3bfa93d1468b8b60e5f3ffa5538ad91aed20327e6ead5ac44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page