Metadata-Version: 2.5
Name: dex-connector-coda
Version: 0.1.0
Summary: Coda connector for Dex Flows
License-Expression: MIT
Requires-Python: >=3.11
Requires-Dist: dex-connectors-sdk==0.1.0
Requires-Dist: dex-python-sdk>=1.28.0
Requires-Dist: httpx>=0.27
Description-Content-Type: text/markdown

# Coda connector for Python

Install with `pip install dex-connector-coda==0.1.0`. The package requires
`dex-connectors-sdk==0.1.0` and `dex-python-sdk>=1.28.0`, and implements the
manifest Queries `listRows` and `getRow` with the same
branches, defaults, and failure classification as the Go module. Each output
keeps the provider's JSON response untouched in `data`.

## Operations

| Operation | Factory | Happy branch | Optional branches |
| --- | --- | --- | --- |
| `listRows` | `new_list_rows_step` | `listed` | `providerRejected`, `invalidResponse`, `defect` |
| `getRow` | `new_get_row_step` | `found` | `notFound`, `providerRejected`, `invalidResponse`, `defect` |

Doc, table, and row IDs must be letters, digits, `_`, or `-`; `listRows` accepts `limit` up to 500 and an optional `page_token`. 408, 409, 429, 5xx, and transport failures retry. HTTP 404
selects `notFound` where the operation declares it; other non-200 responses
select `providerRejected` with authentication (401), authorization (403), or
validation (400, 422) failure kinds. A successful body without the expected
top-level shape is `invalidResponse`.

## Authorization

Create a Dex Web connection named `coda` as described in the
[connector README](../README.md#authorization-and-configuration). The API token travels only in the `Authorization: Bearer` header and is resolved for every attempt.

## Example

[`examples/sample_coda`](examples/sample_coda/flow.py) runs one
`listRows` read and records the result. Run the Worker with
`uv run python -m examples.sample_coda.worker` after `dexcli dev` has
loaded a project containing the `coda` connection.

## Tests

`codamock.Mock` scripts both Queries and defaults to the manifest answers.
Run `uv run pytest tests` for provider parity and manifest contract checks.
