Skip to main content

Flag manager

Project description

Flagser

This is a library that makes args very easy to handle in python

to add a new flag write

class NewFlag(Flag):
  shortFlag = "-n"
  longFlag = "--newFlag"
  description="this is a discripton of what this flag does"
  def onCall(self,args):
    print("here you can do what you want")

flag2 = Flag(shortFlag="n2", description="this is the secound description", onCall= lambda args: print("runs"))

a = FlagManager([NewFlag(),flag2])
a.check()

Then add the flags you have created as the constructor parameters for the FlagManager then call the check() of the flagmanager object and the flagmanager will check the flags

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

flagser-2.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

flagser-2.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file flagser-2.4.tar.gz.

File metadata

  • Download URL: flagser-2.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for flagser-2.4.tar.gz
Algorithm Hash digest
SHA256 66d02a84362efe00c96f7c33ae1b4ad63d892b403786eded7f210d4b26ac0c9d
MD5 eed51bf8586b797a9a6bc24add0295fd
BLAKE2b-256 30282f556b70e4f6b7c62c2be1332d8620fc1a81416143bfc38cb821952b2aff

See more details on using hashes here.

File details

Details for the file flagser-2.4-py3-none-any.whl.

File metadata

  • Download URL: flagser-2.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for flagser-2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9fd57d95fc590cbe71a248e1f601947d7723cc31f39d2ea318230c3d894acabc
MD5 562ba9687cddf06391eaed37615ff713
BLAKE2b-256 690977fecb43fc122e6eb7813190140f931e1a75398b4f1c263e1dabf3c9db84

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