Simple TCP socket client
Installation
Install it with pip:
$ pip install simple-socket-client
Or you can add it as dependency in requirements.txt file of your python application:
simple-socket-client~=1.5
Usage
from simple_socket_client import SimpleSocketClient
client = SimpleSocketClient('192.168.0.2', 6666)
client.connect(timeout=10)
client.send('Test'.encode()) # if you don't need an answer
answer = client.ask('Hi!'.encode())
print(answer.decode())
client.disconnect()
Release files for simple-socket-client 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 | |
|---|---|---|---|
| simple-socket-client-1.5.tar.gz | 3.9 kB | Details |
Release files / simple-socket-client-1.5.tar.gz
| Download URL | simple-socket-client-1.5.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2e6c607dca41e5172df737e96def88516c12b73c683ab8ef530855dc5c0c5e8
|
|
BLAKE2b-256 checksum How to use checksums |
6f4c1f33c1367cbc28bfe8c25101ba7143a30101321a039d7c58a695751edc0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|