ud3tn/python-ud3tn-utils
Felix Walter 43ae0e59ef test: Add Dockerfiles and scripts for ION interoperability testing
This provides two new Dockerfiles for testing, one just containing ION
and one with an additional Python3 virtual environment for
interoperability testing.

Additionally, two scripts are provided:
* build_docker_images.sh: build images that can be pushed to the
  registry and then used by the CI toolchain
* prepare_for_test.sh: a script to be run inside a newly created Docker
  container based on the provided `ion-interop` image, to build uD3TN
  and add the Python modules from the uD3TN source tree efficiently

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-11 16:40:53 +02:00
..
ud3tn_utils ud3tn_utils: Set log level in AAP client to DEBUG 2022-11-11 10:12:47 +01:00
.gitignore Prepare PyPi packages 2020-11-19 12:38:39 +01:00
LICENSE Prepare PyPi packages 2020-11-19 12:38:39 +01:00
README.md Prepare PyPi packages 2020-11-19 12:38:39 +01:00
requirements.txt test: Add Dockerfiles and scripts for ION interoperability testing 2023-05-11 16:40:53 +02:00
setup.py python: Bump version to 0.11.0 2022-03-04 21:10:44 +01:00

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.