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

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

Uploaded Source

File details

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

File metadata

  • Download URL: simple-socket-client-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ea3e7ef67039eae581d43f8df0bf42b9e317f70e96e1b74b64afb1ecbbea98a0
MD5 02c6315d6426a3474b7399b93d80fdd9
BLAKE2b-256 3e3ec0cef3d44d5616d99ee7bf4f4a87354c046bb6e9cab8776a67754230fd85

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