TarCo Communication (tarcom)
TcpClient
Communicate with network devices as TCP client.
TcpServer
Create a TCP server to communicate with network devices.
Usage
from tarcom import TcpServer, TcpClient
print("Started")
isServer = True
address = "192.168.0.1"
port = 42424
if isServer:
com = TcpServer(port)
else:
com = TcpClient(address, port)
def connectionUpdatedEventHandler(sender, args):
if(args.connected):
print(args.address + ": " + "Connected")
else:
print(args.address + ": " + "Disconnected")
def dataReceivedEventHandler(sender, args):
print(args.address + ": " + args.data)
com.connectionUpdated = connectionUpdatedEventHandler
com.dataReceived = dataReceivedEventHandler
com.connect()
inputStr = None
while inputStr != "E":
inputStr = input("Input (E = Exit):\n")
if inputStr != None:
com.send(inputStr)
print("Stopped")
Internal Use Only (Use at your own risk)
Metadata
Release files for tarcom 0.1.5
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 | Actions |
|---|---|---|---|---|
| tarcom-0.1.5.tar.gz | 5.2 kB | Without provenance | Details for tarcom-0.1.5.tar.gz |
Release files / tarcom-0.1.5.tar.gz
| Download URL | tarcom-0.1.5.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a52890197a300c453828f65e8472877c2cafe24e3d04e76b966969a0e404f999
|
|
BLAKE2b-256 checksum How to use checksums |
a2f74cf3a700215155778c138e796f62897638c1885480b4f871ec9bf3dd2972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.8
|
Security for tarcom 0.1.5
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.