argy
Argy is a simple tool for creating CLI programs using python, it tries to remove all the fuzz that comes with the standard library.
Usage
import argy
@argy
def add_numbers(x, y, subtract=False):
"""Adder of numbers
Just adds two numbers, nothing really special about it
:param x: The first number
:type x: int
:param y: The second number
:type y: int
:param subtract: Should we subtract instead?
:type subtract: bool
"""
if not subtract:
return x + y
else:
return x - y
This will create a CLI-program with the expected arguments, see also example.py
$ python example.py -h
usage: example.py [-h] [--subtract SUBTRACT] x y
positional arguments:
x The first number
y The second number
optional arguments:
-h, --help show this help message and exit
--subtract SUBTRACT Should we subtract instead?
Contributions
Contributions are welcome!
Metadata
Release files for argy 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| argy-0.0.2.tar.gz | 1.8 kB | Without provenance | Details |
Release files / argy-0.0.2.tar.gz
| Download URL | argy-0.0.2.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
146a0498d78412ee12f671ceb69f20d432bbc958d8699c615d2ea31ff82060e0
|
|
BLAKE2b-256 checksum How to use checksums |
b2a7e359664d5c6e0fee53037388bc77671bf522a8836253e71f2b6e12dddea3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for argy 0.0.2
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.