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
Release history Release notifications | RSS feed
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.17.tar.gz
(227.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mushu_sdk-0.2.17-py3-none-any.whl
(796.0 kB
view details)
File details
Details for the file mushu_sdk-0.2.17.tar.gz.
File metadata
- Download URL: mushu_sdk-0.2.17.tar.gz
- Upload date:
- Size: 227.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84d6ac953659fe12a15a15a076f6d2763eebdfb41de3cd8d281ed9fa75dc1706
|
|
| MD5 |
ca709f061e2a6318c4bfb0e90b6b79d2
|
|
| BLAKE2b-256 |
9547f32c0eaa96f15d057b92f3f0d8f8732637c32c64ce06ec4b2b2ac8a7a369
|
File details
Details for the file mushu_sdk-0.2.17-py3-none-any.whl.
File metadata
- Download URL: mushu_sdk-0.2.17-py3-none-any.whl
- Upload date:
- Size: 796.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c35229809652e171925f87bebde3e9feafad399e923f12521f1e78f9501cb70
|
|
| MD5 |
f4f5e31f04d82bc40b115e40be776721
|
|
| BLAKE2b-256 |
f705c3641bc3459b32ff301c565605c1d5b26b8813ef8e4267753a2fa1246be5
|