Metadata-Version: 2.4
Name: kingy-ai-prediction-ledger
Version: 1.0.2
Summary: Dependency-free Python client for the Kingy.ai AI Prediction Ledger API.
Author: Kingy.ai
License-Expression: MIT
Project-URL: Homepage, https://kingy.ai/ai-prediction-ledger-api/
Project-URL: Documentation, https://kingy.ai/ai-prediction-ledger-api/
Project-URL: Source, https://kingy.ai/wp-json/kingy/v1/ai-predictions/openapi.yaml
Keywords: ai,predictions,ledger,kingy,openapi
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Kingy.ai AI Prediction Ledger (Python)

Dependency-free Python client for the read-only [AI Prediction Ledger API](https://kingy.ai/ai-prediction-ledger-api/). It targets the stable v1 routes documented by the [OpenAPI 3.0.3 contract](https://kingy.ai/wp-json/kingy/v1/ai-predictions/openapi.yaml).

## Requirements

Python 3.9+. The client uses only the Python standard library.

## Install

```bash
python -m pip install ./kingy_ai_prediction_ledger-1.0.2-py3-none-any.whl
```

## Usage

```python
from kingy_ai_prediction_ledger import AIPredictionLedgerClient

client = AIPredictionLedgerClient()
ledger = client.get_ledger()
print(ledger["record_count"])
```

Methods: `get_ledger()`, `get_csv()`, `get_revisions()`, and `get_openapi()`. Pass `base_url` and `timeout` to the constructor to target a compatible deployment or test environment.

## License

MIT. See `LICENSE`.

Contract patch 1.0.1 quotes the string status `false` correctly in YAML. API v1 and schema 1.0 are unchanged. Registry publication is pending authentication; use the downloadable archive.

SDK package patch 1.0.2 reconciles the Python runtime version with package metadata. Earlier 1.0.1 archives remain available unchanged.
