Skip to main content

vagrant-moses

A standalone C64 machine model: the memory map, the $01-banked bus and ROMs (sidplayfp's ROM-less set, or the real ones fetched and SHA-256 verified into a cache), the VIC-II and two CIAs over a shared two-phase event scheduler, a cycle-exact 6510 machine matching libsidplayfp, an optional 17xx REU matching VICE, KERNAL file/keyboard traps, the power-on RAM, the installed-interrupt-vector discovery, the ROM-free IRQ dispatch path, and native extraction of files from release media (zip/gzip, d64/d71/d81, t64, p00).

Pure Python with no runtime dependencies (wheels also carry a native Rust Machine); the CPU-driven parts (Machine, flat_mpu, KernalHost) run on jennings via the cpu extra; the media CLI's progress bar needs the cli extra. The SID's audio model is not implemented here: sidorder judges envelopes through the optional pylibresidfp (the sidorder extra). SID-file knowledge (PSID/RSID containers, subtune headers, drivers) is deliberately not here.

Install

pip install -e ".[cpu]"            # add ".[sidorder]" / ".[cgen]" for sidorder / cgen

Use

from vagrant_moses import Cia, Machine, Scheduler, Vic, c64

mem = bytearray(c64.poweron_ram())                       # 64 KiB power-on image
vec, kernal = c64.installed_vector(mem, written, (lo, hi))
entry_pc = c64.install_irq_entry(vm, vec, kernal, img=(lo, hi))

sched = Scheduler()
vic = Vic(sched, ntsc=False, irq=lambda on: ..., set_ba=lambda on: ...)
cia = Cia(sched, interrupt=lambda on: ..., new=False)

machine = Machine(sids={0xD400: sid_device})            # cycle-exact C64
machine = Machine(reu=512)                               # with a 1750 REU at $DF00
machine = Machine(roms={0xE000: kernal})                 # a real KERNAL, ROM-less elsewhere
machine.ram[0x1000:0x1000 + len(code)] = code
machine.run(machine.reset(0x1000) + 985248)              # one PAL second
machine.set_key(1, 2, True)                              # hold A (PA1/PB2, VICE keyarr order)
fork = machine.clone()                                   # independent, cycle-identical copy

from vagrant_moses import Program, R, run_forks

p = Program(budget=985248, marker=frame_pc)              # a driver program, run natively
p.key(1, 2).count_to(frame_pc, 10).ld(R[0], 0xC000).out(R[0]).halt(0)
outcome = machine.run_program(p)                         # Outcome(status, code, cycle, frames, outputs)
outcomes = run_forks(machine, [p] * 1000)                # each on its own fork, on all cores
from vagrant_moses import iter_prgs

for path, prg in iter_prgs("release.zip", blob):        # zip -> d64.gz -> d64 -> PRG
    ...
pip install "vagrant-moses[cli]"
vagrant-moses media extract dl/ -o prg/                 # prints sha256 size $load path

Docs

Develop

pip install -e ".[dev]"
black --check src tests scripts && pylint src tests scripts && pytest

Metadata

Release files for vagrant-moses 0.20.0

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

Source distribution (sdist)

Source distribution for vagrant-moses 0.20.0
File Size Uploaded Provenance Actions
vagrant_moses-0.20.0.tar.gz 141.7 kB With provenance Details for vagrant_moses-0.20.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vagrant-moses 0.20.0
File Interpreter ABI Platform Actions
vagrant_moses-0.20.0-py3-none-any.whl Python 3 none any Details for vagrant_moses-0.20.0-py3-none-any.whl
vagrant_moses-0.20.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for vagrant_moses-0.20.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
vagrant_moses-0.20.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for vagrant_moses-0.20.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Total release size: 1.5 MB

Release files / vagrant_moses-0.20.0.tar.gz

Download URL vagrant_moses-0.20.0.tar.gz
Size 141.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7850292ee9bdd3900c4fdf2d6b4948882008b00068ac9e89225d871b5e6b12be
BLAKE2b-256 checksum
How to use checksums
894805aea54d36ffa79f121bba4ad5e40c70f0fea3c6d4326d142681c275a3e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / vagrant_moses-0.20.0-py3-none-any.whl

Download URL vagrant_moses-0.20.0-py3-none-any.whl
Size 83.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8c64dde9f2b820c89324de27294237e8f7a3c355d4973827fe52ea7de92fc62
BLAKE2b-256 checksum
How to use checksums
51684253d3b71fa7a33e292b47a3edfeadea5a3f67c72efd941d51920c793b17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / vagrant_moses-0.20.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL vagrant_moses-0.20.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 656.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e793e4d2409aff5f49972213fb0322448b75b5a342d51d9fd6b010994372e02f
BLAKE2b-256 checksum
How to use checksums
b75306c1d19d14838abc63c28801061a2ab6bc06d04b31743d5f97e9336b7357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / vagrant_moses-0.20.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL vagrant_moses-0.20.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 636.4 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d3fa6a189eb2b1c40446256e92cab6b065e60d4abf099977c0dc055fd2ccd626
BLAKE2b-256 checksum
How to use checksums
e0d83e7d81c8fb682fc13ff232c67af758f3260e342203645f345b3d94c9a4c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for vagrant-moses 0.20.0

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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for vagrant_moses-0.20.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

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