Official Python SDK for AceDataCloud — AI-powered data services
Project description
AceDataCloud Python SDK
Official Python client for the AceDataCloud API.
Installation
pip install acedatacloud
Quick Start
from acedatacloud import AceDataCloud
client = AceDataCloud(api_token="your-token")
# OpenAI-compatible chat completions
response = client.openai.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response["choices"][0]["message"]["content"])
# Streaming
for chunk in client.openai.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Tell me a story"}],
stream=True,
):
print(chunk.get("choices", [{}])[0].get("delta", {}).get("content", ""), end="")
Async Usage
import asyncio
from acedatacloud import AsyncAceDataCloud
async def main():
client = AsyncAceDataCloud(api_token="your-token")
result = await client.search.google(q="Python SDK")
print(result)
await client.close()
asyncio.run(main())
Resources
| Resource | Description |
|---|---|
client.openai |
OpenAI-compatible chat completions and responses |
client.chat |
Native chat messages |
client.images |
Image generation (Midjourney, Flux, etc.) |
client.audio |
Music generation (Suno) |
client.video |
Video generation (Luma, Sora, Veo, etc.) |
client.search |
Web search (Google SERP) |
client.tasks |
Cross-service async task polling |
client.files |
File uploads |
client.platform |
Applications, credentials, models management |
Image Generation (with Task Polling)
task = client.images.generate(prompt="A sunset over mountains")
result = task.wait() # polls until complete
print(result["image_url"])
Error Handling
from acedatacloud import AceDataCloud, AuthenticationError, RateLimitError
client = AceDataCloud(api_token="your-token")
try:
client.search.google(q="test")
except AuthenticationError:
print("Invalid or expired token")
except RateLimitError:
print("Too many requests, slow down")
Configuration
client = AceDataCloud(
api_token="your-token",
base_url="https://api.acedata.cloud", # API gateway
platform_base_url="https://platform.acedata.cloud", # Management plane
timeout=300.0, # Request timeout in seconds
max_retries=2, # Retry count for transient errors
)
The token can also be set via the ACEDATACLOUD_API_TOKEN environment variable.
License
MIT
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
acedatacloud-2026.3.22.1.tar.gz
(12.9 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
File details
Details for the file acedatacloud-2026.3.22.1.tar.gz.
File metadata
- Download URL: acedatacloud-2026.3.22.1.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d11c1767ce5c623069d2ffbd9b209eda14939a1c7fd12fc579a2e704727acc7a
|
|
| MD5 |
b868ec57aea1e2647dbc4b51a44d2b97
|
|
| BLAKE2b-256 |
c177c801c3d68962a086f46f428facb490686c8e35df7ba9fe293f29724d7b89
|
File details
Details for the file acedatacloud-2026.3.22.1-py3-none-any.whl.
File metadata
- Download URL: acedatacloud-2026.3.22.1-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1362ae1aa9cc9ce8aef55ef69f21a216544a98edeeb1973454f7e7986ea3febd
|
|
| MD5 |
990445f49c3570838a4a8b5121bacc78
|
|
| BLAKE2b-256 |
f3ea4158aca4294b74d13bbc8faf9a4ded9c1333bc6ef04a45d5f765e8554619
|