Skip to main content

flag

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)

Metadata

Release files for Flag 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flag 0.1.1
File Size Uploaded Provenance Actions
Flag-0.1.1.tar.gz 2.4 kB Without provenance Details for Flag-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Flag 0.1.1
File Interpreter ABI Platform Actions
Flag-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for Flag-0.1.1-py2.py3-none-any.whl

Total release size: 6.7 kB

Release files / Flag-0.1.1.tar.gz

Download URL Flag-0.1.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
79b83fec0572790e62d574809a3dc10ae9d2464366d3373fa89de73cd8d03694
BLAKE2b-256 checksum
How to use checksums
832e89d6b7fcaf94c24f538d6990835acbbbc57dbf5dfc63f68361d9ab7bd820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Flag-0.1.1-py2.py3-none-any.whl

Download URL Flag-0.1.1-py2.py3-none-any.whl
Size 4.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5b229b31943b5699ab65609921d63e9b228ba9e72f307f9510568c78f18b1fed
BLAKE2b-256 checksum
How to use checksums
959d2343afdea09ff2a2555fa0760ba115123c4e2b7fe60dc53fda85ddfe49d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flag 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page