Skip to main content

async-websocket-pool is a Python library that enables efficient creation and management of a pool of asynchronous WebSocket clients.

Project description

codecov GitHub PyPI - Python Version

Async WebSocket Pool

This repository contains a Python-based Async WebSocket Pool that allows for asynchronous connections to multiple WebSocket endpoints.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Installation

You can install the Async WebSocket Pool using pip:

pip install async-websocket-client-pool

Please note that this project requires Python 3.7 or later.

Usage

from async_websocket_client_pool import connect, run_pool

tasks = [
  lambda: connect('ws://example1.com', lambda x: print(x), 5),
  lambda: connect('ws://example2.com', lambda x: print(x), 5),
]

await run_pool(tasks)

Built With

  • Poetry - Packaging and dependency management

Documentation

For more information, please refer to the full documentation.

Contribution

Contributions are always welcome! Please read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.

Authors

mpol1t

License

This project is licensed under the MIT License

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

async_websocket_pool-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

async_websocket_pool-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file async_websocket_pool-0.1.0.tar.gz.

File metadata

  • Download URL: async_websocket_pool-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.0 Linux/5.15.0-1037-azure

File hashes

Hashes for async_websocket_pool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c84a4b570c7200d2b3d6f32c5a24f78eade3e95b8284a6cfca36484b16d5a2d
MD5 27f9a8b5857fabd7291ffdd7dc14f7da
BLAKE2b-256 a5583ac26e0291b1aaa95a0d7cce604fea56d1781461d627fd59e669e5ebb315

See more details on using hashes here.

File details

Details for the file async_websocket_pool-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for async_websocket_pool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 569740d3411b20defb9b4dd544ba06d750a32430cb3732051f9d87a38b6527a3
MD5 078851b2a9558d126815eba07907af90
BLAKE2b-256 7c2e8561b995bf6eff5a61c55c055fb91f6342d26f5c2ee8b5dee3bafe7ebfd2

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