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.dev0.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.dev0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dew_py-0.0.1.dev0.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.dev0.tar.gz
Algorithm Hash digest
SHA256 a6cb2f3b13f808cb559c2bc593c31440af47b24bbdac9a413d9d3af2498e92ce
MD5 d6bf55b20609c4332cc24f773260d9ca
BLAKE2b-256 d6b2ad63ed2ae48c7fb380ce7f4e395d7f4b906ef7a6999e608a283d332ac64d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dew_py-0.0.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 90b0963e5df98264e7eca6b5b000a9276427df12b541e670c64074c468098b75
MD5 0a1069597d9a4a4ebbb58e628ef78954
BLAKE2b-256 429072093922f4eae828e715a14ddb38abba051ebfb968717708861d1f5dea91

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