Skip to main content

Simple TCP socket client

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple-socket-client-1.5.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file simple-socket-client-1.5.tar.gz.

File metadata

  • Download URL: simple-socket-client-1.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for simple-socket-client-1.5.tar.gz
Algorithm Hash digest
SHA256 c2e6c607dca41e5172df737e96def88516c12b73c683ab8ef530855dc5c0c5e8
MD5 a6dd9e57dc50bc5bb7c264776579c58d
BLAKE2b-256 6f4c1f33c1367cbc28bfe8c25101ba7143a30101321a039d7c58a695751edc0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page