Skip to main content

pysacd

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

Why pysacd

  • 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.
  • Plain-DSD discs extract 2.5–3.6× faster. On DST discs it's essentially a tie, because both tools saturate every core. See performance.

Why you shouldn't use pysacd (yet)

  • Not on PyPI (yet): wheels for Linux, macOS and Windows come from GitHub releases until the first PyPI release (quick start).
  • Never tested against a real PS3. The network client is verified against a protocol simulator and sacd_extract, but not against hardware (#10).
  • It isn't faster on DST discs.
  • 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

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.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 pysacd 0.2.0
File Size Uploaded Provenance Actions
pysacd-0.2.0.tar.gz 156.6 kB With provenance Details for pysacd-0.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 2.0 MB

Release files / pysacd-0.2.0.tar.gz

Download URL pysacd-0.2.0.tar.gz
Size 156.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dff6908297ea4b73629be19cb89c6ba13b311f2752c2a288a7bf779a7986099a
BLAKE2b-256 checksum
How to use checksums
9f066dee1302c9788913319125f7c3340143adb840458cd78429a56fb5875b93
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 29, 2026.

Transparency log

Release files / pysacd-0.2.0-py3-none-win_amd64.whl

Download URL pysacd-0.2.0-py3-none-win_amd64.whl
Size 381.3 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
8f5859fba1b71e4f2d71c93ef3742e770dc343c05536ddfe63ed39439ec51d5a
BLAKE2b-256 checksum
How to use checksums
4c9c6e9a08d452571fc9164cb2b91745656afdb09f2e745c5f8dfd868e439c37
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 29, 2026.

Transparency log

Release files / pysacd-0.2.0-py3-none-musllinux_1_2_x86_64.whl

Download URL pysacd-0.2.0-py3-none-musllinux_1_2_x86_64.whl
Size 341.6 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
828ee184a820875c53bc726812d1dce9e19dbe10ad5251d7f06b36b0a4a94093
BLAKE2b-256 checksum
How to use checksums
deeaef9932e6da97dfd7dc873488caba5504a2fe231af9e44f3aef2460c9d65d
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 29, 2026.

Transparency log

Release files / pysacd-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pysacd-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 336.0 kB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
883517b2e3657a543d08fcc5300d85d5aced33d3f3c878e6013942fe44397c08
BLAKE2b-256 checksum
How to use checksums
ddc18bdb2ca16e9118d1caed5997984edf5ca91820a4ee413c1193b746f35c9c
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 29, 2026.

Transparency log

Release files / pysacd-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL pysacd-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 289.6 kB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
725b6c4a8a678250052939da05cf5ffeafae7d6e9dfef18c937d5eba6987be69
BLAKE2b-256 checksum
How to use checksums
8cc55d8998d829d138dfc7e44aa89dabef42064ea966c83a4c8c0a898e20fc1b
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 29, 2026.

Transparency log

Release files / pysacd-0.2.0-py3-none-macosx_15_0_x86_64.whl

Download URL pysacd-0.2.0-py3-none-macosx_15_0_x86_64.whl
Size 253.0 kB
Tags Python 3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
425bbe722b1299799f56051777c39251f66bd51ace68753388402eae0e4cd086
BLAKE2b-256 checksum
How to use checksums
c84a9fca3de510b1b40366bca34d8da40670a0d9516d9a34d892381fc0004496
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 29, 2026.

Transparency log

Release files / pysacd-0.2.0-py3-none-macosx_15_0_arm64.whl

Download URL pysacd-0.2.0-py3-none-macosx_15_0_arm64.whl
Size 232.3 kB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
d0f1b5afda9688cd028c2fa80ac17a64007e2f2afe00437ae4e210a61842567c
BLAKE2b-256 checksum
How to use checksums
2de2bbf45f5cf2a33676abae817048fd47b989f4133df9e8eee80d5afbbc9f00
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 29, 2026.

Transparency log

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

Select from 7 files

Attestation for pysacd-0.2.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 Oct 29, 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