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.8

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.8
File Size Uploaded Provenance Actions
kyn_vm-1.1.8.tar.gz 11.7 kB Without provenance Details for kyn_vm-1.1.8.tar.gz

Built distribution (wheel)

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

Total release size: 21.0 kB

Release files / kyn_vm-1.1.8.tar.gz

Download URL kyn_vm-1.1.8.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
80b0f4abd3642bb16de5711d23545621ac91740e1421c6b5405bfc7aef1df7f5
BLAKE2b-256 checksum
How to use checksums
36a4d0f2dba09ce02406f062c6203db4600b04838b27a63540a03c94ee03a3cf
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.8-py3-none-any.whl

Download URL kyn_vm-1.1.8-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44593c3e7224cce1f667573d170142d677b18f5f66e14951f1185bf337c8193c
BLAKE2b-256 checksum
How to use checksums
ab9a6c1d911d9111003cb839c9a6e8c74d98c4fec834fd14ed09c8d522095e61
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.8

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