Config::Layered

Layered config from files, command line, and other sources
Download

Config::Layered Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • symkat
  • Publisher web site:
  • http://search.cpan.org/~symkat/

Config::Layered Tags


Config::Layered Description

Config::Layered is a Python module that aims to make it easy for programmers, operations teams and those who run the programs to have the configuration methods they prefer with one simple interface.By default options will be taken from the program source code itself, then -- if provided -- a configuration file, and finally command-line options.SYNOPSISBy default options will be taken from the program source code itself, then -- if provided -- a configuration file, and finally command-line options. my $config = Config::Layered->load_config( file => "/etc/myapp", default => { verbose => 0, run => 1, input => "/tmp/to_process", output => "/tmp/done_processing", plugins => }, );Given the above, the data structure would look like: { verbose => 0, run => 1, input => "/tmp/to_process", output => "/tmp/done_processing", plugins => }Provided a file, /etc/myapp.yml with the line input: /tmp/pending_process the data structure would look like: { verbose => 0, run => 1, input => "/tmp/pending_process", output => "/tmp/done_processing", plugins => }Provided the command line arguments --norun --verbose --output /tmp/completed_process -- in addition to the configuration file above -- the data structure would look like: { verbose => 1, run => 0, input => "/tmp/pending_process", output => "/tmp/completed_process", plugins => }Product's homepage


Config::Layered Related Software