Hey folks,

I'm happy to announce plaster and plaster_pastedeploy. Plaster is a new
library that operates as an agnostic wrapper around arbitrary configuration
loaders. It can be used by any application and ships with no opinion on
actual file format or source but rather offers a standard way to find
configuration loaders via the config_uri, usually supplied on the
command-line.

http://docs.pylonsproject.org/projects/plaster/en/latest/

Alongside plaster is the first binding, plaster_pastedeploy, which can load
the PasteDeploy format. This is the INI file format used by Pyramid. Some
example config_uris that can be loaded by plaster_pastedeploy:

development.ini
development.ini#main
development.ini?http_port=8080#main
ini+pastedeploy://development.ini?http_port=8080#main
egg:MyApp

This is an early release to show people what's going on and hopefully get
some feedback. Pyramid 1.9 is slated to depend on plaster and you will be
expected to install the appropriate binding for your application (likely
plaster_pastedeploy) when you upgrade.

I look forward to seeing what other bindings may appear for other file
formats such as yaml, json, toml or even something that loads settings from
redis?? Hopefully this will make it simpler for applications to use the
same config file formats for your own command-line scripts as well as
pserve.

Generalizing Pyramid's command-line scripts to work with other file formats
has been one of the most commonly requested features over the years and I
hope that plaster is the path forward. This library would not exist without
the help of several people that I wanted to mention here:

- Hunter Senft-Grupp (https://github.com/huntcsg) who got this project
started at the Pycon 2016 sprints.

- Rose Davidson (https://github.com/inklesspen) for much of the original
design for plaster which is heavily influenced by her own library,
montague. She has also done a lot of work reviewing and testing versions of
plaster.

- John Anderson (https://github.com/sontek) for constantly complaining
about the lack of support for alternate file formats.

Thanks!

- Michael

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwHjdKOXemTOnQX2myXC8sVAS%3DJqnkaMwsvq%2BAB5q18jNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to