Metadata-Version: 2.4
Name: talocode-screenlane
Version: 0.1.0
Summary: Python SDK and CLI for ScreenLane — screen-aware voice command layer for AI agents
Author: Talocode
License: MIT
Project-URL: Homepage, https://github.com/talocode/screenlane
Project-URL: Repository, https://github.com/talocode/screenlane
Keywords: screenlane,talocode,ai-agents,mcp,voice,screen-aware
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"

# talocode-screenlane (Python)

Python SDK and lightweight CLI for [ScreenLane](https://github.com/talocode/screenlane).

The Node package owns OS capture, MCP, and the local API. This package is:

- An HTTP client for `screenlane serve` (default `http://127.0.0.1:3070`)
- Offline deterministic command helpers
- CLI: `screenlane-py`

## Install

```bash
pip install talocode-screenlane
```

## Usage

```python
from talocode_screenlane import ScreenLaneClient

client = ScreenLaneClient(base_url="http://127.0.0.1:3070")
# If SCREENLANE_REQUIRE_AUTH=true on the server:
# client = ScreenLaneClient(api_key=os.environ["TALOCODE_API_KEY"])

print(client.health())
print(client.command({
    "text": "Fix this error",
    "contextText": "TypeError: ...",
    "target": "codra",
}))
```

CLI:

```bash
screenlane-py health
screenlane-py command --text "Fix this error" --context-file error.txt
screenlane-py command --text "Fix this error" --context-text "..." --offline
screenlane-py demo
```

Auth uses **only** `TALOCODE_API_KEY` (Bearer header).

## License

MIT
