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()

Metadata

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 Provenance Actions
simple-socket-client-1.5.tar.gz 3.9 kB Without provenance Details for simple-socket-client-1.5.tar.gz

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

Security for simple-socket-client 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.

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