Skip to main content

pydmcsid

Pure-Python reader and player for DMC (Demo Music Creator) C64 SID tunes — the player by Brian/Graffity (-PLAYER (C) BRIAN/GRAFFITY!).

Consumes .sid files (PSID/RSID containers) and bare .prg images through the shared pysidtracker base: the resident DMC player plus its per-tune data are loaded as a memory image, the per-tune table bases are located from the player-code operands (relocated and short-stub-prepended images are found), and container headers are only partly trusted: the header init/play vectors are followed to detect play-wrappers (wrapper_body, the byte-exact gates and the $937 multispeed handling), but the player body is located from the code.

Install

pip install pydmcsid

Usage

import pydmcsid

song = pydmcsid.read("tune.sid")       # path, bytes, or binary file object
print(song.byte_exact())               # is this build reproduced frame-for-frame?

grid = pydmcsid.DmcPlayer(song).render_grid(3000)   # per-frame $D400..$D418 (25 regs)

for w in pydmcsid.iter_register_writes(song, max_frames=50 * 60):
    print(w.clock, w.reg, w.val)       # absolute CPU cycle, $D4xx reg offset, value

pydmcsid.write(song, "out.prg")        # export the packed player+data image
pydmcsid.write(song, "out.sid")        # ...or a PSID/RSID container

DmcPlayer is a pysidtracker playspec player covering every DMC generation; render_grid(n) returns the forward-filled 25-register grid. iter_register_writes follows the shared py* register-log convention: one RegWrite(clock, reg, val) per SID write, frames cycles_per_frame apart.

Development

pip install -e ".[dev]"
pysidtracker fixtures fetch tests/fixtures/dmc_native_manifest.txt
pytest

See docs/format.md for the DMC data model, recognition anchors, supported builds, byte-exact coverage, and the HVSC oracle survey.

License

Apache 2.0 — see LICENSE.

Metadata

Release files for pydmcsid 0.5.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 pydmcsid 0.5.0
File Size Uploaded Provenance Actions
pydmcsid-0.5.0.tar.gz 75.1 kB With provenance Details for pydmcsid-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydmcsid 0.5.0
File Interpreter ABI Platform Actions
pydmcsid-0.5.0-py3-none-any.whl Python 3 none any Details for pydmcsid-0.5.0-py3-none-any.whl

Total release size: 131.6 kB

Release files / pydmcsid-0.5.0.tar.gz

Download URL pydmcsid-0.5.0.tar.gz
Size 75.1 kB
Tags Source
SHA-256 checksum
How to use checksums
50e512ab09beb05e83f93a75e4905a29fe244d6475b7a7d79fc3c9f905dd3134
BLAKE2b-256 checksum
How to use checksums
5b9ab62f4110cfcbd01da523f78ded876f4930ec91dc9ce38c5d58011a634f33
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 1, 2026.

Transparency log

Release files / pydmcsid-0.5.0-py3-none-any.whl

Download URL pydmcsid-0.5.0-py3-none-any.whl
Size 56.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c23a5ddd7072c51c9da8e8b89103930f39edaa5c60b0950ea4b41eaab114ef13
BLAKE2b-256 checksum
How to use checksums
740c4997621e9f3b5bc19e5506068f80be40c60665301f03cc907ac4f2010dd7
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 1, 2026.

Transparency log

Security for pydmcsid 0.5.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pydmcsid-0.5.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 1, 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