# ScriptureFlow Python examples

These examples use only Python’s standard library (`urllib`, `json`, and related modules). No package installation is required.

```bash
python examples/python/get_verse.py
python examples/python/quick_verse.py
```

- [`get_verse.py`](get_verse.py) looks up John 3:16 in `en-kjv`.
- [`quick_verse.py`](quick_verse.py) requests a runtime-selected verse that may differ between runs.

Both examples check HTTP status, the ScriptureFlow JSON `ok` field, and the required `reference`, `version`, and `text` fields. They exit with a clear error instead of inventing or substituting Scripture text.

No API key is required during public preview. Discover exact, case-sensitive version keys from <https://scriptureflow-api-preview.pages.dev/translations.json>. Some translations may be partial, so verify available books before building broader workflows.

The examples default to <https://scriptureflow-api-preview.pages.dev> and `en-kjv`. For local error-handling tests, you may override `SCRIPTUREFLOW_BASE_URL` or `SCRIPTUREFLOW_VERSION`.
