Skip to main content

A simple package for a flag parsing

Project description

Flag library

Simple flag processing for Python

Supported types:

  • int
  • float
  • str
  • bool
  • list

Installation

pip install simple-flagger

Simple usage example

# python example.py -f 10.3
from flagger import Flagger

if __name__ == "__main__":
    flag = Flagger()
    f_flag = flag.parse_flag("-f", float)

    print(f_flag) # >> 10.3

List usage example

# python example.py -l 1,2,3
from flagger import Flagger

if __name__ == "__main__":
    flag = Flagger()
    l_flag = flag.parse_flag("-l", list, sep=",")

    print(l_flag) # >> ['1', '2', '3']

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

easy_flagger-1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_flagger-1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file easy_flagger-1.0.tar.gz.

File metadata

  • Download URL: easy_flagger-1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for easy_flagger-1.0.tar.gz
Algorithm Hash digest
SHA256 e1072168d17261840929ca6f3a8f0993ed262237153413de665cc405572e9aac
MD5 e608cb91a3bf1f5eb568b9da5e3c3c5b
BLAKE2b-256 b6339bca001fe425fccbf5e22115ef52fe67be95eb63477cc35f62fac06e848a

See more details on using hashes here.

Provenance

The following attestation bundles were made for easy_flagger-1.0.tar.gz:

Publisher: release-action.yml on Doneeel/easy-flagger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file easy_flagger-1.0-py3-none-any.whl.

File metadata

  • Download URL: easy_flagger-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for easy_flagger-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e333530602866091e58c3e9748def5ca62096bb1f8c9e99f2719ccdada6c23cd
MD5 9fdfc7fffdced3197f54bafd36546e14
BLAKE2b-256 9d16f52240fc0fc9cadff2b0b6ccef97d136da03e0af556041a98d5aeb735af1

See more details on using hashes here.

Provenance

The following attestation bundles were made for easy_flagger-1.0-py3-none-any.whl:

Publisher: release-action.yml on Doneeel/easy-flagger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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