Skip to main content

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.

Documentation

The full documentation of the framework can be found there.

Installation

It is recommanded to use colifrapy under a python virtualenv. (Use the excellent virtualenvwrapper to spare you some painful operations with classic virtualenvs).

Install colifrapy with pip:

pip install colifrapy

If you want to use the latest one which is still in development and hosted on github:

pip install git+https://github.com/Yomguithereal/colifrapy.git

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

The 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.

Metadata

Release files for colifrapy 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colifrapy 0.5.0
File Size Uploaded Provenance Actions
colifrapy-0.5.0.tar.gz 14.8 kB Without provenance Details for colifrapy-0.5.0.tar.gz

Release files / colifrapy-0.5.0.tar.gz

Download URL colifrapy-0.5.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
70eab017dc207d93f0e94a5a9bfc711e555bf17897fb15e57ed18337736e61f4
BLAKE2b-256 checksum
How to use checksums
ab646ebc64f952a1686c7c403849629fd18a00695ef6bd5dc9bff98696e04c0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for colifrapy 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page