Skip to main content

Python SDK for Mushu API - auto-generated clients from OpenAPI specs

Project description

Mushu Python SDK

Auto-generated Python types for the Mushu API.

Installation

pip install mushu-sdk

Usage

from mushu.media import UploadUrlRequest, MediaItem, MediaStatus
from mushu.auth import UserResponse
from mushu.notify import NotifyRequest
from mushu.pay import WalletResponse

# Type-safe request
request = UploadUrlRequest(
    org_id="org_123",
    filename="photo.jpg",
    content_type="image/jpeg",
    size_bytes=1024000,
)

# Type hints work in your IDE
def handle_media(item: MediaItem) -> str:
    if item.status == MediaStatus.ready:
        return item.url
    return "Processing..."

Regenerating

These types are auto-generated from OpenAPI specs. To regenerate:

cd sdks
./generate.sh

Services

  • auth - Authentication, users, organizations
  • notify - Push notifications, email, devices
  • media - Image and video hosting
  • pay - Payments, wallets, billing

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

mushu_sdk-0.2.13.tar.gz (198.4 kB view details)

Uploaded Source

Built Distribution

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

mushu_sdk-0.2.13-py3-none-any.whl (686.8 kB view details)

Uploaded Python 3

File details

Details for the file mushu_sdk-0.2.13.tar.gz.

File metadata

  • Download URL: mushu_sdk-0.2.13.tar.gz
  • Upload date:
  • Size: 198.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for mushu_sdk-0.2.13.tar.gz
Algorithm Hash digest
SHA256 6a263634af6811c0982e7f69dfbc86654c3968cd7d7de3745cd1390cb1cc5f21
MD5 1f13c16d9e2f7f7ea3a579e4250ecb5b
BLAKE2b-256 c1a291c92343094ea0b3adffd238ea6a8d94a4fb2ce87ab79415395814b080f7

See more details on using hashes here.

File details

Details for the file mushu_sdk-0.2.13-py3-none-any.whl.

File metadata

  • Download URL: mushu_sdk-0.2.13-py3-none-any.whl
  • Upload date:
  • Size: 686.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for mushu_sdk-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a1fc068f3a2c5fef1c9df4253dc621cb18cfd7656a0f020dcd9cd08fa9280a89
MD5 7b91bf3cb81ecbb06d2bdda601cbd2ef
BLAKE2b-256 131a3fb97e4c1295a38d49c90cb0b0641fc08fc0c1dbb7caa6e11e4e4daa4f74

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