Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

configurable - Class integration with config files

Project Description
Allows attributes of classes and/or instances to be set directly through config
files. Config file example followed by code:



hihi = HEHE
class Klass(Configurable):
class SubKlass(Configurable):
config = Config(hihi = "hoho")
config = Config(
assert Klass.config.prop1 == "asd"
assert Klass.config.prop2 == 123
assert Klass.config.prop3 == True
assert Klass.SubKlass.config.hihi == "hoho"
c = ConfigFile(path, globals())
assert Klass.config.prop1 == "qwe"
assert Klass.config.prop2 == 456
assert Klass.config.prop3 == False
assert c.Klass.prop1 == "qwe"
assert c.Klass.prop2 == "456"
assert c.Klass.prop3 == "false"
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
configurable-0.1dev.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Jul 29, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting