Command Line Framework for Python
Project description
Colifrapy
Colifrapy is a Command Line Framework for Python. Its aim is to provide several tools to build robust and structured command line tools very easily.
Its logic is very similar to a MVC framework and is therefore easy to use.
The full documentation is available here.
Philosophy
As every framework, colifrapy aims at enable you to work immediately on critical and intersting parts of your code that will tackle the problems you need to solve instead of battling with petty things such as the console output, your settings and the arguments passed to your tool.
However, colifrapy is not a tyrant and does not force you to go its way. As such, every part of colifrapy can be used on its own and you will remain free to code the way you want to.
Concept
When using colifrapy, your tool is called through a command line hub which acts more or less like a router which will call upon a controller using one or several models to perform the job.
Your hub has therefore the task to load a yaml configuration file containing your command line arguments, name, version and other contextual settings.
Once those settings are loaded, every part of your application will remain able to access critical utilities such as argv opts, settings and make use of colifrapy’s logger to ouptut nicely to the console and to log files.
So, schematically colifrapy is a YAML configuration file loaded by a command line hub that will call upon a controller and other models.
Every bit of colifrapy can be used as a standalone.
Logger (outputs to console)
Settings (deals with your yml settings)
Commander (deals with argv)
Cacher (saves data to file)
Examples
My project furuikeya is a good example of the usage of colifrapy since the framework was originally designed for it.
Dependencies
pyyaml
argparse
License
Colifrapy is under a MIT license.
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
File details
Details for the file colifrapy-0.4.1.tar.gz
.
File metadata
- Download URL: colifrapy-0.4.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ec4a3674a176c33aac6e2bb2d6927b15344794dec465c868853e49c876e969f |
|
MD5 | 4c7c6946abc34fd6c0653ee5c9d8edb3 |
|
BLAKE2b-256 | 62928ed1a2a4eac73778605c23e3314920335d4c0378d7b3a04f3f7d7a44adb3 |