slash_command
Python implementation of the Slash Command Language (SCL) — a minimal syntax for embedding executable commands within natural-language text.
See the SCL specification for the full grammar, normative algorithm, and conformance criteria.
Install
pip install slash_command
Usage
from slash_command import parse, Text, Command
doc = parse('Please /search "quantum computing" and then /exit')
for segment in doc:
if isinstance(segment, Command):
print(f"command: {segment.name!r}, args: {segment.args}")
else:
print(f"text: {segment.content!r}")
Metadata
Release files for slash-command 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slash_command-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / slash_command-0.3.0-py3-none-any.whl
| Download URL | slash_command-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c36cb02c38d17492fb6e9c4ba307cb175b9866b9f1112ccdb6e28dc1a7aa2d6
|
|
BLAKE2b-256 checksum How to use checksums |
a28dc1c36d825ec2040311b9df2131cce5febc980287e34eb2620b71db86a8b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.
Transparency log