Skip to main content

Simple flag library for python

Project description

A golang inspired simple flag library for python.

Installation

To install flag, simply:

$ pip install flag

Usage

import flag

num_workers = flag.int("workers", 10, "Number of worker threads")


if __name__ == '__main__':
    flag.parse()

print("Num workers %d" % num_workers)

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

Flag-0.1.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

Flag-0.1.1-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 Python 3

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