Skip to main content

Transfer data through a unidirectional network (i.e., a data diode)

Project description

pydiode

Transfer data through a unidirectional network (i.e., a data diode).

Installation

Install from PyPI:

pip install pydiode

To install from source, clone the repo then run:

pip install .

Usage

Documentation:

pydiode --help
pydiode send --help
pydiode receive --help

Start a receiver on localhost:

pydiode --debug receive 127.0.0.1

Send data to the receiver, from localhost to localhost:

pydiode --debug send 127.0.0.1 127.0.0.1

Type some information into the receiver. When finished, press enter, then type Control-D to signal the end-of-file. The receiver should print the received information.

With debug-level logging, you will see details about each packet sent and received. Omit the --debug paramater when sending large amount of data, since debug-level logging incurs significant CPU usage.

Development

Run unit tests:

python -m unittest tests.tests

Since the unit tests run on the installed code, remember to install the latest version of the code before running the unit tests.

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

pydiode-0.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

pydiode-0.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file pydiode-0.0.1.tar.gz.

File metadata

  • Download URL: pydiode-0.0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pydiode-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cb5a464fa9f4215b4a3d82bd4fb683c4260a8cce13010ce4d487998eb6cfe292
MD5 9c955921c46250b9b0379f3eb53f135a
BLAKE2b-256 1887473e48073542ed75699140670291e22b05fb85e119a254d33ce9b8ec71d9

See more details on using hashes here.

File details

Details for the file pydiode-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pydiode-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pydiode-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6431d4e3d21efe1d8bdc9c8f8c384c27708f4165afc83a83f80c918627e1c8e9
MD5 278281d9818a92152b0eb5db38e1f129
BLAKE2b-256 0df2dea1f1753c78e3ff785d94d0118e5311b81ed145c17549e83ea21cbe4b69

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