mimiry-sdk
The Mimiry SDK for Python. Most people install mimiry, which
installs this.
pip install mimiry
Each wheel carries the Go SDK's mimiry binary of the
same version. So you get two things:
- The
mimiry command. It is the Go CLI itself: mimiry auth, mimiry availability,
mimiry session create, and the rest. mimiry --help lists them.
- The
mimiry Python module. Every call goes through the binary's machine interface,
mimiry rpc, so it behaves exactly as Go and the command do.
import mimiry
c = mimiry.Client() # after `mimiry auth --key ~/.ssh/id_ed25519` once
print(c.account.balance().available)
for s in c.sessions.list(state=["running"], all=True):
print(s.id, s.status)
host and key may also be given (Client(host="platform", key="~/.ssh/id_ed25519")). Left out,
the host is MIMIRY_HOST, else platform; on a machine
that has signed in to another host, a host must be named. The key is then MIMIRY_SSH_KEY, else
the key mimiry auth --key … saved. A key that needs a passphrase must be loaded in ssh-agent.
- Results read as attributes (
s.status) or items (s["status"]). A list answers a Page:
items, total_count, limit, offset and unavailable, and iterating it iterates its items.
all=True reads every page.
- Errors are one class per kind, all subclasses of
mimiry.MimiryError. An APIError
carries the API's code (e.g. insufficient_balance) and status.
- Waits (
sessions.wait_ready, volumes.wait_provisioned, orgs.wait_operation) have no
bound unless you pass timeout.
Linux (amd64, arm64) and macOS 13 or later (Intel, Apple silicon). Python 3.11 or later.
Copyright 2026 Mimiry ApS. Apache-2.0.