Metadata-Version: 2.4
Name: slash_command
Version: 0.2.0
Summary: Slash Command Language (SCL) — Python implementation
Project-URL: Homepage, https://github.com/monperrus/slash_command
Project-URL: Bug Tracker, https://github.com/monperrus/slash_command/issues
Author-email: Martin Monperrus <martin2020+claude@monperrus.net>
License: MIT
License-File: LICENSE
Keywords: command,island-parsing,llm,parser,slash
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Text Processing
Requires-Python: >=3.11
Provides-Extra: dev
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Description-Content-Type: text/markdown

# 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](https://github.com/monperrus/slash_command) for the full
grammar, normative algorithm, and conformance criteria.

## Install

```bash
pip install slash_command
```

## Usage

```python
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}")
```

