Skip to main content

Official Kadoa SDK for Python - Web data extraction and automation

Project description

Kadoa SDK for Python

Official Python SDK for the Kadoa API, providing easy integration with Kadoa's web data extraction platform.

Installation

We recommend using uv, a fast and modern Python package manager:

uv add kadoa-sdk
# or
uv pip install kadoa-sdk

Alternatively, you can use traditional pip:

pip install kadoa-sdk

Requirements: Python 3.12 or higher

Quick Start

from kadoa_sdk import KadoaClient, KadoaClientConfig
from kadoa_sdk.extraction.types import ExtractionOptions

client = KadoaClient(
    KadoaClientConfig(
        api_key='your-api-key'
    )
)

# AI automatically detects and extracts data
result = client.extraction.run(
    ExtractionOptions(
        urls=['https://sandbox.kadoa.com/ecommerce'],
        name='My First Extraction'
    )
)

print(f"Extracted {len(result.data)} items")

That's it! With the SDK, data is automatically extracted. For more control, specify exactly what fields you want using the builder API.

Realtime WebSockets

realtime = await client.connect_realtime()
realtime.on_event(lambda event: print("Event:", event))
realtime.on_connection(
    lambda connected, reason=None: print("Connection:", connected, reason)
)

The SDK reconnects automatically when the realtime service drains a socket during deploys. When the server includes _cursor on events, the client resumes with lastCursor on the replacement subscribe and suppresses overlap duplicates by event["id"].

Documentation

For comprehensive documentation, examples, and API reference, visit:

Requirements

  • Python 3.12 or higher
  • Dependencies are automatically installed

Support

License

MIT

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

kadoa_sdk-0.19.0.tar.gz (286.6 kB view details)

Uploaded Source

Built Distribution

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

kadoa_sdk-0.19.0-py3-none-any.whl (951.2 kB view details)

Uploaded Python 3

File details

Details for the file kadoa_sdk-0.19.0.tar.gz.

File metadata

  • Download URL: kadoa_sdk-0.19.0.tar.gz
  • Upload date:
  • Size: 286.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kadoa_sdk-0.19.0.tar.gz
Algorithm Hash digest
SHA256 d05214d1f299a798f88f9fb7b44b68f1320401ed840a5e3162efb775635a14c2
MD5 7b090b8105a1a0f6631dbaea8bb1bd38
BLAKE2b-256 bb2442e3ca4bd7d4f02ee77773d700d9c9b65da958ec70cf9c6e6f7c577f26cf

See more details on using hashes here.

File details

Details for the file kadoa_sdk-0.19.0-py3-none-any.whl.

File metadata

  • Download URL: kadoa_sdk-0.19.0-py3-none-any.whl
  • Upload date:
  • Size: 951.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kadoa_sdk-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f80ebb3fefadbd3f6c9adcf3677087519d4b1b308790e01070253aedf14efd1b
MD5 d7a1fb6d2fdccc12448aef351c99a1e8
BLAKE2b-256 a8507b908dd79f7e727820330c3f0b2b90e518ea409248bba30f1f9f1a5eac34

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