Skip to main content

Official Python SDK for the NezaHub API

Project description

NezaHub Python SDK

Server-side Python client for the NezaHub API.

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):

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]"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nezahub-0.2.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nezahub-0.2.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file nezahub-0.2.0.tar.gz.

File metadata

  • Download URL: nezahub-0.2.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for nezahub-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b3438395d642bbe3e396437d5d0ebb87adad26795c39d385877b90e49afba9d5
MD5 23c1568243827ab496fde4147dce30fc
BLAKE2b-256 8c3f7f6daa4b8c137aa65552466083e04b1f38caf996c865de6d39c0b2dd6418

See more details on using hashes here.

File details

Details for the file nezahub-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nezahub-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for nezahub-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0319917d607cb000fc83fc0f1c968427ef2ccf24ef04506abda870b2e31d95a9
MD5 3426c0028f9cff35d736c444e4d94eed
BLAKE2b-256 2214672e8e3d239637b6e6fc5251bd94fe9936a8320e4a73baa326b7df104c2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page