Skip to main content

Internal utils and SDKs for Zwishh services

Project description

🧰 zwishh – Internal SDK and Utilities

This package provides shared utilities and client SDKs for Zwishh's internal microservices.

It is intended for internal use only and should be used by trusted services inside the Zwishh platform infrastructure.


📦 What's Included

🔑 Authentication & Security

  • verify_service_api_key_dep: FastAPI dependency for verifying internal service API keys
  • get_current_user_id_dep: Extracts and validates the current authenticated user from headers

🧬 SDK Clients

Clients for accessing core Zwishh services:

  • OrdersClient – create & fetch orders
  • CartClient – manage cart state
  • DeliveryClient – manage delivery state
  • CouponClient – manage coupon state
  • InteractionClient – manage interaction state
  • UserServiceClient – manage user state
  • SellerServiceClient – manage seller state

Each client:

  • Uses async httpx
  • Injects service-to-service API key headers
  • Handles standard error responses
  • Retries the request with exponential backoff

🛠 Installation

You can install it directly from PyPI:

pip install zwishh

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

zwishh-0.1.13.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

zwishh-0.1.13-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file zwishh-0.1.13.tar.gz.

File metadata

  • Download URL: zwishh-0.1.13.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for zwishh-0.1.13.tar.gz
Algorithm Hash digest
SHA256 d7030f40ed7f221e15d3798b1adb9d1c0c909a0dde4f67a148b4dfef947295c8
MD5 134cb85860849e57f61dfd792659f6a5
BLAKE2b-256 8fe455019794f450a182d9551e98aacd0a8fc9d6ec7c679d555b1f04ddaa9bfa

See more details on using hashes here.

File details

Details for the file zwishh-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: zwishh-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for zwishh-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 0e22336a95dbea4a19b9b415b080aae1f7109d478a1ebd68bf346b78b9a3c39f
MD5 bd365432ae0a9d04893cd61fb081fa3a
BLAKE2b-256 78e719c646ebd90a6a905194963ae4642c7c2fe444aa047775e9a7efdc1a056b

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