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

A loader interface around multiple config file formats.

Project Description

plaster is a loader interface around multiple config file formats. It exists to define a common API for applications to use when they wish to load configuration. The library itself does not aim to handle anything except a basic API that applications may use to find and load configuration settings. Any specific constraints should be implemented in a pluggable loader which can be registered via an entrypoint.

See https://docs.pylonsproject.org/projects/plaster/en/latest/ or docs/index.rst in this distribution for detailed documentation.

1.0 (2017-10-11)

0.5 (2017-06-02)

  • When a scheme is not supplied, plaster.parse_uri will now autogenerate a scheme from the file extension with the format file+<ext> instead of simply <ext> (for example, file+ini instead of ini). See https://github.com/Pylons/plaster/pull/16
  • Absolute lookups are now pulled from the start of the scheme instead of the end. This means that if you want to explicitly define the package that the loader is pulled from, use package+scheme instead of scheme+package. See https://github.com/Pylons/plaster/pull/16

0.4 (2017-03-30)

0.3 (2017-03-27)

  • Lookup now works differently. First “foo+bar” looks for an installed project distribution named “bar” with a loader named “foo”. If this fails then it looks for any loader named “foo+bar”.
  • Rename the loader entry point to plaster.loader_factory.
  • Add the concept of protocols to plaster.get_loader and plaster.find_loaders.
  • plaster.find_loaders now works on just schemes and protocols instead of full PlasterURL objects and implements the lookup algorithm for finding loader factories.
  • Change the ILoaderInfo interface to avoid being coupled to a particular uri. ILoaderInfo.load now takes a config_uri parameter.
  • Add a options dictionary to PlasterURL containing any arguments decoded from the query string. Loaders may use these for whatever they wish but one good option is default values in a config file.
  • Define the IWSGIProtocol interface which addons can use to implement a loader that can return full wsgi apps, servers and filters.
  • The scheme is now case-insensitive.

0.2 (2016-06-15)

0.1 (2016-06-12)

  • Initial release.
Release History

Release History

This version
History Node

1.0

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1.0

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
plaster-1.0-py2.py3-none-any.whl (14.1 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Oct 11, 2017
plaster-1.0.tar.gz (29.6 kB) Copy SHA256 Checksum SHA256 Source Oct 11, 2017

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