Metadata-Version: 2.4
Name: hivepay
Version: 0.1.0
Summary: HivePay Python SDK for agent-signed checkout lifecycle
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: httpx<1.0.0,>=0.27.0
Requires-Dist: pynacl<2.0.0,>=1.5.0
Requires-Dist: keyring<26.0.0,>=24.0.0
Provides-Extra: dev
Requires-Dist: pytest<9.0.0,>=8.0.0; extra == "dev"
Requires-Dist: pytest-cov<6.0.0,>=5.0.0; extra == "dev"

# hivepay

Python SDK for HivePay checkout lifecycle.

## Install

From PyPI:

```bash
pip install hivepay
```

From this monorepo (editable):

```bash
pip install -e .
```

From `backend-v1`:

```bash
pip install -e ../hivepay-python-sdk
```

## Publish

Build and validate:

```bash
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
```

Upload:

```bash
python -m twine upload dist/*
```

## Usage

```python
from hivepay import HivePayClient

client = HivePayClient.from_uploaded_key(
    base_url="https://your-backend-domain.example",
    uploaded_key="hp_agent_live_...",
    sandbox=True,
)

checkout = client.request_checkout(
    product_url="https://www.amazon.com/dp/B08N5WRWNW",
    quantity=1,
    merchant_hint="amazon.com",
)
```
