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

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.4.1
File Size Uploaded Provenance Actions
pydmcsid-0.4.1.tar.gz 74.8 kB With provenance Details for pydmcsid-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 131.2 kB

Release files / pydmcsid-0.4.1.tar.gz

Download URL pydmcsid-0.4.1.tar.gz
Size 74.8 kB
Tags Source
SHA-256 checksum
How to use checksums
02ee1fd301f5c4b73a8149a45490b574aff8b302174d4e42373d84c66617ab75
BLAKE2b-256 checksum
How to use checksums
def5986acac8cb94ca84233ef45359db6f47c52bdef869afce501ce28c48af65
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 Oct 30, 2026.

Transparency log

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

Download URL pydmcsid-0.4.1-py3-none-any.whl
Size 56.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
800c1510e004bb5b2bc4c158f309d8c8651a038de65da4756f9d1b12281d7d7f
BLAKE2b-256 checksum
How to use checksums
a23b68910b55b16d9a29af28aa334496d73a60affdf7f8033f745adae5c2428d
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 Oct 30, 2026.

Transparency log

Security for pydmcsid 0.4.1

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.4.1.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 Oct 30, 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