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 hashes)