Skip to main content

Command line, configuration and persistence utilites generally used for any more than basic application.

Project description

Zensols Utilities

Travis CI Build Status PyPI Python 3.7

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

Framework 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 Command Action Library.

See the command line test cases for more examples.

Changelog

An extensive changelog is available here.

License

MIT License

Copyright (c) 2020 Paul Landes

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

zensols.util-1.2.5-py3.7.egg (103.6 kB view hashes)

Uploaded Source

zensols.util-1.2.5-py3-none-any.whl (40.8 kB view hashes)

Uploaded Python 3

Supported by

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