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)
Links
- GitHub: https://github.com/tranhuykhang31032013-koocbiet/Kyn
- npm (
kyn-engine): https://www.npmjs.com/package/kyn-engine - Live Playground: https://tranhuykhang31032013-koocbiet.github.io/Kyn/playground/
- License: MPL-2.0
Metadata
Release files for kyn-vm 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kyn_vm-1.1.7.tar.gz | 11.4 kB | Without provenance | Details for kyn_vm-1.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kyn_vm-1.1.7-py3-none-any.whl | Python 3 | none | any | Details for kyn_vm-1.1.7-py3-none-any.whl |
Total release size: 20.4 kB
Release files / kyn_vm-1.1.7.tar.gz
| Download URL | kyn_vm-1.1.7.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1b428470d85a1f3ac5fc26164e8c0aae099880089e76f2c4684ca555e982fd5
|
|
BLAKE2b-256 checksum How to use checksums |
07e919edc6b80bc2f859912fbb0739e945843c2d50161bfde1b514b4f7ef8301
|
| 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.7-py3-none-any.whl
| Download URL | kyn_vm-1.1.7-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a318a182300ac91aef8a8adba79bb14b6001dc63846ec2e88cf8adb13216fb9c
|
|
BLAKE2b-256 checksum How to use checksums |
d5dc3bc5343927d8128038db97b260994700c63caffb0151d861afef856ec2ee
|
| 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.7
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.