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.3

Usage

from simple_socket_client import SimpleSocketClient

client = SimpleSocketClient('192.168.0.2', 6666)
client.connect()

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.3.tar.gz (3.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: simple-socket-client-1.3.tar.gz
  • Upload date:
  • Size: 3.8 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.3.tar.gz
Algorithm Hash digest
SHA256 794c491110da551ab37c5dbce54a9710f676827e2be554fbd9fc930e80a49468
MD5 70ad11660f0c08d72930938f52c9b043
BLAKE2b-256 511d543277c30a6ade30ec1af38db6db9adbcdff79cc7d90a7a41ff99084a6d8

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