SimpleDataTransport
Simple python 3 library for transporting data to a remote machine, applying transformations and returning a response. Formerly SimpleImageTransport.
Usage
Start a server on the remote machine:
from SimpleDataTransport import DataReceiver
# Callback takes a single dict with an image and returns a dict of useful data
def example_callback(data):
img = data["image"]
return {'message': 'image received. size={}x{}'.format(img.shape[1], img.shape[0])}
# Initialize the Flask application
flask_receiver = DataReceiver()
flask_receiver.set_callback(example_callback)
flask_receiver.run()
On the local machine you can send an image and get an appropriate response:
from SimpleDataTransport import DataSender
import numpy as np
img = np.zeros((1080, 1920))
response = DataSender(img)
print(response) # {'message': 'image received. size=1920x1080'}
Metadata
Release files for SimpleDataTransport 1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| SimpleDataTransport-1.4.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SimpleDataTransport-1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / SimpleDataTransport-1.4.tar.gz
| Download URL | SimpleDataTransport-1.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61fa07ca61585b4fd3070ae033d1fec9574c54c913d4ad1fc8cd90f35c86dfc6
|
|
BLAKE2b-256 checksum How to use checksums |
d74737c4a84a4720943ef1933f46a2429c0b7fa3e83d180e6e3e55a7e83baeef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / SimpleDataTransport-1.4-py3-none-any.whl
| Download URL | SimpleDataTransport-1.4-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c6538f8534f3c2aff6f1e3cabe48085203ec479cb231ba8885180283f9dc2e5
|
|
BLAKE2b-256 checksum How to use checksums |
e3dbf895f4c972e28a7e0365262b184790eab7c925ab25ec341cf4ebbe4d0ca7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for SimpleDataTransport 1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.