Skip to main content

kyn-vm — Python Host Bridge for Kyn (.ksnap)

Zero-dependency Python host bridge allowing Python applications to run durable, sandboxed Kyn workflows, freeze .ksnap continuations, fork parallel branches, and resume across processes.

Installation

pip install kyn-vm

Requires Node.js >= 18 (kyn-engine / Kyn CLI) available on PATH or passed via KynVM(kyn_bin=...).

npm install -g kyn-engine

Quick Start

from kyn_vm import KynVM

vm = KynVM()
res = vm.run(
    '''
total = 0
for i in range(100):
    total += i
print("done", total)
''',
    max_steps=150,
    preempt=True,
    freeze_path="checkpoint.ksnap",
)
print(res.status, res.bytes)

# Inspect, fork, and resume a suspended .ksnap timeline
info = vm.inspect("checkpoint.ksnap")
vm.fork("checkpoint.ksnap", "branch_a.ksnap")
resumed = vm.resume("branch_a.ksnap", resume_val=42)
print(resumed.stdout)

Metadata

Release files for kyn-vm 1.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kyn-vm 1.1.6
File Size Uploaded Provenance Actions
kyn_vm-1.1.6.tar.gz 11.3 kB Without provenance Details for kyn_vm-1.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kyn-vm 1.1.6
File Interpreter ABI Platform Actions
kyn_vm-1.1.6-py3-none-any.whl Python 3 none any Details for kyn_vm-1.1.6-py3-none-any.whl

Total release size: 20.4 kB

Release files / kyn_vm-1.1.6.tar.gz

Download URL kyn_vm-1.1.6.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e8faea6e48d2563229541c24f53250c7a2a3c1e9c4ced5e2dc686294e40e49a9
BLAKE2b-256 checksum
How to use checksums
939cd28bda5e0adbb61b9fcafd5e6346051e3e3fd38dbb1c5c3508d4e57b08b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / kyn_vm-1.1.6-py3-none-any.whl

Download URL kyn_vm-1.1.6-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12d0e139d42a1165a815345863be1e6281733ca4ed14316298fd549374e63e20
BLAKE2b-256 checksum
How to use checksums
49ea6d606a520cdd50d5c8c5180c70d923e354a06b18067ab01012d44ff714f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for kyn-vm 1.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page