A Python SDK for Clever Cloud.
You can add it to your project using pip or uv:
pip install clevercloud-sdk
uv add clevercloud-sdkfrom clever_cloud import CleverCloudClient, ApiTokenCredentials
async with CleverCloudClient(ApiTokenCredentials(token="...")) as client:
profile = await client.get_profile()
print(f"Hello, {profile.name}!")You can also use OAuth credentials:
from clever_cloud import OAuthCredentials
credentials = OAuthCredentials(
consumer_key="...",
consumer_secret="...",
token="...",
secret="...",
)
async with CleverCloudClient(credentials) as client:
...This SDK is still a work in progress, but it already provides the following features:
- Get user profile
- List instance types
- Create application
- Redeploy application
- Create TCP redirection
- List domains
- Get primary domain
Apache 2.0 - See LICENSE for details.