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
page = client.runtimes.list()
for runtime in page:
    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.0b0.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.0b0-py3-none-any.whl (84.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: planir-0.1.0b0.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.0b0.tar.gz
Algorithm Hash digest
SHA256 ace6fc110968b79f2936a4250ba615404e2f48d5af2cbbbca3941b4e9ce8ad6b
MD5 b8a3a003810d3fc2a9265c6c0b9494a2
BLAKE2b-256 0856743090c85f6052215d8ff2f06551ff543944374e2e4fb868b93bd725cc50

See more details on using hashes here.

Provenance

The following attestation bundles were made for planir-0.1.0b0.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.0b0-py3-none-any.whl.

File metadata

  • Download URL: planir-0.1.0b0-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.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6b7a18f6b84b91644adf8c25a8558939b38b044a3bd0060834cb2d3a5a47701
MD5 398740ace6b6c06d0c96357ed674b6c8
BLAKE2b-256 bc60d0434a6a81e1655e7b664fbd09d6191da08259084ce2b0e26905ded7c888

See more details on using hashes here.

Provenance

The following attestation bundles were made for planir-0.1.0b0-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