Skip to main content

© 2013 Urban Airship

https://github.com/urbanairship/kiddiepool

https://secure.travis-ci.org/urbanairship/kiddiepool.png?branch=master

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

  1. Create a list of "<host>:<port>" strings to target for connections.

  2. Instantiate a KiddiePool with that list of strings.

  3. Pass the KiddiePool instance to your KiddieClient subclass for use.

  4. Use your client’s API and it will use the pool automatically.

Using a dynamic pool

  1. Instantiate a TidePool with the Zookeeper quorum and znode whose children to monitor.

  2. Use a context manager with TidePool() as pool: or the start() and stop() methods to manage the connection to Zookeeper.

  3. Use the dynamic pool exactly like the static pool. Candidates will be added/removed from the pool by a background thread.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kiddiepool-2.0.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

kiddiepool-2.0.0-py3.6.egg (25.8 kB view details)

Uploaded Egg

kiddiepool-2.0.0-py2.7.egg (25.5 kB view details)

Uploaded Egg

File details

Details for the file kiddiepool-2.0.0.tar.gz.

File metadata

  • Download URL: kiddiepool-2.0.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kiddiepool-2.0.0.tar.gz
Algorithm Hash digest
SHA256 52d606fdd93959c63e24dd54fdbfc339f75e5185e007851fad9290a5f294c002
MD5 0300407da809f40fb7d76c098b93c390
BLAKE2b-256 9cb1d5f5c97feab2da4103303953444a84c86899e5e0b3d0f9fa0392ceccdb63

See more details on using hashes here.

File details

Details for the file kiddiepool-2.0.0-py3.6.egg.

File metadata

  • Download URL: kiddiepool-2.0.0-py3.6.egg
  • Upload date:
  • Size: 25.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kiddiepool-2.0.0-py3.6.egg
Algorithm Hash digest
SHA256 fc2b4ab01c089aef8e81a0b1f0beebececb1c7a07802fcfc8f579f1084435cd2
MD5 11740490ae01981f12eac7dfac434592
BLAKE2b-256 89df6bf910c275b57ab7a51c13088a63dfb57cde60b65191a370dd06179bdfa4

See more details on using hashes here.

File details

Details for the file kiddiepool-2.0.0-py2.7.egg.

File metadata

  • Download URL: kiddiepool-2.0.0-py2.7.egg
  • Upload date:
  • Size: 25.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kiddiepool-2.0.0-py2.7.egg
Algorithm Hash digest
SHA256 07741caec7fcd915c111d651432310d0e04b3354268f00d623ff8c9d3815aae6
MD5 8ebc558c1924f7fbc0cd0658dfedf35a
BLAKE2b-256 41655e01e57018599cfa0af09949f7848ab725993a2695dd3d64e869af983832

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

3 files

1.0.2

1 file

1.0.1

1 file

0.3.0

1 file

0.2.1

1 file

0.2.0

1 file

0.1.6

1 file

0.1.2

1 file

0.1.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page