Tiny CLI argument parser inspired by Typer
Project description
Fun Args Package
Simple argument passing library inspired by Typer
# Your main with explicitly defined parameters
def main(name: str, age: int = 25, smart = False):
print(f"Hi, {name}")
# Don't forget to call my function
argumentize(main)
Now you in your terminal you can run:
python filename.py --name Max --age 22
Supports both flagged and ordered parameters. E.g.
def main(a, b):
print(a + b)
You could run in with
python filename.py 2 7
And get 27, because by default everything's converted to strings
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fun_args-0.0.1.tar.gz.
File metadata
- Download URL: fun_args-0.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27eae9c815e4b92e22482f89406734b6e15f39ddee53958007e23da4f1e0db79
|
|
| MD5 |
34d353b17519c20964544856812d5433
|
|
| BLAKE2b-256 |
ee6a30a9f4ff6d33a661d0ad1c07572b09c54f0fa1b906cdcbf3cce9cfcbb2d1
|
File details
Details for the file fun_args-0.0.1-py3-none-any.whl.
File metadata
- Download URL: fun_args-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04056b5de6d44a4d385837bddbd3966ad6ca115d4b882e0620445d21ae699004
|
|
| MD5 |
03badf4694d7c1d414a8a0b32fec689f
|
|
| BLAKE2b-256 |
7023dc8d5e1c1d519525416a80323dfeb6aad3ad2f9816dd26d883f98c9118b5
|