Skip to main content

Python library for buiding command line programs.

Project description

tests

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


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)

Uploaded Source

Built Distribution

skadoo-0.0.0b5-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page