Skip to main content

A simple command language inspired from discord slash commands

Project description

Dew

A simple command language inspired from discord slash commands

import pprint as pp

import dew


result = dew.parse('add rgb color name:"my color" r:100 g:150 b:200')


pp.pprint(result)

# {'name': 'add',
#  'tail': {'name': 'rgb',
#           'tail': {'name': 'color',
#                    'tail': [('name', 'my color'),
#                             ('r', '100'),
#                             ('g', '150'),
#                             ('b', '200')]}}}

Links

BNF grammar

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

dew_py-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

dew_py-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file dew_py-1.0.0.tar.gz.

File metadata

  • Download URL: dew_py-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for dew_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab8efa070addee7551eb5fe1eb58fa36c4a1d1206b6f9a22ef800dab4cc3d4c6
MD5 b6a3fde59fa09ae22fda595eeb2711a4
BLAKE2b-256 8e925ac65e97b5960b4f4f241825cc11e54d6accfba2625934e458beac257584

See more details on using hashes here.

File details

Details for the file dew_py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dew_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for dew_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b07f0f6d76aba6e75449f08e947400a95c29068763982faab800b65ee0aa9b0
MD5 ac2d832dfff49ffb8a287dcd287e8b82
BLAKE2b-256 8c901a7eb2a9b9a83173214fbbc1e5fa249a6c4fd8982c2343ae4bc55c8659a2

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