pydub2-compat
Optional add-on for pydub2. Once it is installed, import pydub gives you pydub2.
Most packages write import pydub or from pydub import AudioSegment. This makes those lines
load pydub2 without touching the code of those packages. pydub.AudioSegment is pydub2.AudioSegment,
and the same for pydub.utils, silence, effects, generators, playback, exceptions,
audio_segment, scipy_effects and logging_utils.
It is opt in. pydub2 alone never takes over the name pydub. Install it with pip install pydub2-compat.
The real pydub can stay installed, gradio and others depend on it and pip will keep installing it.
No files go into a pydub/ folder. The package is one .pth file and one small import hook.
pydub2 is only imported when something imports pydub.
To turn it off set PYDUB2_COMPAT=0 in the environment, or pip uninstall pydub2-compat.
If pydub2 fails to import you get a one line warning and the real pydub is used.
Things to know:
- It needs the
.pthfile to be read, so it does not work withpython -S. Withpip install --userit does not work underpython -I. Normal installs and venvs are fine. pip listandimportlib.metadata.version("pydub")still report the real pydub if it is installed.pydub.pyaudioopandpydub.audioopdo not exist and raise ImportError, pydub2 has no audioop.python -m pydub.somethingstops with "No code object available".- Do not run tests that compare against pydub with this installed, they would test pydub2 against itself.
Metadata
Release files for pydub2-compat 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydub2_compat-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pydub2_compat-0.0.1-py3-none-any.whl |
Release files / pydub2_compat-0.0.1-py3-none-any.whl
| Download URL | pydub2_compat-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
757a2551d553c70520547965d219379966d43cd78fe5e46099a117f93b8e11a5
|
|
BLAKE2b-256 checksum How to use checksums |
e6de62a31ae0bd474b37b4fb3d630f8b9f9bbad9a93d990b0e5cc789b7867374
|
| 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 16, 2026.
Transparency logSecurity for pydub2-compat 0.0.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
1 file in this release has been uploaded with provenance metadata.
Attestation for pydub2_compat-0.0.1-py3-none-any.whl
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 16, 2026.
Transparency logA 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.