Skip to main content

Writing a Python shell script? Consider using this.

Project description

Use with Python 3.

This module is mostly for folks who need to write a python script that will be run from the command line. You know, something that can parse command line arguments. The kind of script you can call with –help. Something that perhaps reads, copies, deletes, or otherwise manipulates files. Something that can run other external programs via the shell.

If any of these apply, perhaps this module is for you!

A simple import script statement can provide your code with convenient command line parsing, à la carte --help documentation, useful path operations, shell command invocation with optional pipe redirection, and early run-time termination with exit status control. Read on for more. Hope you enjoy!

Project details


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