skillfed

standard-sunau

Standard library sunau redistribution. "dead battery".

standard-sunau v3.13.0 1.5M downloads/30d#3,808 on PyPI37
Permissive license PSF-2.0 DORMANT released

What it is and what it does

This package redistributes the sunau module, which Python removed from its standard library as part of PEP 594's "dead batteries" cleanup. The sunau module reads and writes Sun audio (.au) files, a legacy audio format. It is a pure-Python archive of the original standard library code with minimal compatibility work—no new features or enhancements are planned.

If your project imports sunau and you are running Python 3.13 or later, installing standard-sunau allows that import to work without code changes. The package depends on audioop-lts, another standard library redistribution, to handle audio data operations. This is a compatibility shim for legacy codebases; new projects should consider alternative audio libraries.

Use it for:

  • Maintain a legacy application that reads or writes .au audio files without rewriting audio handling code
  • Migrate a codebase to Python 3.13+ that previously relied on the built-in sunau module
  • Provide backward compatibility for users running older code that imports sunau on newer Python versions

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides the sunau module, a standard library audio file handler removed from Python 3.13, as an installable package for projects that still depend on it.

Yes, if your project depends on sunau and you need to run on Python 3.13 or later. Install it as a drop-in replacement with no code changes required. The low install friction, permissive license, and zero known vulnerabilities make it a straightforward compatibility fix. Do not install if you are starting a new project or can migrate to a modern audio library.

Install

standard-sunau on PyPI

pip

pip install standard-sunau

uv

uv add standard-sunau

poetry

poetry add standard-sunau

Installing standard-sunau

Before you install

Low install friction with a single lightweight dependency. Maintenance is dormant with the last release on 2024-10-30, but the package is not archived; no active development is expected for a frozen standard library module.

License in practice

Licensed under PSF-2.0 (permissive), matching the original Python standard library license, so there are no licensing barriers to using this package in most projects.

Quickstart

pip install standard-sunau

import sunau

with sunau.open('file.au', 'rb') as f:
    params = f.getparams()
    frames = f.readframes(params[3])

Verify before relying

  • Whether the package works correctly on all Python versions after 3.13 (requires_python is unspecified)
  • Whether audioop-lts is maintained and compatible with current Python releases
  • Full scope of compatibility work performed beyond minimal standard library archival

Package facts

License PSF-2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — audioop-lts
Maintenance dormant — 653 days since the last release
Last repo commit
First released
Downloads 1,530,341/month — #3,808 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: standard_sunau-3.13.0-py3-none-any.whl

Keywords: stdlib

License :: OSI Approved :: Python Software Foundation LicenseProgramming Language :: Python :: 3Topic :: Software Development :: Libraries

Tags

sunau audio filespython removed stdlibdead batteries redistributionau audio formatstandard library backport
stdlib-backportlegacy-audio

More Libraries packages