Skip to main content

Builtin Tools for Alconna

Project description

Alconna Tools

Provider various tools for Alconna

Extensions:

  • actions: exclusion, cooldown, inclusion
  • checker: simple_type
  • constrcut: AlconnaDecorate, AlconnaFormat, AlconnaString, AlconnaFire
  • formatter: Shell, Markdown, RichText, RichConsole
  • pattern: ObjectPattern

Example:

AlconnString:

#constrcut.py
from arclet.alconna.tools import AlconnaString

alc = (
    AlconnaString('constrcut')
    .option('alpha', '-a')          
    .option('beta', '-b [beta]')
    .option('gamma', '-c <gamma>')
    .build()
)

if __name__ == '__main__':
    alc()
$ python constrcut.py -a -b -c abc
{"alpha": ..., "beta": {}, "gamma": "abc"}

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

arclet_alconna_tools-0.7.12.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

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

arclet_alconna_tools-0.7.12-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file arclet_alconna_tools-0.7.12.tar.gz.

File metadata

  • Download URL: arclet_alconna_tools-0.7.12.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10

File hashes

Hashes for arclet_alconna_tools-0.7.12.tar.gz
Algorithm Hash digest
SHA256 1039c2baafc3aeceabe996821cb4b3c9816f88166e36fbe9588c0ccb1341da58
MD5 a5f186de2469896b9aaeeb18a8bb2db6
BLAKE2b-256 3399e280d1cd4a92e79cf90c163d0a5a58a55c631099c8b73f2b7f1414388a4f

See more details on using hashes here.

File details

Details for the file arclet_alconna_tools-0.7.12-py3-none-any.whl.

File metadata

File hashes

Hashes for arclet_alconna_tools-0.7.12-py3-none-any.whl
Algorithm Hash digest
SHA256 5ac1d8c2bb72add69fb6d26d2ab6813aa98accdb94192696fb1ee6c32cf671fe
MD5 f9218f8a83b10f6493b15b1c3f39e3f6
BLAKE2b-256 1672cb525cbc7410ab830a39be27e352142e18d9b7da977126f2b259c9dbad26

See more details on using hashes here.

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