python-diameter


Namepython-diameter JSON
Version 0.7.2 PyPI version JSON
download
home_pageNone
SummaryA diameter stack implemented in python
upload_time2024-06-17 06:58:42
maintainerNone
docs_urlNone
authorMikko Mensonen
requires_python>=3.11
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Diameter Stack

This Python package provides tools to create and parse Diameter Messages and 
AVPs, to communicate with diameter peers using the diameter base protocol and 
to write diameter applications, as defined in the Diameter Base `rfc6733`.

The diameter stack supports transports over both *TCP* and *SCTP*.

The provided Application and Node implementations handle the majority of the 
basic protocol-level operations automatically, such as managing peer tables, 
sending CER/CEA, DWR/DEA and disconnecting with DPR/DPA. 

## Installation

The latest version can be installed from PyPI as 
[python-diameter](https://pypi.org/project/python-diameter/):

```shell
~# pip install python-diameter
```

SCTP support provided by an optional depency on [pysctp](https://pypi.org/project/pysctp/).

## Functional overview

The package contains an extensive AVP dictionary and allows constructing
AVPs and Diameter messages either manually, or by parsing network-received 
bytes. Message AVPs can be accessed directly as instance attributes.

The `diameter` package provides tools for:

- [Parsing and writing AVPs](https://mensonen.github.io/diameter/guide/avp)
- [Parsing and writing diameter Mesages](https://mensonen.github.io/diameter/guide/message)
- [Creating diameter nodes and connecting to other peers](https://mensonen.github.io/diameter/guide/node)
- [Writing diameter applications](https://mensonen.github.io/diameter/guide/application)

## Supported applications

The diameter stack has inbuilt support for Diameter Base, *Gy*, *Rf*, *Ro* and
*Sy* applications and a generic implementation of application types that allows
working even with unsupported application types.

## Supported diameter application commands

The diameter stack provides a Python command class for the following 
application message types:

*Diameter Base Protocol* `rfc3588`, `rfc6733`

 * Abort-Session
 * Accounting
 * Capabilities-Exchange
 * Device-Watchdog
 * Disconnect-PeerConnection
 * Re-Auth
 * Session-Termination

*Diameter Mobile IPv4* `rfc4004`

 * AA-Mobile-Node
 * Home-Agent-MIP

*Diameter Network Access Server* `rfc4005`, `rfc7155`

 * AA
 * Abort-Session
 * Accounting
 * Re-Auth
 * Session-Termination

*Diameter Credit Control* `rf4006`, `rfc6733`, `3GPP TS 32.299`

 * Credit-Control, with full 3GPP specification support

*Diameter Extensible Authentication Protocol (EAP)* `rfc4072`
 
 * Diameter-EAP

*Diameter Policy and charging control* `3GPP TS 29.219`

 * Spending-Limit
 * Spending-Status-Notification

The stack includes also a generic fallback Python class for every other message.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "python-diameter",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Mikko Mensonen",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/08/9f/41769a98ab37a208e84ccba858ed995a359042818aa146385a0cd6f7beae/python_diameter-0.7.2.tar.gz",
    "platform": null,
    "description": "# Python Diameter Stack\n\nThis Python package provides tools to create and parse Diameter Messages and \nAVPs, to communicate with diameter peers using the diameter base protocol and \nto write diameter applications, as defined in the Diameter Base `rfc6733`.\n\nThe diameter stack supports transports over both *TCP* and *SCTP*.\n\nThe provided Application and Node implementations handle the majority of the \nbasic protocol-level operations automatically, such as managing peer tables, \nsending CER/CEA, DWR/DEA and disconnecting with DPR/DPA. \n\n## Installation\n\nThe latest version can be installed from PyPI as \n[python-diameter](https://pypi.org/project/python-diameter/):\n\n```shell\n~# pip install python-diameter\n```\n\nSCTP support provided by an optional depency on [pysctp](https://pypi.org/project/pysctp/).\n\n## Functional overview\n\nThe package contains an extensive AVP dictionary and allows constructing\nAVPs and Diameter messages either manually, or by parsing network-received \nbytes. Message AVPs can be accessed directly as instance attributes.\n\nThe `diameter` package provides tools for:\n\n- [Parsing and writing AVPs](https://mensonen.github.io/diameter/guide/avp)\n- [Parsing and writing diameter Mesages](https://mensonen.github.io/diameter/guide/message)\n- [Creating diameter nodes and connecting to other peers](https://mensonen.github.io/diameter/guide/node)\n- [Writing diameter applications](https://mensonen.github.io/diameter/guide/application)\n\n## Supported applications\n\nThe diameter stack has inbuilt support for Diameter Base, *Gy*, *Rf*, *Ro* and\n*Sy* applications and a generic implementation of application types that allows\nworking even with unsupported application types.\n\n## Supported diameter application commands\n\nThe diameter stack provides a Python command class for the following \napplication message types:\n\n*Diameter Base Protocol* `rfc3588`, `rfc6733`\n\n * Abort-Session\n * Accounting\n * Capabilities-Exchange\n * Device-Watchdog\n * Disconnect-PeerConnection\n * Re-Auth\n * Session-Termination\n\n*Diameter Mobile IPv4* `rfc4004`\n\n * AA-Mobile-Node\n * Home-Agent-MIP\n\n*Diameter Network Access Server* `rfc4005`, `rfc7155`\n\n * AA\n * Abort-Session\n * Accounting\n * Re-Auth\n * Session-Termination\n\n*Diameter Credit Control* `rf4006`, `rfc6733`, `3GPP TS 32.299`\n\n * Credit-Control, with full 3GPP specification support\n\n*Diameter Extensible Authentication Protocol (EAP)* `rfc4072`\n \n * Diameter-EAP\n\n*Diameter Policy and charging control* `3GPP TS 29.219`\n\n * Spending-Limit\n * Spending-Status-Notification\n\nThe stack includes also a generic fallback Python class for every other message.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A diameter stack implemented in python",
    "version": "0.7.2",
    "project_urls": {
        "Documentation": "https://mensonen.github.io/diameter/",
        "Repository": "https://github.com/mensonen/diameter"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97103e3571771dc2a4ad6ca818ac686f5e6547aa622c359f31ad426ab48128d6",
                "md5": "db191f087ff1ec2e73f430226f1477c9",
                "sha256": "a23a8de0fca115161d921872bb2005b963599c0fec7741136922a42ad90022d8"
            },
            "downloads": -1,
            "filename": "python_diameter-0.7.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "db191f087ff1ec2e73f430226f1477c9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 220187,
            "upload_time": "2024-06-17T06:58:40",
            "upload_time_iso_8601": "2024-06-17T06:58:40.985558Z",
            "url": "https://files.pythonhosted.org/packages/97/10/3e3571771dc2a4ad6ca818ac686f5e6547aa622c359f31ad426ab48128d6/python_diameter-0.7.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "089f41769a98ab37a208e84ccba858ed995a359042818aa146385a0cd6f7beae",
                "md5": "c502b807305ece6a0f31ec986497981a",
                "sha256": "cbb596f889ac5960183d1a159ab734330e6f86e7abce6d40533e6a18b3bea02f"
            },
            "downloads": -1,
            "filename": "python_diameter-0.7.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c502b807305ece6a0f31ec986497981a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 237618,
            "upload_time": "2024-06-17T06:58:42",
            "upload_time_iso_8601": "2024-06-17T06:58:42.159803Z",
            "url": "https://files.pythonhosted.org/packages/08/9f/41769a98ab37a208e84ccba858ed995a359042818aa146385a0cd6f7beae/python_diameter-0.7.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-17 06:58:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mensonen",
    "github_project": "diameter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python-diameter"
}
        
Elapsed time: 0.24376s