Skip to main content

Simple TCP socket client

License Downloads Latest Version Supported Python versions

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)

Source distribution for simple-socket-client 1.5
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

Release history Release notifications | RSS feed

This release

1.5 This release

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

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