Skip to main content

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 and run other external programs via the shell. The kind of script you can call with –help. Something that perhaps reads, copies, deletes, or otherwise manipulates files by their pathname.

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. Cheers!

Release history Release notifications | RSS feed

This release

1.7.2 This release

1.7.1

1.7.0

1.6.1

1.5.3

1.5.2

1.5.1

1.5.0

1.4.1

1.4.0

1.3.1

1.3.0

1.2.3

1.2.2

1.2.1

1.2.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page