This release is a pre-release and may not be stable for production use.
When it comes to build command-line apps, there is nothing like LUPE
Install
$ pip install lupe
Features
- Parses arguments
- Outputs version when
--versionor-v - Outputs description and supplied help text when
--helpor-h
Usage
There is not mango emoji yet supported. So instead, I used a pear, but it kinda looks the same 😒
$ ./foo.py dinner --mango
#!/usr/bin/python
# -*- coding: UTF-8 -*-
from lupe import *
from foo import *
cli = lupe(`
Usage
$ foo <input>
Options
--mango, -m Include a mango
Examples
$ foo dinner --mango
dinner 🍐
`, {
flags: {
mango: {
type: 'boolean',
alias: 'm'
}
}
});
/*
{
input: ['dinner'],
flags: {mango: true},
...
}
*/
foo(cli.input[0], cli.flags);
Credit
Based on meow from @Sindresorhus
Team
| Carlos Abraham |
License
MIT License © Carlos Abraham
Metadata
Release files for lupe 0.1.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lupe-0.1.0a0-py2-none-any.whl | Python 2 | none | any | Details |
Release files / lupe-0.1.0a0-py2-none-any.whl
| Download URL | lupe-0.1.0a0-py2-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
e47ed673b3e99949f4ea9d676ace34c1742095c14985cd63c4a0b97ebb760c1a
|
|
BLAKE2b-256 checksum How to use checksums |
71c5e63792e0eb7157bf5443ac1917696bc6632fe98ba8100a78098c3f9b2fda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for lupe 0.1.0a0
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.