Skip to main content

pysoltcp

Project description

pysoltcp

Welcome to pysol

Copyright (C) 2013/2025 Laurent Labatut / Laurent Champagnac

pysoltcp is a set of python asynchronous TCP server and client.

It is gevent (co-routines) based.

Both are able to sustain 60 000 asynchronous bi-directional sockets within a single python process.

The TCP server is able to work in forking mode to scale across several CPUs.

It supports:

  • Asynchronous TCP sockets (with underlying async read/write loops, send queues and receive callback, per socket)
  • SSL sockets
  • SOCKS5 proxy (tested via dante)
  • TCP Keepalive
  • Absolute and relative socket idle timeouts for reads and writes, per socket, via gevent co-routine schedules (no global control thread)
  • SSL handshake timeout
  • Server forking
  • Server context factory for server side protocol handling
  • Client derivation with _on_receive override for client side protocol handling
  • Instrumented via Meters (pysolmeters)

Please note that, by design, synchronous TCP sockets are not supported.

Due to full asynchronous mode, pay attention that you may receive protocol input (via the receive callback) byte per byte (in a worst case scenario). Your protocol parser must be ready to handle this in a correct manner.

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

pysoltcp-3.13.2.tar.gz (38.7 kB view details)

Uploaded Source

File details

Details for the file pysoltcp-3.13.2.tar.gz.

File metadata

  • Download URL: pysoltcp-3.13.2.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pysoltcp-3.13.2.tar.gz
Algorithm Hash digest
SHA256 97d6d9fcedadb72294aa734a7b9072abd10985979448a024e1e3e343c382742d
MD5 398c5db692a0aa0d11dc177ba8baca08
BLAKE2b-256 875dd3089b6e428fb762453b679445552115823ac2f7b5ae9c8b8a08e45ab8e2

See more details on using hashes here.

Supported by

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