Slash Command Language (SCL) — Python implementation
Project description
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}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slash_command-0.2.0-py3-none-any.whl.
File metadata
- Download URL: slash_command-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
970b1af55625260f8884f497d4518997fcc75e5c2466f8bc5cf8065be53e78ae
|
|
| MD5 |
dc5f594e6f190080e5748d7e1d32114d
|
|
| BLAKE2b-256 |
fc08dcb922ddeb71bd0645684e0da54acbbef83e217682e49267c8013c86d845
|
Provenance
The following attestation bundles were made for slash_command-0.2.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on monperrus/slash_command
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slash_command-0.2.0-py3-none-any.whl -
Subject digest:
970b1af55625260f8884f497d4518997fcc75e5c2466f8bc5cf8065be53e78ae - Sigstore transparency entry: 1942947460
- Sigstore integration time:
-
Permalink:
monperrus/slash_command@7d4c3f01937628352452015b611a24b063ccee42 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/monperrus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@7d4c3f01937628352452015b611a24b063ccee42 -
Trigger Event:
push
-
Statement type: