Skip to main content

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

Release files for flagser 2.4

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

Source distribution (sdist)

Source distribution for flagser 2.4
File Size Uploaded
flagser-2.4.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flagser 2.4
File Interpreter ABI Platform
flagser-2.4-py3-none-any.whl Python 3 none any Details

Total release size:6.8 kB

Release files / flagser-2.4.tar.gz

Download URL flagser-2.4.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
66d02a84362efe00c96f7c33ae1b4ad63d892b403786eded7f210d4b26ac0c9d
BLAKE2b-256 checksum
How to use checksums
30282f556b70e4f6b7c62c2be1332d8620fc1a81416143bfc38cb821952b2aff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / flagser-2.4-py3-none-any.whl

Download URL flagser-2.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fd57d95fc590cbe71a248e1f601947d7723cc31f39d2ea318230c3d894acabc
BLAKE2b-256 checksum
How to use checksums
690977fecb43fc122e6eb7813190140f931e1a75398b4f1c263e1dabf3c9db84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

2.4 This release

2 release files

2.3

2 release files

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.6

2 release files

1.5

2 release files

1.4

2 release files

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.7

1 release file

0.6

1 release file

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