{"id":15606503,"url":"https://github.com/raymondcm/simpledatatransport","last_synced_at":"2026-04-27T18:34:20.897Z","repository":{"id":57467372,"uuid":"188993374","full_name":"RaymondCM/SimpleDataTransport","owner":"RaymondCM","description":"Simple python 2/3 library for transporting data to a remote machine, applying transformations and returning a response.","archived":false,"fork":false,"pushed_at":"2019-09-12T11:49:58.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T19:19:27.082Z","etag":null,"topics":["flask","images","python-library","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaymondCM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-28T09:04:27.000Z","updated_at":"2019-09-12T11:50:00.000Z","dependencies_parsed_at":"2022-09-17T16:12:18.631Z","dependency_job_id":null,"html_url":"https://github.com/RaymondCM/SimpleDataTransport","commit_stats":null,"previous_names":["raymondkirk/simpledatatransport","raymondkirk/simpleimagetransport"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaymondCM%2FSimpleDataTransport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaymondCM%2FSimpleDataTransport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaymondCM%2FSimpleDataTransport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaymondCM%2FSimpleDataTransport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaymondCM","download_url":"https://codeload.github.com/RaymondCM/SimpleDataTransport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246193257,"owners_count":20738452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","images","python-library","python3"],"created_at":"2024-10-03T04:40:33.947Z","updated_at":"2026-04-27T18:34:20.856Z","avatar_url":"https://github.com/RaymondCM.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleDataTransport\n\nSimple python 3 library for transporting images to a remote machine, applying transformations and returning a response.\n\n## Usage\n\nStart a server on the remote machine:\n\n```python\nfrom SimpleDataTransport import DataReceiver\n\n# Callback takes a single dict with an image and returns a dict of useful data\ndef example_callback(data):\n    img = data[\"image\"]\n    return {'message': 'image received. size={}x{}'.format(img.shape[1], img.shape[0])}\n\n\n# Initialize the Flask application\nflask_receiver = DataReceiver()\nflask_receiver.set_callback(example_callback)\nflask_receiver.run()\n```\n\nOn the local machine you can send an image and get an appropriate response:\n\n```python\nfrom SimpleDataTransport import DataSender\nimport numpy as np\n\nimg = np.zeros((1080, 1920))\n\nresponse = DataSender(img)\nprint(response)  # {'message': 'image received. size=1920x1080'}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraymondcm%2Fsimpledatatransport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraymondcm%2Fsimpledatatransport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraymondcm%2Fsimpledatatransport/lists"}