Skip to main content

monacloud

SDK Python chính thức, zero-dependency, cho MONA Cloud. Client đồng bộ dùng urllib trong standard library, chạy trên Python 3.9+ và mặc định gọi https://api.monacloud.vn.

Cài đặt

pip install monacloud

Deploy app và đợi job

import os
from monacloud import MonaCloud

token = os.environ["MONACLOUD_TOKEN"]
sandbox = MonaCloud(token=token, sandbox=True)
preview = sandbox.create_vps({"app_name": "demo-app", "package_slug": "standard-1"})
preview_done = sandbox.wait_job(preview["id"], timeout=60)
print("sandbox:", preview_done["result"])

cloud = MonaCloud(token=token)
job = cloud.create_vps({"app_name": "demo-app", "package_slug": "standard-1"})
done = cloud.wait_job(job["id"], timeout=600)
print("production:", done["result"])

Client hỗ trợ prices, packages, tạo VPS/database, đọc và chờ job, list/start/stop/rebuild/delete service và me. Mọi lỗi API là MonaCloudError với code, message, next_step, statusbody.

Sandbox vẫn dùng header kỹ thuật X-Vibecloud-Sandbox: 1; token vc_live_* tiếp tục tương thích.

Test offline

python -m unittest

Xem hướng dẫn AI agent.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monacloud-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

monacloud-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file monacloud-0.1.0.tar.gz.

File metadata

  • Download URL: monacloud-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for monacloud-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75c20533be2bb8935fb0cd325b3e8bd55392be2ea43fdd1353b0e70859cb2230
MD5 929ce30c78285fe74c81df21ecb3708b
BLAKE2b-256 eea622aa0ab7975c94825111d675810bab9a8ab62b09407f03e266cabd9fb0ad

See more details on using hashes here.

File details

Details for the file monacloud-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: monacloud-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for monacloud-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36c4b3824d436091eda93e96c6c3cdfc8cee7200addae3ebb096c81520112bb8
MD5 ffc861359098e26f8eeb2dfbd32051a3
BLAKE2b-256 d2b7ef00f52e1c33add4573acb023fb4fae68361d4c87f6c78e663cdeae2e477

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page