Simple, super-flexible options. Does magic upon request.
Project description
options helps represent option and configuration data in a clean, high-function way. Changes to options can “overlay” earlier or default settings.
For most functions and classes, options is overkill. Python’s regular function arguments, *args, **kwargs, and inheritance patterns are elegant and sufficient for 99.9% of all development situations. options is for the top 0.1%:
highly functional classes or functions,
with many different features and options,
which might be adjusted or overriden at any time,
yet that need “reasonable” or “intelligent” defaults, and
that yearn for a simple, unobtrusive API.
In those cases, Python’s simpler built-in, inheritance-based model adds complexity. Non-trivial options and argument-management code spreads through many individual methods. This is where options’s layered, delegation-based approach begins to shine.
For more backstory, see this StackOverflow.com discussion of how to combat “configuration sprawl”. options full documentation can be found at Read the Docs. For examples of options in use, see say and show.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for options-1.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c084f88fdd66bd32705d5062c023f782f29bdc3f3094cec9cb0c352ec86f91b0 |
|
MD5 | 1a3fdb40c2158f45a86b7ff7b2ff0c28 |
|
BLAKE2b-256 | f1a5e86027446573db275ccc7f8d5a6941711946102f698cfda1bd525993fbdf |