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. This general purpose library is small, has few dependencies, and helpful across many applications. Some features include:
- A Java Spring like application level support for configuration than
configparser.
- Construct objects using configuration files (both INI and YAML).
- Parse primitives, dictionaries, file system objects, instances of classes.
- A command action library using an action mnemonic to invocation of a handler that is integrated with a the configuration API. This supports long and short GNU style options as provided by optparse.
- Streamline in memory and on disk persistence.
- Multi-processing work with a persistence layer.
A secondary goal of the API is to make prototyping Python code quick and easy using the REPL. Examples include reloading modules in the configuration factory.
Documentation
See the full documentation.
Obtaining
The easiest way to install the command line program is via the pip
installer:
pip3 install zensols.util
Template
The easiest to get started is to template out this project is to create your
own boilerplate project with the mkproj
utility. This requires a Java
installation, and easy to create a Python boilerplate 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
This creates a project customized with your organization's name, author, and other details about the project. In addition, it also creates a sample configuration file and command line that is ready to be invoked by either a Python REPL or from the command line via GNU make.
If you don't want to bother installing this program, the following sections have generated code as examples from which you can copy/paste.
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.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6fa7312f1dc637574b15d8d427c0d62ad242efdaf9661aaec451fadba35511d |
|
MD5 | eed9934902b4ce7879aa1b5d42e93f84 |
|
BLAKE2b-256 | 3dfbbb6da83447cc4acbb28d6ce3df53a36b9f582cceb0dccbdb7aad7bd1b84c |