mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-17 13:07:35 +02:00
-> https://datatracker.ietf.org/doc/html/draft-ietf-dtn-bpbis-31#section-4.2.5 The previous validation methods were not sufficient to check validity of dtn as well as ipn EIDs. This adds further functions to easily detect the EID scheme and validate dtn plus ipn EIDs. Tests for the most common cases where validity checks should be successful and where they might fail are added as well. Due to this change the default EID of uD3TN gets a slash appended, as dtn EIDs always have to contain the name delimiter '/'. Signed-off-by: Felix Walter <felix.walter@d3tn.com> |
||
|---|---|---|
| .. | ||
| ud3tn_utils | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| setup.py | ||
python-uD3TN-utils
The Python package uD3TN-utils is a utility library to simplify the interaction with the uD3TN daemon within python applications.
The included AAPClient enables user-friendly communication with the uD3TN
daemon via local or remote sockets using the Application Agent Protocol (AAP).
Besides sending and receiving bundles, it is also possible to change the
configuration of the uD3TN daemon via AAP messages.
Installation
From source:
git clone https://gitlab.com/d3tn/ud3tn
cd python-ud3tn-utils
python setup.py install
From PyPi directly:
pip install ud3tn-utils
Examples
from ud3tn_utils.aap import AAPUnixClient
with AAPUnixClient() as aap_client:
aap_client.register()
aap_client.send_str(aap_client.eid(), "Hello World")
print(aap_client.receive())
Development
pyD3TN is maintained as part of the µD3TN project and follows its development processes. Please see the µD3TN repository for the code and further information.