Skip to main content

Official Python SDK for planir.io — hosted, hardware-isolated microVM runtimes with a stable public URL per runtime.

Project description

planir

Official Python SDK for planir.io — hosted, hardware-isolated microVM runtimes with a stable public URL per runtime. Sync and async clients.

Install

pip install planir

Usage

import os
from planir import PlanirClient

client = PlanirClient(token=os.environ["PLANIR_TOKEN"])

# List runtimes (one page; pass cursor=page.next_cursor for the next one)
page = client.runtimes.list()
for runtime in page.runtimes:
    print(runtime.id)

# Create a runtime
runtime = client.runtimes.create(image="ghcr.io/acme/agent:latest")
print(runtime.urls)

The client defaults to https://api.planir.io; pass base_url or environment to override. An async client is available as AsyncPlanirClient. client.runtimes.exec(...) runs synchronously; client.runtimes.exec_detached(...) returns an exec id you poll with client.runtimes.get_exec(...).

License

Apache-2.0

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

planir-0.1.0b1.tar.gz (58.8 kB view details)

Uploaded Source

Built Distribution

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

planir-0.1.0b1-py3-none-any.whl (84.3 kB view details)

Uploaded Python 3

File details

Details for the file planir-0.1.0b1.tar.gz.

File metadata

  • Download URL: planir-0.1.0b1.tar.gz
  • Upload date:
  • Size: 58.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for planir-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 5be980ff7bdf44f3ebc5a976476a929d987af2e413044598086fedf139993aba
MD5 20f25c90516e479ecbca117d979626de
BLAKE2b-256 c5b59d19a98053aabfbdd35848829d035150956e777e0c1c67639c0d5c723457

See more details on using hashes here.

Provenance

The following attestation bundles were made for planir-0.1.0b1.tar.gz:

Publisher: release.yml on Planir-io/sdk

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

File details

Details for the file planir-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: planir-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 84.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for planir-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 f399842f6975067e67e05e8d78d304dc89e1d036cf76dfd736e09aae21662276
MD5 f5aec3a78abd6a6117204fa82f65f960
BLAKE2b-256 ba1a87219ec98bd43253afd463b714a0312cfb68e8cb2176ce597c5c359153d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for planir-0.1.0b1-py3-none-any.whl:

Publisher: release.yml on Planir-io/sdk

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