This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
Allows to aggregate key-value data from many sources.
Can be used, for example, as a proxy to settings object in Django framework.

The sources of key-value data are appended to :class:`MultiRegistry`
vi ``append()`` method, then looked up via standard Python
dotted notation, as explained in more detail below.

Upon access, attributes will be looked up in the parent objects
in the order the latter were appended.

For example, if we have two settings like objects:
``A`` with attribute ``a``
and ``B`` with attribute ``b``
and a third one, found in module importable from ``'some.registry.C'``,
we can construct the registry as:

>>>r = MultiRegistry(A, B, 'some.registry.C')

or alternatively:

>>>r = MultiRegistry()
>>>r.append(A)
>>>r.append(B)
>>>r.insert(2, 'some.registry.C')

.. note::
The registries can be provided as python objects or
dotted python paths. In the latter case an import error will
be raised if module at the path does not exist

then access the registry as:

r.b - attrubute b will be first looked
up in the object A, then in the object B, where
it will be found.

If there is an attribute present in more than one appended object,
the first one will be returned - in the same order the
registries are stored internally, which takes into account:

* order the registries were provided at the object initialization
* order of ``append()`` calls.
* taking into account indices provided with ``insert()`` call

If the attribute is not found, attribute error will be
raised.
Release History

Release History

0.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
multi-registry-0.0.2.tar.gz (7.7 kB) Copy SHA256 Checksum SHA256 Source Sep 15, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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