A Python SDK for the Zeabur platform, generated from the GraphQL schema.
Reason this release was yanked:
default endpoint incorrect
Project description
Zeabur Python SDK
A Python SDK for the Zeabur platform, generated from the GraphQL schema.
Installation
You can install the SDK using pip:
pip install zeabur
Usage
First, you need to obtain an API key from the Zeabur dashboard.
Initialization
from zeabur import Zeabur
# Initialize the client
client = Zeabur(api_key="YOUR_API_KEY")
Async Usage
All methods in the SDK are asynchronous. You need to use await to call them.
import asyncio
from zeabur import Zeabur
async def main():
client = Zeabur(api_key="YOUR_API_KEY")
# List projects
projects = await client.projects()
for edge in projects.edges:
print(f"Project ID: {edge.node.id}, Name: {edge.node.name}")
if __name__ == "__main__":
asyncio.run(main())
Creating a Service
from zeabur import Zeabur, ServiceTemplate
async def create_service():
client = Zeabur(api_key="YOUR_API_KEY")
project_id = "YOUR_PROJECT_ID"
service = await client.create_service(
name="my-service",
template=ServiceTemplate.GIT,
project_id=project_id,
# ... other parameters
)
print(f"Created service: {service.id}")
Development
-
Install dependencies:
pip install -e .[test]
-
Generate operations and client code:
python generate_operations.py ariadne-codegen -
Run tests:
pytest
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
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 zeabur-0.1.0.tar.gz.
File metadata
- Download URL: zeabur-0.1.0.tar.gz
- Upload date:
- Size: 44.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e406bded34ac0f0777ea9483b891922855efc0ad8fbe48bb3830e0db989138fd
|
|
| MD5 |
a46d1c4949cce586fbf55c06f7f1bd76
|
|
| BLAKE2b-256 |
9054049b0bc79f8da8df6b2876aa8ac8acb5bbca120e0c8ac1a3ab364e0ae056
|
File details
Details for the file zeabur-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zeabur-0.1.0-py3-none-any.whl
- Upload date:
- Size: 88.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b9d4d57243e1fd3e68d785134eb08f2b4fc528585c2dfef234a9c705310bad
|
|
| MD5 |
a7643c15c0da0c964d4ee507cd4de8cf
|
|
| BLAKE2b-256 |
18b0583463feb478acf784cdce92d3adb0eb4fa1ed43ba2fc543efa9a7737a3b
|