Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-gflags-3.0.5.tar.gz (49.2 kB view details)

Uploaded Source

File details

Details for the file python-gflags-3.0.5.tar.gz.

File metadata

  • Download URL: python-gflags-3.0.5.tar.gz
  • Upload date:
  • Size: 49.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-gflags-3.0.5.tar.gz
Algorithm Hash digest
SHA256 c7afbabda959f9da2a6100484f84dd12fb83b015d277468513413329bba20878
MD5 0e3a06cb99b9883bf6abacc489f31297
BLAKE2b-256 1f013ca6527f51b7ff26abb635d4e7e2fa8413c7cf191564cc2c1e535f50dec7

See more details on using hashes here.

Supported by

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