Skip to main content

A simple parser for discord slash command-like text, written in pure python

Project description

Dew

A simple parser for discord slash command-like text, written in pure python

import dew

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

print(result)

# {
#     'command_name': 'add',
#     'sub_command_group_name': 'rgb',
#     'sub_command_name': 'color',
#     'kwargs': [
#         ('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-0.0.1.dev1.tar.gz (3.7 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-0.0.1.dev1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file dew_py-0.0.1.dev1.tar.gz.

File metadata

  • Download URL: dew_py-0.0.1.dev1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for dew_py-0.0.1.dev1.tar.gz
Algorithm Hash digest
SHA256 f43f0b09787dfe793b9ef51c7164b91d537ae1e732af8a0d5304188df9abd9b1
MD5 b74ae35aedafebfbf339025119d8f260
BLAKE2b-256 c473960e7de79a6bbc147d9906bd7ced5ad885db44b88f5834757689e0447f97

See more details on using hashes here.

File details

Details for the file dew_py-0.0.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: dew_py-0.0.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for dew_py-0.0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 9af116af10c5f878f50caaed0914809879fa9ac85773150912ad50c797966c0e
MD5 b9749e8fce719e64d8f549ffab062f21
BLAKE2b-256 2f3756fb4081946d792aac7169167c6be0e4d8cd36cf7b58c5c69dc5939b92f3

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