Cheap CLI framework, gives rich commands for Django
Project description
Sometimes I want to execute a python callback with some args on the command line, but i get frustrated that it always requires to wrap my command in a wrapper of some sort. Clilabs unfrustrates me.
Install:
$ pip install clilabs
Help:
$ clilabs clilabs automates python callables parametered calls. Things starting with - will arrive in clilabs.context. Examples: clilabs help your.mod:main clilabs debug your.mod -a --b --something='to see' how it=parses clilabs your.mod:funcname with your=args clilabs help clilabs.django clilabs clilabs.django:list auth.user clilabs +django:list auth.user # also works
Demo:
$ clilabs debug your.mod:yourfunc -a --b --something='to see' how it=parses Could not import your.mod Args: ('how',) Kwargs: {'it': 'parses'} Context args: ['a', 'b'] Context kwagrs: {'something': 'to see'}
Moar in tutorial.md
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 Distribution
clilabs-1.1.0.tar.gz
(6.4 kB
view details)
File details
Details for the file clilabs-1.1.0.tar.gz
.
File metadata
- Download URL: clilabs-1.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7cdbe4b7b9d168ad1a7c6ea2e82bad6734e580d4ba5b62802ba056182203ed1 |
|
MD5 | ac60b472a00e479cb34f52493da89f81 |
|
BLAKE2b-256 | f99ff8d1f6ac3bd4f85bcea39a2ea8190cc68447d1e34a7fac2291f1a474a9a5 |