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.10.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

arclet_alconna_tools-0.7.10-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arclet_alconna_tools-0.7.10.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.1 CPython/3.9.13 Windows/10

File hashes

Hashes for arclet_alconna_tools-0.7.10.tar.gz
Algorithm Hash digest
SHA256 446a63a9c56886c23fb44548bb9a18655e0ba5b5dd80cc87915b858dfb02554c
MD5 2182ff95a4ba30f2176e0d23975c9d49
BLAKE2b-256 3fde76292863aec673f8098bf7540ae92713954a68658d5f66e7aceacc428d33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arclet_alconna_tools-0.7.10-py3-none-any.whl
Algorithm Hash digest
SHA256 50e8b2f433fbc612dc8b99f4f5410006dcb1ef406c971c795071117a4eab8e20
MD5 a54ad8977d9f50e7191d3ee921229702
BLAKE2b-256 cd22f88495efa628355e8f8a2fb423e7356822c58a1c5e5c452001616c27a3ce

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