Metadata-Version: 2.4
Name: noclick
Version: 0.1.1
Summary: Python SDK for NoClick workflow automation
License: BUSL-1.1
Project-URL: Homepage, https://docs.noclick.com/sdk/overview
Project-URL: Documentation, https://docs.noclick.com/sdk/external-apps
Keywords: noclick,workflow,automation,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: python-socketio[asyncio_client]>=5.0
Requires-Dist: aiohttp>=3.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-asyncio; extra == "dev"

# noclick-sdk

Python SDK for [NoClick](https://noclick.com) workflow automation. Build external applications that interact with NoClick workflows — read node outputs, trigger execution, manage state, and work with files and datasets.

## Installation

```bash
pip install noclick
```

## Quick Start

```python
import asyncio
import noclick

async def main():
    sdk = noclick.Client(
        api_key="nk_live_...",
        workflow_id="your-workflow-id",
    )
    await sdk.connect()

    # List nodes
    nodes = await sdk.nodes.list()
    for node in nodes:
        print(f"{node['label']} ({node['type']})")

    # Read node output
    output = await sdk.nodes.get_output("gmail-node-id")

    # Run a node and get results
    results = await sdk.execution.run_nodes_and_get_output(
        ["data-fetcher"], ["formatter"]
    )

    # State management
    await sdk.state.set("counter", 42)
    val = await sdk.state.get("counter")

    # Dataset CRUD
    ds_id = await sdk.dataset.create("My Data")
    await sdk.dataset.append_rows(ds_id, [{"name": "Alice", "score": 95}])

    await sdk.disconnect()

asyncio.run(main())
```

## API

| Namespace | Methods |
|-----------|---------|
| `sdk.nodes` | `get_output`, `get_config`, `list` |
| `sdk.execution` | `run_nodes_and_get_output`, `run_nodes_in_background`, `on_node_output`, `on_node_state` |
| `sdk.state` | `get`, `set`, `delete`, `update`, `keys` |
| `sdk.auth` | `list_credentials`, `has_credential`, `create_credential` |
| `sdk.resources` | `upload`, `get_url`, `remove`, `list` |
| `sdk.dataset` | `create`, `list`, `get_rows`, `append_rows`, `update_row`, `delete_rows` |
| `sdk.workflow` | `get_info` |

## Documentation

Full documentation at [docs.noclick.com/sdk](https://docs.noclick.com/sdk/overview).

## License

[Business Source License 1.1](../LICENSE) — free to use with NoClick, converts to Apache 2.0 after 4 years.
