Arct Cloud SDKs

Typed Python and TypeScript clients for the Arct Cloud API, published as previews.

from arct import Arct

with Arct() as client:  # reads ARCT_TOKEN
    result = client.servers.create(
        hostname="web-1",
        datacenter="ams2",
        plan="hvm.nano",
        image_id="IMAGE_ID",
        ssh_key_ids=["SSH_KEY_ID"],
    )
    server = client.servers.wait_until(result, "running", timeout=600)
    print(server.ipv4)

Create a server with the Python SDK

What the SDKs include

  • Typed resources

    Typed models for servers, plans, images, SSH keys, invoices, and your account.

  • Waiters

    Wait for a server to reach running or stopped in one call.

  • Typed errors

    Separate error types for authentication, rate limits, validation, and payments.

  • Automatic retries

    Reads and server creations retry automatically on transient errors.

  • Pagination

    Iterate every server, plan, and image without handling pages.

  • Async Python

    An async client for asyncio applications.

Install the SDKs

Published on PyPI for Python 3.11+ and on npm for Node.js 22+ with ESM.

Python
python -m pip install "arct-cloud==0.1.0rc3"
TypeScript
npm install --save-exact @arct-cloud/[email protected]

Manage servers from your code

Create, wait for, and manage servers from Python and TypeScript applications.