Metadata-Version: 2.4
Name: supaflow-python-sdk
Version: 1.0.74
Summary: Public Python SDK for building Supaflow connectors.
Author-email: Supaflow <support@supa-flow.io>
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://www.supa-flow.io
Project-URL: Documentation, https://www.supa-flow.io/docs
Keywords: supaflow,connectors,sdk,data-integration,etl
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Database
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# Supaflow Python SDK

`supaflow-python-sdk` is the official Python SDK for building [Supaflow](https://www.supa-flow.io) connectors.

It provides a typed base class and the request/response models a connector
implements, so the code you write can be run by the Supaflow platform to
discover schemas, stage data, and sync incrementally.

## Install

```bash
pip install supaflow-python-sdk
```

Requires Python 3.11 or newer.

## Getting started

A connector subclasses `BaseConnector` and implements its lifecycle methods —
at minimum `init` and `stage`:

```python
from supaflow_python_sdk import (
    BaseConnector,
    InitRequest,
    InitResult,
    StageRequest,
    StageResult,
)


class MyConnector(BaseConnector):
    def init(self, request: InitRequest) -> InitResult:
        """Validate configuration and credentials."""
        ...

    def stage(self, request: StageRequest) -> StageResult:
        """Read records from the source and write them to staging."""
        ...
```

`schema`, `read`, `load`, and `map_target_object` are available to override for
richer sources.

## Documentation

Connector-authoring guides and the full API reference are at
[supa-flow.io/docs](https://www.supa-flow.io/docs).

Repository contributors should use
[`DEPENDENCY_SCOPES.md`](DEPENDENCY_SCOPES.md) to decide whether a Python
dependency belongs to development tooling, the agent runtime, one connector,
or a remote Snowflake procedure. It also documents the reserved ownership path
for any future Python code that runs locally on behalf of the Snowflake
connector.

## License

Proprietary. (c) Supaflow. See [supa-flow.io](https://www.supa-flow.io).
