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

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

Uploaded Source

File details

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

File metadata

  • Download URL: simple-socket-client-1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 189b284c5f2466f0333a4fc3ad85a64f57ae69fe1ce072279c83cf138aa1e0a6
MD5 08d3f2d5da97d69ae1df062d8b4437c0
BLAKE2b-256 e61b15f0d087cd2a34f1e182a24aa4bada54bdc6ffa9619203b794d07f86487a

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