This project has been archived by its maintainers, and is no longer receiving any updates.
flags is a Python flag parsing library for humans, not robots.
Why?
Argparse is complicated. Plac remedies most of its issues. However, sometimes you just need a really simple POSIX-style flag parser. You can use getopt, but it makes you write all the help screens yourself, which can easily go out-of-sync with the program source. flags aims at filling this void by providing a simple, practical API that’s truly easy to use and doesn’t suck.
Example
Since README examples always go out of sync with the source, included at examples/grep.py is flags parser for POSIX grep’s arguments.
Release files for pyflags 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyflags-0.1.tar.gz | 3.4 kB | Details |
Release files / pyflags-0.1.tar.gz
| Download URL | pyflags-0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4f79d2ab773a8c279c496cf035f63727f3098f1d0f9418a4af586ccebe53dbe
|
|
BLAKE2b-256 checksum How to use checksums |
b6d796bae3e472a5b1beb781092994188ccc8446a022b5fab4f5a356331e0c35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |