Skip to main content


Project description


A simple collection of helper routines that I use in a lot of projects.

Wheel Status

I used to just copy the directory into each project…

yes, a build/release person was breaking all the rules - sigh


A dictionary based config class:

c = Config({ 'a': 1, 'b': 2, 'c': {'d': 1}}
print("c.a =", c.a)
print("c.c.d" =", c.c.d)


c.a = 1
c.c.d = 1

It also has three helper methods:

fromEtcd(host='', port=4001, base='/')

fromDict() walks thru the keys of the given dictionary recursively and adds them to the object. Any key found that has a list or dictionary value is handled with instances of Config created as needed.

fromJson() uses json.load() to process the given filename and then calls fromDict() to store the values.

fromEtcd() walks the directory tree at the base location in the etcd server, builds a dictionary and then passes that to fromDict() for storage.


Right now I’m going to use a very simple “plugin” style for event hanlders where any .py file found in a directory is imported as a module.

This will, I think, let me use the event plugins via the command line, but also via WebHooks because I can create a Flask listener for WebHook urls and then call the defined handler for a given event.


from PyPI:

pip install bearlib

from git:

cd /base/of/your/virtualenv
pip install -e git+

to update the from-git install:

cd /base/of/your/virtualenv pip install –upgrade -e git+


From the source directory:

make test

Project details

Download files

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

Files for bearlib, version 0.9
Filename, size File type Python version Upload date Hashes
Filename, size bearlib-0.9-py2-none-any.whl (9.8 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size bearlib-0.9.tar.gz (8.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page