Metadata-Version: 2.5
Name: yertle
Version: 0.3.0
Summary: Python ecosystem for Yertle — CLI, SDK, and tooling for the Yertle architecture-graph platform.
Project-URL: Homepage, https://github.com/model-context/yertle-python
Project-URL: Repository, https://github.com/model-context/yertle-python
Project-URL: Issues, https://github.com/model-context/yertle-python/issues
Author: Yertle
License: MIT License
        
        Copyright (c) 2026 model-context
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: architecture,cli,graph,yertle
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: yertle-client<0.3.0,>=0.2.0
Provides-Extra: cli
Requires-Dist: rich>=13.7; extra == 'cli'
Requires-Dist: typer>=0.12; extra == 'cli'
Provides-Extra: dev
Requires-Dist: diff-cover>=9.0; extra == 'dev'
Requires-Dist: pre-commit>=3.7; extra == 'dev'
Requires-Dist: pyright>=1.1.380; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff==0.15.13; extra == 'dev'
Requires-Dist: vulture>=2.11; extra == 'dev'
Provides-Extra: mcp
Requires-Dist: fastmcp>=2.0; extra == 'mcp'
Requires-Dist: httpx>=0.27; extra == 'mcp'
Provides-Extra: sre
Requires-Dist: langchain-anthropic>=0.3.0; extra == 'sre'
Requires-Dist: langchain-core>=0.3.0; extra == 'sre'
Requires-Dist: langchain>=1.0; extra == 'sre'
Requires-Dist: langgraph>=1.0; extra == 'sre'
Requires-Dist: pydantic-settings>=2.4; extra == 'sre'
Requires-Dist: pydantic>=2.7; extra == 'sre'
Requires-Dist: python-dotenv>=1.0; extra == 'sre'
Requires-Dist: rich>=13.7; extra == 'sre'
Requires-Dist: typer>=0.12; extra == 'sre'
Description-Content-Type: text/markdown

# yertle-python

Python ecosystem for [Yertle](https://yertle.com) — CLI, SDK, and tooling for
working with Yertle architecture graphs from Python.

## Install

The CLI and SRE agent are distributed on PyPI and installed with
[`uv`](https://docs.astral.sh/uv/):

```bash
uv tool install "yertle[sre,mcp]"
```

That puts three commands on your PATH:

| Command | What it does |
|---|---|
| `yertle` | CLI — `about`, `version`, `login`, `orgs list`, `orgs show`, `orgs use`, `nodes list`, `nodes tree`, `nodes show`, `nodes search`, `auth status` |
| `yertle-sre` | Natural-language SRE agent |
| `yertle-mcp` | MCP server for AI agents |

Pick fewer extras if you want fewer commands — `uv tool install "yertle[cli]"`
installs just `yertle`. `pipx install "yertle[sre,mcp]"` works too.

Verify:

```bash
yertle version
yertle auth status     # shows which API URL and token are in effect
```

### Using it as a library

For the SDK alone, install into your project rather than as a tool:

```bash
pip install yertle          # or: uv add yertle
```

```python
import yertle

yertle.configure(token="yrt_...")
for org in yertle.orgs.list():
    print(org.name)
```

Credentials resolve from `$YERTLE_TOKEN` then `~/.yertle/config.json`; the API
URL from `$YERTLE_API_URL`, then the config file, then `https://api.yertle.com`.
`yertle auth status` reports which source won for each.

## Development

Requires [`uv`](https://docs.astral.sh/uv/) and Python 3.11+.

```bash
make install        # uv sync --extra cli --extra dev
make check          # lint + format-check + typecheck + test
```

See `make help` for the full target list.

## License

MIT. See [LICENSE](./LICENSE).
