Kiddie Pool - Python Pooling Driver Framework
© 2013 Urban Airship
https://github.com/urbanairship/kiddiepool
Goals
Create a reusable connection pool class that handles failover
Optionally allow connection pool to discover service locations via Zookeeper
Installation
pip install kiddiepool # without optional zookeeper support
pip install kiddiepool[zookeeper] # with optional zookeeper support
Creating a New Client
Subclass at least KiddieClient to create the public API for your client driver. Should call KiddieClient._sendall(<str>) to send data.
Using the Pool
Using a static pool
Create a list of "<host>:<port>" strings to target for connections.
Instantiate a KiddiePool with that list of strings.
Pass the KiddiePool instance to your KiddieClient subclass for use.
Use your client’s API and it will use the pool automatically.
Using a dynamic pool
Instantiate a TidePool with the Zookeeper quorum and znode whose children to monitor.
Use a context manager with TidePool() as pool: or the start() and stop() methods to manage the connection to Zookeeper.
Use the dynamic pool exactly like the static pool. Candidates will be added/removed from the pool by a background thread.
Metadata
Release files for kiddiepool 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kiddiepool-2.0.0.tar.gz | 9.2 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kiddiepool-2.0.0-py3.6.egg | Legacy Egg format | - | - | Details |
| kiddiepool-2.0.0-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 60.5 kB
Release files / kiddiepool-2.0.0.tar.gz
| Download URL | kiddiepool-2.0.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52d606fdd93959c63e24dd54fdbfc339f75e5185e007851fad9290a5f294c002
|
|
BLAKE2b-256 checksum How to use checksums |
9cb1d5f5c97feab2da4103303953444a84c86899e5e0b3d0f9fa0392ceccdb63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / kiddiepool-2.0.0-py3.6.egg
| Download URL | kiddiepool-2.0.0-py3.6.egg |
|---|---|
| Size | 25.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
fc2b4ab01c089aef8e81a0b1f0beebececb1c7a07802fcfc8f579f1084435cd2
|
|
BLAKE2b-256 checksum How to use checksums |
89df6bf910c275b57ab7a51c13088a63dfb57cde60b65191a370dd06179bdfa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / kiddiepool-2.0.0-py2.7.egg
| Download URL | kiddiepool-2.0.0-py2.7.egg |
|---|---|
| Size | 25.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
07741caec7fcd915c111d651432310d0e04b3354268f00d623ff8c9d3815aae6
|
|
BLAKE2b-256 checksum How to use checksums |
41655e01e57018599cfa0af09949f7848ab725993a2695dd3d64e869af983832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for kiddiepool 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.