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',
#     'subcommand_group_name': 'rgb',
#     'subcommand_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.tar.gz (3.4 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-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dew_py-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 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.tar.gz
Algorithm Hash digest
SHA256 3b36e50d2126b93b74a218daa7cac954c9e005a87b2f1e23b6b1c4faf54c2e98
MD5 b68aa9ee1aff66974b91d0f94df511a1
BLAKE2b-256 5369943c6444e92b2986c374aab41abd49b9202823a9f1a4ca38f67030838a81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dew_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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-py3-none-any.whl
Algorithm Hash digest
SHA256 e472ac48134d60b445c26a3d6e8f95c81a7441cb00336435a8cc7865806eaa45
MD5 6e1b318c0cbbca4c75848be41aa41fa0
BLAKE2b-256 9d1f382e9e67ced39df17ed97b71eaa4c654d36d45f80c201784ca5685f3de38

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