Command line, configuration and persistence utilites generally used for any more than basic application.
Project description
Zensols Utilities
Command line, configuration and persistence utilities generally used for any more than basic application.
The command line interface library intends to make command line execution and configuration easy. The library supports (among other features) an mnemonic centric way to tie a command line an action to a Python 3 handler code segment. Features include:
- Better command line parsing than [optparse]. This a binding to from a command line option using an action mnemonic to invocation of a handler.
- Better application level support for configuration than [configparser]. Specifically, optional configuration and configuration groups.
This package also has other packages to:
- Streamline in memory and on disk persistence
- Construct objects using configuration files (both INI and YAML).
- Multi-processing work with a persistence layer.
Obtaining
The easiest way to install the command line program is via the pip
installer:
pip3 install zensols.util
Documentation
Usage
The easiest to get started is to template out this project with the following commands:
# clone the boilerplate repo
git clone https://github.com/plandes/template
# download the boilerplate tool
wget https://github.com/plandes/clj-mkproj/releases/download/v0.0.7/mkproj.jar
# create a python template and build it out
java -jar mkproj.jar config -s template/python
java -jar mkproj.jar
Command Line Interface
The API provides an advanced command line interface library for quickly easily tying action based commands, such as operands given after the program name, to Python classes.
See the command line test cases for more examples.
Changelog
An extensive changelog is available here.
License
Copyright (c) 2020 Paul Landes
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 Distributions
Hashes for zensols.util-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2ec67a7c1368908293929ceae00ca67f4923b92a58bee8204addf6c48f68b0d |
|
MD5 | 10bc59402bdeb63841cc4ddbbce2bc0e |
|
BLAKE2b-256 | edbeeb5f01ff6856e6b155589481b305e60514ac343592bd8d638fe3a937b8ef |