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

Uploaded Source

File details

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

File metadata

  • Download URL: pysoltcp-3.13.5.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.5.tar.gz
Algorithm Hash digest
SHA256 032994682120f8a90fbfec39e151d82e86157415b9989a4a9b13e82995adc298
MD5 792231a651840fe10adf162d13f4b2b4
BLAKE2b-256 1b25f25b3587d3d26796df5e00d9add40fad9384726ae8cd878121ef15da20a6

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