Skip to main content

Python SDK for NoClick workflow automation

Project description

noclick-sdk

Python SDK for NoClick workflow automation. Build external applications that interact with NoClick workflows — read node outputs, trigger execution, manage state, and work with files and datasets.

Installation

pip install noclick

Quick Start

import asyncio
from noclick import NoClickSDK

async def main():
    sdk = NoClickSDK(
        url="https://api.noclick.io",
        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.

License

Business Source License 1.1 — free to use with NoClick, converts to Apache 2.0 after 4 years.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noclick-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noclick-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file noclick-0.1.0.tar.gz.

File metadata

  • Download URL: noclick-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for noclick-0.1.0.tar.gz
Algorithm Hash digest
SHA256 193b178a55681b7f95317ca7e91832b714fbba5d960912f4c1f534e05ee08938
MD5 b2c94392c0011255b0c6fde92d69c991
BLAKE2b-256 41a884ad64d3495e81c5cd2fa44e7fa06d37c15e6ff050375ed1ebda91c0e81b

See more details on using hashes here.

File details

Details for the file noclick-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: noclick-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for noclick-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9141217576ac4c057d331de914b4dc24c949617765c0c91fa0d867e83beab4b1
MD5 5cec30cf1610ac530ae518399eec425b
BLAKE2b-256 4bb3734cb74a7f2b1819a84cae9681051606f5cb42531e1757cccda613b8d37a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page