async-websocket-pool is a Python library that enables efficient creation and management of a pool of asynchronous WebSocket clients.
Project description
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-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
Built Distribution
File details
Details for the file async_websocket_pool-0.1.3.tar.gz
.
File metadata
- Download URL: async_websocket_pool-0.1.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.11.0 Linux/5.15.0-1037-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0c7c4a6a7cdb23fe0d5c566c48e4a3be395ddafd4632107bf35260e2130b307 |
|
MD5 | d8a5fb9a89e837beb5c3e3986ab5f980 |
|
BLAKE2b-256 | a1e1259b873eb5916aa410b48032a62aabb0eafb3be84125f2df83bb7cb5f423 |
File details
Details for the file async_websocket_pool-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: async_websocket_pool-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.11.0 Linux/5.15.0-1037-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f19fc2b8fb8dd258be2cf40bcdba1d1ca4de3c44d031c6b1540e35f4227729 |
|
MD5 | b46e95d444f71c1adfd43fccbdc27fbb |
|
BLAKE2b-256 | 96b39c27cdba39fca8d1a337a96afb54b4287ee7c4a27e71dd592a1a3969e0ac |