Skip to main content

SimpleImageTransport

Simple python 3 library for transporting images to a remote machine, applying transformations and returning a response.

Usage

Start a server on the remote machine:

from SimpleImageTransport import ImageReceiver

# Callback takes a single parameter image and returns a dict of useful data
def example_callback(img):
    return {'message': 'image received. size={}x{}'.format(img.shape[1], img.shape[0])}

# Initialize the application
image_receiver = ImageReceiver()
image_receiver.set_callback(example_callback)
image_receiver.run()

On the local machine you can send an image and get an appropriate response:

from SimpleImageTransport import ImageSender
import numpy as np

img = np.zeros((1080, 1920))

response = ImageSender(img)
print(response)  # {'message': 'image received. size=1920x1080'}

Metadata

Release files for SimpleImageTransport 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SimpleImageTransport 1.3
File Size Uploaded Provenance
SimpleImageTransport-1.3.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for SimpleImageTransport 1.3
File Interpreter ABI Platform
SimpleImageTransport-1.3-py2-none-any.whl Python 2 none any Details

Total release size: 7.8 kB

Release files / SimpleImageTransport-1.3.tar.gz

Download URL SimpleImageTransport-1.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8df18f56ce6299f8c0e1a656198324a33b05a4a49dc0d48bf84dc130090313bb
BLAKE2b-256 checksum
How to use checksums
2262433866fbfe48edbb3c650cd61fd341ed475919cbf52bcfff5525880a8727
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/2.7.12

Release files / SimpleImageTransport-1.3-py2-none-any.whl

Download URL SimpleImageTransport-1.3-py2-none-any.whl
Size 4.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
f8ae0a18a58ff298c2c8af0f5351316c3822dab36a968b81427143e8c6ad0ab5
BLAKE2b-256 checksum
How to use checksums
1ccfab7a2c251ff2892c4d9b060a00eff50ad4f644d228e72c79efbfe96df881
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/2.7.12

Security for SimpleImageTransport 1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page