Skip to main content

pysacd

PyPI Python Wheel Implementation Downloads License

CI Coverage CodeQL Fuzzing Checked with mypy Ruff OpenSSF Scorecard SLSA Build L2

SACD in your Python process, and a clean-room, drop-in replacement for sacd_extract: the same options, the same file names, the same bytes.

from pysacd import read_toc                 # pure Python: no binary, no subprocess

disc = read_toc("album.iso")
print(disc.artist, "-", disc.title)
for t in disc.stereo.tracks:
    print(t.number, t.title, t.duration)

pysacd reads SACD (Scarletbook) disc images, and PS3 SACD Ripper servers, straight from Python. Its multithreaded C engine runs inside your process, so a script, a tagger or a library catalogue drives it with function calls and gets back structured results. It never spawns sacd_extract and parses its text.

Coming from sacd_extract? pysacd-extract is a drop-in replacement, verified file by file against the real thing:

ln -s "$(command -v pysacd-extract)" ~/bin/sacd_extract    # that's the whole migration
pip install pysacd     # wheels for Linux, macOS and Windows; engine and libFLAC included

Why pysacd

Why it exists, in the author's words: author's note.

  • No fork, no scraping.
    • What you get back: objects (or --json), not sacd_extract -P text.
    • Failures are exceptions, not exit codes and stderr.
    • Progress is a callback; to cancel, raise from it.
    • The TOC reader is pure Python and needs no binary.
  • One pass, every output. One call reads an area once and writes DSF, DSDIFF, WAV and FLAC (any mix), plus an ISO copy. DST is decoded on every core, with the GIL released.
  • Byte-for-byte compatible with sacd_extract, apart from a few deliberate exceptions.
  • Clean by construction. No Philips/ISO reference code, ever. DST decoding comes from FFmpeg's LGPL decoder, completed through an auditable two-agent clean room. See clean room and licences.
  • Goes further than sacd_extract:
    • gapless 24-bit FLAC/WAV;
    • MusicBrainz tags and cover art, with your own naming;
    • resume after a dropped PS3 connection;
    • raw-sector (2064/2054-byte) images;
    • protection against hostile disc text;
    • logs you can diagnose a failure from.
  • Faster than sacd_extract: plain-DSD discs extract 2.5–3.6× faster, and DST discs 2.4–2.6× (a faster DST decoder). See performance.

Why you shouldn't use pysacd (yet)

  • Never tested against a real PS3. The network client is verified against a protocol simulator and sacd_extract, but not against hardware (#10).
  • Optical drives: like sacd_extract, it can't read a PC drive's SACD layer. You need an ISO or a PS3.

Documentation

The documentation index lists every document and its sections.

Quick start install, and a tour of the commands
pysacd-extract migrating from sacd_extract, compatibility policy, verification
Converting naming templates, tags, MusicBrainz, gapless PCM
The Python library the API, what's parsed, image formats
Performance benchmarks and their conditions
Reading from a PS3 usage, the wire protocol and the PS3's quirks
Logging what to attach when something fails
Security hostile discs, servers and text; report vulnerabilities via SECURITY.md
Clean room and licences where the code came from, acknowledgements
DST bitstream the clean-room specification
Development building, tests, CI; contributor rules in CLAUDE.md
Contributing reporting bugs, the pull-request process, project rules
Changelog what changed in each release

License

GPL-2.0-or-later, with csrc/dstdec.c under LGPL-2.1-or-later. See clean room and licences.

Metadata

Release files for pysacd 0.2.2

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

Source distribution (sdist)

Source distribution for pysacd 0.2.2
File Size Uploaded Provenance Actions
pysacd-0.2.2.tar.gz 162.1 kB With provenance Details for pysacd-0.2.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pysacd 0.2.2
File Actions
pysacd-0.2.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pysacd-0.2.2-py3-none-win_amd64.whl
pysacd-0.2.2-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for pysacd-0.2.2-py3-none-musllinux_1_2_x86_64.whl
pysacd-0.2.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for pysacd-0.2.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
pysacd-0.2.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64, Linux glibc 2.17+ ARM64 Details for pysacd-0.2.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
pysacd-0.2.2-py3-none-macosx_15_0_x86_64.whl Python 3 none macOS 15.0+ x86-64 Details for pysacd-0.2.2-py3-none-macosx_15_0_x86_64.whl
pysacd-0.2.2-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for pysacd-0.2.2-py3-none-macosx_15_0_arm64.whl

Total release size: 2.1 MB

Release files / pysacd-0.2.2.tar.gz

Download URL pysacd-0.2.2.tar.gz
Size 162.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1d6b3392c7d3147180116625aba335083b7e1af45cf0c11748e81daff2eec3a4
BLAKE2b-256 checksum
How to use checksums
5e189be34fd76d4117be803cf1434d711243f14720e188e746b956b274cde9e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pysacd-0.2.2-py3-none-win_amd64.whl

Download URL pysacd-0.2.2-py3-none-win_amd64.whl
Size 395.6 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
19f2c87e12d1767f51c85a8b524fe76e7e6104d2120a348f61730a7981f2540c
BLAKE2b-256 checksum
How to use checksums
b7a14c15ed8df67fa788addedfc2ca975cbd9d47adc31aa8ecb8b8273d573307
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pysacd-0.2.2-py3-none-musllinux_1_2_x86_64.whl

Download URL pysacd-0.2.2-py3-none-musllinux_1_2_x86_64.whl
Size 362.8 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
80c7b98757abdac2be034036ec5baa096d8898f4e041399c2df3a84562010205
BLAKE2b-256 checksum
How to use checksums
d240c5865fc30fcd485a205dcd6623f55c3026d8671ab77924bff8c0cd1d373f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pysacd-0.2.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pysacd-0.2.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 355.4 kB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
806c20b7afdf585f14b65a5adceea0a10f8b1c247909f1d19710ee29e2f95d06
BLAKE2b-256 checksum
How to use checksums
d4864373235f477bae619a846a1bbd399f02b631003738ab381d52b781a27ed3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pysacd-0.2.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL pysacd-0.2.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 315.6 kB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
5e3383d76be9096c2a80b326f147c0e2020e6bb2821c2be3739473f4e333a22d
BLAKE2b-256 checksum
How to use checksums
50617758e164f2cb369828d8badb2e417f5c7b9b0d578f0b4a3f993d0731fe95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pysacd-0.2.2-py3-none-macosx_15_0_x86_64.whl

Download URL pysacd-0.2.2-py3-none-macosx_15_0_x86_64.whl
Size 269.6 kB
Tags Python 3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
e66e616e28b3eea6da6041ebb3e992cdcd32940ce46d42edea81b252cc9304e3
BLAKE2b-256 checksum
How to use checksums
22a72b2b00736a34ddfa93ad7e19603e22ee5380eb69eae49b54e07654c12fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pysacd-0.2.2-py3-none-macosx_15_0_arm64.whl

Download URL pysacd-0.2.2-py3-none-macosx_15_0_arm64.whl
Size 249.6 kB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
5878c7f9434e872aa6070acaa45d03c04b79762f32adc3cfd6aa424e717855e5
BLAKE2b-256 checksum
How to use checksums
f32908fd93371d6fc4e69ef4a6b530916e1556563a44ec57a20ef6ef7064f9a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 pysacd 0.2.2

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 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for pysacd-0.2.2.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