Module to exchange data in any form (video or string) from one PC to another.
Project description
easyTX (Data_Transfer)
easyTX is the ultimate module to exchange data in any form (video or string) from one PC to another.
Installation
pip install easyTX
The following convention is used here:
- the server is transmitting data
- the client is receiving data
Usage
server_video.py
import easyTX.server as server
server_socket = server.conn('your ip address', 'port no')
server.frame(server_socket, 0)
client_video.py
import cv2
import easyTX.client as client
client_socket = client.conn('your ip address', 'port no)
while True:
frame = client.frame(client_socket)
cv2.imshow('frame', frame)
cv2.waitKey(1)
server_data.py
import easyTX.server as server
server_socket = server.conn('your ip address', 'port no)
while True:
addr = server.address(server_socket)
for i in range(0, 10000):
message = str(i)
message = message.encode('utf-8')
server_data.send(server_socket, message, addr)
client_data.py
import easyTX.client as client
client_socket = client.conn('your ip address', 'port no)
while True:
data = client.recv(client_socket)
print(data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easyTX-1.5.tar.gz
(3.2 kB
view details)
File details
Details for the file easyTX-1.5.tar.gz.
File metadata
- Download URL: easyTX-1.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c39cd8a5d049a8f760207fcbd8d9a7aeba68695d362aff5288879e5d172e5a4
|
|
| MD5 |
6753555a19914155c6d5617bce4e0355
|
|
| BLAKE2b-256 |
6f549eb762aa5b72f510566b3715a078faa5f819a53c587d3622af47e81c7c45
|