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

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

Uploaded Source

File details

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

File metadata

  • Download URL: simple-socket-client-1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 bc2ff1c6c04abb41ed8edd818aa881718cd34256530966d9e952c54766c149d1
MD5 ac1a2d21add0e5f0771f623f221379cb
BLAKE2b-256 bdabc523749b86864f8cf46b10a0550aa75aac7d63d45f68f84142e27c9a6e63

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