Google Commandline Flags Module
Project description
This repository contains a python implementation of the Google commandline flags module.
GFlags defines a distributed command line system, replacing systems like getopt(), optparse and manual argument processing. Rather than an application having to define all flags in or near main(), each python module defines flags that are useful to it. When one python module imports another, it gains access to the other’s flags.
It includes the ability to define flag types (boolean, float, interger, list), autogeneration of help (in both human and machine readable format) and reading arguments from a file. It also includes the ability to automatically generate man pages from the help flags.
Documentation for implementation is at the top of gflags.py file.
- To install the python module, run
python ./setup.py install
When you install this library, you also get a helper application, gflags2man.py, installed into /usr/local/bin. You can run gflags2man.py to create an instant man page, with all the commandline flags and their docs, for any C++ or python program you’ve written using the gflags library.
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
File details
Details for the file python-gflags-3.0.4.tar.gz
.
File metadata
- Download URL: python-gflags-3.0.4.tar.gz
- Upload date:
- Size: 50.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb4fbdbc7cf0a9f721ed91378a60d3fb3542e774ef44e36c1d8aff99b13dabdb |
|
MD5 | 821b85b178fc2abaefcba7852bea8c9c |
|
BLAKE2b-256 | 5b84d2c7b7d3b093e52410ffe99ec01d40b45be7e5e94be801bb2b9f76de87cb |