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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file Flag-0.1.1.tar.gz.

File metadata

  • Download URL: Flag-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Flag-0.1.1.tar.gz
Algorithm Hash digest
SHA256 79b83fec0572790e62d574809a3dc10ae9d2464366d3373fa89de73cd8d03694
MD5 6a8ed0601709113682b8d10b7d3fc9e0
BLAKE2b-256 832e89d6b7fcaf94c24f538d6990835acbbbc57dbf5dfc63f68361d9ab7bd820

See more details on using hashes here.

File details

Details for the file Flag-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Flag-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b229b31943b5699ab65609921d63e9b228ba9e72f307f9510568c78f18b1fed
MD5 95b67815dbfc4a0539c1fc6b2fb84765
BLAKE2b-256 959d2343afdea09ff2a2555fa0760ba115123c4e2b7fe60dc53fda85ddfe49d6

See more details on using hashes here.

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