Skip to main content

tool using Clouding.io API

Project description

tool using Clouding.io API

This is an unofficial CLI that interacts with Clouding.io's REST API. Its main goal is to provide a simple interface that can be used to create and destroy servers from shell scripts. It neither provides access to all API endpoints nor to all attributes and/or actions.

The project status is best described as "alpha" as things are still very much in motion.

Installation

tuca is on PyPi, you can use the package manager of your choice to set yourself up. Here is an example using uv:

uv tool install tuca

Usage

The basics

The CLI interface follows this pattern:

tuca <endpoint> <action> [options]
  • endpoint is the same as in the API documentation
    💁 Not all endpoints are supported!
  • action is one of create, list and delete
    💁 Supported actions depend on endpoint!
  • options depend on endpoint and action
    💁 Consult --help for details!

tuca writes pretty-printed JSON (no colors) to stdout. It's human-readable and can be piped into jq for non-interactive usage. The following example shows the output from listing the keypairs endpoint (values redacted):

{
    "keypairs": [
        {
            "fingerprint": "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00",
            "id": "xxxxxxxxxxxxxxxx",
            "name": "default"
        }
    ]
}

The output is

  • always organized as list, even if the result count is 1 or 0
  • usually named after the endpoint
  • contains an opionated subset of the available attributes, but always id and name
  • limited to a maximum of 100 entries

Setup authentication

First order of business is setting up an API token. You can do that via environment variable:

export CLOUDINGIO_API_TOKEN=my_secret_token

Or, more securely, have tuca write it into your system's keyring. The following command will give you an interactive prompt to do that.

tuca auth create

And before you say anything, I'm aware that auth is not an endpoint.

If you provide both, the environment variable takes precedence.

Create a server

Pick one of the available Windows images.

tuca images list --filter windows
Output
{
    "images": [
        {
            "accessMethods": {
                "password": "required",
                "sshKey": "not-supported"
            },
            "id": "Lka79zd4JDnxyr85",
            "minimumSizeGb": 25,
            "name": "Windows Server 2022 Datacenter (English 64Bit)"
        },
        {
            "accessMethods": {
                "password": "required",
                "sshKey": "not-supported"
            },
            "id": "jG4bZNnEQznYx7LP",
            "minimumSizeGb": 25,
            "name": "Windows Server 2016 Datacenter (English 64Bit) EOL"
        },
        {
            "accessMethods": {
                "password": "required",
                "sshKey": "not-supported"
            },
            "id": "WwQ6kDdVqb2Jeaml",
            "minimumSizeGb": 25,
            "name": "Windows Server 2019 Datacenter (English 64Bit) EOL"
        },
        {
            "accessMethods": {
                "password": "required",
                "sshKey": "not-supported"
            },
            "id": "kbxmpG2bXvKwlaDg",
            "minimumSizeGb": 25,
            "name": "Windows Server 2025 Datacenter (English 64Bit)"
        },
        {
            "accessMethods": {
                "password": "required",
                "sshKey": "not-supported"
            },
            "id": "jXEm7yK3MJ2VYkQ9",
            "minimumSizeGb": 25,
            "name": "Windows 11 (English 64Bit | Based on Windows Server 2025)"
        },
        {
            "accessMethods": {
                "password": "required",
                "sshKey": "not-supported"
            },
            "id": "q58XEgdA0P26mA0j",
            "minimumSizeGb": 25,
            "name": "Windows 11 (Espa\u00f1ol 64Bit | Basado en Windows Server 2025)"
        }
    ]
}

Now pick one of the available flavors (server sizes).

tuca flavors list
Output

(output shortened)

{
    "sizes/flavors": [
        ...
        {
            "id": "8x16",
            "pricePerHour": 0.05472,
            "pricePerMonthApprox": 39.9456,
            "ramGb": 16,
            "vCores": 8.0
        },
        ...
    ]
}

That's sufficient to create a server with minimal configuration.

# Windows 11 compatible image
# 8 cores, 16 GB RAM
# default firewall
# default image size
tuca servers create --image jXEm7yK3MJ2VYkQ9 --name MyWinServer --flavorid 8x16 --password start123
Output
{
    "servers": [
        {
            "action": {
                "completedAt": null,
                "id": "BEVPodeblJYKJv7a",
                "resourceId": "R0XZEKlWEAMdWbQj",
                "resourceType": "server",
                "startedAt": "2026-02-28T14:38:52.312803Z",
                "status": "inProgress",
                "type": "create"
            },
            "createdAt": "",
            "id": "R0XZEKlWEAMdWbQj",
            "name": "MyWinServer",
            "publicIp": "",
            "status": "Pending"
        }
    ]
}

Spooling up the server can take some time and you can check how it's doing.

tuca servers list --name MyWinServer
Output
{
    "servers": [
        {
            "createdAt": "2026-02-28T14:38:52",
            "id": "R0XZEKlWEAMdWbQj",
            "name": "MyWinServer",
            "publicIp": null,
            "status": "Creating"
        }
    ]
}

The server will be ready eventually.

Output
{
    "servers": [
        {
            "createdAt": "2026-02-04T23:42:16",
            "id": "mJOZBKqGP702Xjax",
            "name": "MyWinServer",
            "publicIp": "103.23.60.115",
            "status": "Active"
        }
    ]
}

License

GPL-2.0-or-later

Project details


Download files

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

Source Distribution

tuca-0.5.0.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

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

tuca-0.5.0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file tuca-0.5.0.tar.gz.

File metadata

  • Download URL: tuca-0.5.0.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tuca-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5bc9d92347374d1b30555dc930a66bf8c953dec42e1b439dc90977162ef9e1df
MD5 192ffa15d2b6d006c94f8860270025f9
BLAKE2b-256 969e9701cb8e58ff8c6dc15f0a81c6b79fe2b6c38caed11c572e04ea3edfd91c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tuca-0.5.0.tar.gz:

Publisher: build.yml on dehesselle/tuca

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tuca-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: tuca-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tuca-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98f653a7bc94e2a58f6882eefb33954e1c1aac9a3f3395b4047f4f616c4a319b
MD5 3c54b1224b0c9fc8194c57c8f8d67a32
BLAKE2b-256 f98dad6fbed36f9575fb689e6c666d54bf240858f64c392cd46e5f462d65d9bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tuca-0.5.0-py3-none-any.whl:

Publisher: build.yml on dehesselle/tuca

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page