Metadata-Version: 2.4
Name: nezahub
Version: 0.2.0
Summary: Official Python SDK for the NezaHub API
Author: NezaHub
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: httpx<1,>=0.28
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-httpx>=0.35; extra == "dev"
Requires-Dist: httpx>=0.28; extra == "dev"

# NezaHub Python SDK

Server-side Python client for the NezaHub API.

- **Quick tasks:** [`../quick-usage.md`](../quick-usage.md)
- **Full reference:** [`../usage.md`](../usage.md)

```python
from nezahub import NezaHubClient, nezahub_setup

nezahub_setup(api_key="nz_test_xxx")

with NezaHubClient() as client:
    print(client.health())
    for product in client.products.list_auto():
        print(product["name"])
```

**Browser-safe checkout** (no API key):

```python
from nezahub.checkout import NezaHubCheckoutClient

with NezaHubCheckoutClient(environment="test") as checkout:
    session = checkout.start_from_link("slug", customer_phone="+254...")
```

Install locally: `pip install -e ".[dev]"`
