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)
| File | Size | Uploaded | |
|---|---|---|---|
| flagser-2.4.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|