Python Client Driver Pool
Switch branches/tags
Nothing to show
Pull request Compare This branch is 82 commits behind urbanairship:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
MANIFEST.in
README.rst
kiddiepool.py
setup.py

README.rst

Kiddie Pool - Python Pooling Driver Framework

Goals

  • Create a reusable connection pool class that handles failover

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.

TODO Support recv() ing data too

TODO Have the client create it's own pool?

Using the Pool

  1. Create a KiddiePool of connections (KiddieConnections)
  2. Pass the pool instance to your KiddieClient subclass for use
  3. Use your client's API and it will use the pool automatically