Skip to main content

inicheck is an high level configuration file checker enabling developers tight control over their users configuration files

Project description

inicheck

https://img.shields.io/pypi/v/inicheck.svg Documentation Status

What is inicheck?

inicheck is an advanced configuration file checker/manager enabling developers high end control over their users configuration files. inicheck is specifcially aimed at files that adhere to the .ini format. See wiki for more info on the file standards https://en.wikipedia.org/wiki/INI_file .

Objectives

The goal of inicheck was to reduce endless logic gates and repeat code for software that required complicated configuration files. We also wanted to centralize options for an ever changing repo. We have a lot of experience with codes that required config files that could easily have 1000 different configurations. So from that need inicheck has been born.

Basic Principles

inicheck requires a master config file to operate. The master config file is a gold standard files provided by the developer of a package. The master config (sometimes called the core config) provides the rules for every configuration file that is passed to the software. There the developer can set types, constrain options, documentation strings and defaults. The developer can also create recipes that can be triggered when a user has a specific combination of config file entries.

Once a master config file is created, all config files can be passed through the standards laid out in there. From there the software can provide feedback to the user about why their file is being rejected. The master file also enables the user to have really simple config files that have larger meaning. With recipes and defaults, a user can provide relatively little and the developer can still move forward without have a ridiculous amount of logic to handle scenarios.

Features

  • .ini file generating

  • Config file checking

  • Config file warning and error reporting

  • Command line interface

  • Apply defaults

  • Auto cast items into the correct types.

  • Constrain users by designated options

  • Create recipes to ensure the right settings are in place

  • Use custom types for your config file

  • Use multiple master config files for cleaner files

  • Auto config file documentation

Credits

inicheck has been developed at the USDA-ARS-NWRC during efforts towards creating highly configurable, physically based watershed modeling software.

inicheck originally was based on config parser and with time went away from it. We would not be here with that base and for that were grateful.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2018-01-05)

  • First release on PyPI.

0.2.0 (2018-04-11)

  • Recipes were added in

  • Custom Checkers

  • Multiple master files can be used

  • Module associated files to find master configs

  • Detail finding in cli to get help on the fly

Project details


Download files

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

Source Distribution

inicheck-0.2.8.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inicheck-0.2.8-py2.py3-none-any.whl (19.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file inicheck-0.2.8.tar.gz.

File metadata

  • Download URL: inicheck-0.2.8.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for inicheck-0.2.8.tar.gz
Algorithm Hash digest
SHA256 7b828d8ac5ce51155107da84f8814b7ae14d50b3dfbd405a227932ea232d6818
MD5 1919f3d6fd687f6c6570533ca00c978a
BLAKE2b-256 4cf2391c94ccce0ba5c536eb23e09d14c0d9affa1f43b2f07f237935be5af376

See more details on using hashes here.

File details

Details for the file inicheck-0.2.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for inicheck-0.2.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4d24df925afd995b06055c1b45cef23b3755a1c1391ec22114f9f8772d575420
MD5 fed0624d4e9324d9d19f25d6efd34225
BLAKE2b-256 faf1c38ade07f6542cd3bf95e14c79120244675ad125a4b7e36e9abd7ae7f49f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page