Skip to main content

Manipulate audio with an simple and easy high level interface (Pozalabs fork)

Project description

Pydub (Pozalabs Fork)

Pydub lets you do stuff to audio in a way that isn't stupid.

This is a Pozalabs fork of jiaaro/pydub, published as pozalabs-pydub on PyPI.

Changes from Upstream

Requirements

  • Python 3.11+ (upstream supports Python 2.7+)
  • All legacy Python 2 compatibility code has been removed

Performance (Rust/PyO3 Extensions)

  • overlay_segments - Pre-allocated buffer overlay replacing audioop.add/mul (16-bit 4-5x, 32-bit 11-16x faster)
  • extend_24bit_to_32bit - Zero-copy 24-bit to 32-bit sample extension via direct PyBytes allocation (~400x faster than pure Python)
  • fade() - Memory-efficient fade using memoryview, with coarse/precise two-path implementation

New Features

  • Compressed audio I/O - from_file() auto-detects and decompresses gzip/zstd files; export() accepts an optional compressor parameter
  • Audio level metering - measure_audio_level() for RMS, peak, and LUFS measurement
  • Waveform data - get_normalized_amplitudes() computes normalized amplitude values for waveform visualization
  • Silent audio generation - Create silent audio matching the original segment's parameters
  • Audio processing framework - Command-based processor architecture for merge, overlay, and format conversion
  • Python 3.13 support - Via audioop-lts dependency

Type Safety

  • Comprehensive type hints using Self, Literal, TypedDict, Unpack
  • _AudioParams dataclass with validation for initialization parameters

Build System

  • pyproject.toml with maturin backend, managed by uv
  • Rust(PyO3) native extension compiled via maturin
  • Wheel distribution via GitHub Actions

Optional Dependencies

  • zstandard (>=0.23.0) - Zstandard compression (pip install pozalabs-pydub[zstd])

For general usage, API documentation, and ffmpeg setup, see the upstream README.

License

MIT License - Copyright 2011 James Robert

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pozalabs_pydub-0.39.0.tar.gz (27.4 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pozalabs_pydub-0.39.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (350.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pozalabs_pydub-0.39.0-cp311-abi3-win_amd64.whl (204.1 kB view details)

Uploaded CPython 3.11+Windows x86-64

pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (350.2 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (343.5 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

pozalabs_pydub-0.39.0-cp311-abi3-macosx_11_0_arm64.whl (311.3 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

pozalabs_pydub-0.39.0-cp311-abi3-macosx_10_12_x86_64.whl (315.4 kB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file pozalabs_pydub-0.39.0.tar.gz.

File metadata

  • Download URL: pozalabs_pydub-0.39.0.tar.gz
  • Upload date:
  • Size: 27.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pozalabs_pydub-0.39.0.tar.gz
Algorithm Hash digest
SHA256 a9e5794c7c4fe592b8300738e1e4a4e555214bcd1b615740cc21b6a124eb8731
MD5 10f09f34ca3d2ad84cdb8c0bc3e6b371
BLAKE2b-256 c0cff6c081ddfd7cdce7acbb324798fb7517d76e62c361e8387fba835e9df5e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.39.0.tar.gz:

Publisher: publish.yml on POZAlabs/pydub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pozalabs_pydub-0.39.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.39.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fa0e5a18ae5e0380c13f0718aa8214c686e1a2a88eacb1456132404cb412dac3
MD5 d28c9dfe2a0a06316bebbd16e23b60b4
BLAKE2b-256 e16c5bcd3cb616b25736655efb2f9ce9a452dc389e898f740e556490102800ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.39.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on POZAlabs/pydub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pozalabs_pydub-0.39.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.39.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d0fdcc90cf4bdb8d2f718413130cd01ccb9e7b03e5dc7b944448724fef5fb21f
MD5 ffd9b147db9ce450a83867a13a5ad1f9
BLAKE2b-256 09c1f0b8bc19d692fbb9ece609a1c917fc897f7e7f131cced311d82eb0b45446

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.39.0-cp311-abi3-win_amd64.whl:

Publisher: publish.yml on POZAlabs/pydub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f5902775fd757997491fe2dc3437657594cf2305c860dc2bab347dc55935761d
MD5 3728b8b9943ca13c7c969bab6613450d
BLAKE2b-256 5754fab23ba4c2975462d68780a5c09b6c1a4c168ff6c131baa347d4b79e6b31

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on POZAlabs/pydub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cd7f4f148a34f79109b1ab6db709dbe5ac4c3ff2b8c2b528584300e7d1f920ed
MD5 7201456cfef79a7b7a600a6837623ad5
BLAKE2b-256 669ad73f61b6e9acf398399da97f6d4b9782269c24ad62df048cb38f554d4ae9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.39.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on POZAlabs/pydub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pozalabs_pydub-0.39.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.39.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0527dba7dd6aa5a59de6e87bcd5f6df99c99b1eb7aab4851a18ab7189fe46dc0
MD5 ad10bb3979bc0653af7515c7ff98bb8f
BLAKE2b-256 ed2ce840f438adf78ac3d50b0b82e8f341770ef780325567a7d135040d179870

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.39.0-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on POZAlabs/pydub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pozalabs_pydub-0.39.0-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.39.0-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 936896878b78a67f4e17f26f1dd2c764ca3bcccf4ca92d2b06ae87ffce2e567b
MD5 b8eb00f7d63b668f80794a776d0bc4d9
BLAKE2b-256 172f689d6caf2c12f840ea8c5eaa377ddb8e9496d6238936ba194385946b9e58

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.39.0-cp311-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on POZAlabs/pydub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page