Skip to main content

This library is intended to create fast TCP and UDP server/client with multi connection handling.

Project description

![](https://github.com/giulicrenna/FastSocket/blob/main/assets/20240219_232307_logo.png)

FastSocket

GitHub release (latest by date)

The FastSocket library is designed to quickly create TCP and UDP servers and clients with multi-connection handling. The library provides a simple API for setting up and managing network socket connections in Python.

Installation

You can install FastSocket using pip:

pip install FastSocket

Usage Examples

TCP Server Example

from FastSocket import FastSocketServer, SockerConfig

def handle_message(messages):
    while not messages.empty():
        msg, addr = messages.get()
        print(f'Received: {msg} from {addr}')

config = SockerConfig(host='localhost', port=8080)
server = FastSocketServer(config)
server.on_new_message(handle_message)
server.start()

Contributing

If you want to contribute to FastSocket, we welcome pull requests! Before submitting a pull request, please make sure to review the contribution guidelines.

Contact

If you have any questions, issues, or suggestions related to FastSocket, feel free to open an issue or contact the author:

Author: Giuliano Crenna Email: giulicrenna@gmail.com

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for more details.

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

FastSocket-1.0.3.tar.gz (17.2 kB view details)

Uploaded Source

File details

Details for the file FastSocket-1.0.3.tar.gz.

File metadata

  • Download URL: FastSocket-1.0.3.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for FastSocket-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0826e7da9ba0bf386036ef47f342c363cf6b95c3a032dbd264a6feab2e1a00ef
MD5 7c405387a4bb5e87acbc00b14fea3729
BLAKE2b-256 429de079e93289cce8697595a1dfd7bc6e3b33a7cfec8724b2e06370c4b7d188

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