TheDocumentation Index
Fetch the complete documentation index at: https://docs.ntropii.com/llms.txt
Use this file to discover all available pages before exploring further.
ntro SDK is the Python interface to Ntropii. It’s what runbooks import (when they run inside Ntropii Tenant) and what the CLI and MCP server import (to talk to Ntropii Workspace on your behalf).
Install
- Core (just the client)
- With test harness
Client, all resource accessors, all Pydantic models, all exceptions.In a runbook repo, pin
ntro[workflow] in requirements.txt (worker installs this) and ntro[testing] in dev dependencies (CI / local iteration).Quick start
Configuration
The SDK reads~/.ntro/config.toml (or $NTRO_HOME/config.toml):
ntro auth login to populate this file interactively.
Resolution priority
WhenClient.from_config() runs, it resolves credentials in this order:
Explicit constructor args
Client(host=..., api_key=...) always wins. Useful in tests where you want zero environmental influence.Environment variables
NTRO_HOST / NTRO_API_KEY. Useful in CI/CD where you don’t want a config.toml on disk.Named connection
Client.from_config(connection="staging") reads [connections.staging] from the config file.Async vs sync
Every resource method is async-first with a_sync wrapper for scripts and notebooks:
_sync variants call asyncio.run() internally — don’t use them inside an async function or you’ll get nested event-loop errors.
What’s next
Ntropii client
The full surface of
ntro.workspace.Client — every resource accessor and exception.Workflow capability
NtroWorkflow + @ui_step — the SDK primitives runbooks compose.