Python library for buiding command line programs.
Project description
skadoo
Python library for building command line programs.
Installation
pip install skadoo
Usage
In your Python script use skadoo to create command line arguments.
my_script.py
import skadoo
# create flag args
my_flag = skadoo.create_flag(name="my flag", description="my flag argument")
# create root arguments
my_root = skadoo.create_root(
name="My Root", description="my root argument", flags=(my_flag)
)
if __name__ == "__main__":
print("root used:", my_root.name, f"flag ({my_flag.name}) value: {my_flag.value}")
# or
print("root used:", my_root.name, f"flag ({my_root.flags["my flag"].flag}) value: {my_root.flags["my flag"].value}")
Run python my_script.py my_root --my-flag="value"
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
skadoo-0.0.0b5.tar.gz
(4.5 kB
view details)
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 skadoo-0.0.0b5.tar.gz.
File metadata
- Download URL: skadoo-0.0.0b5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99d0362b8ae3ff5730cbef262c45bf376494380f94bfbf2678c12ec4d699a57e
|
|
| MD5 |
50294a39c77a2aba06f5975998d7002a
|
|
| BLAKE2b-256 |
ead248557bf4188521f2420cdb64a174a33b17401fdb43a7363c6280e03a4d57
|
File details
Details for the file skadoo-0.0.0b5-py3-none-any.whl.
File metadata
- Download URL: skadoo-0.0.0b5-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34c3bad0a3f572032f897415d409f245aa395606504e7a1c237d03c7a52a8b3f
|
|
| MD5 |
f34f79c755dd6d3976de5f21d6925ee0
|
|
| BLAKE2b-256 |
c72cbbf5fb9dfc8a14eb9c1f056545e90ab754f09d3ef343235c67fe2558451f
|