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.38.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.38.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (355.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pozalabs_pydub-0.38.0-cp311-abi3-win_amd64.whl (208.2 kB view details)

Uploaded CPython 3.11+Windows x86-64

pozalabs_pydub-0.38.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (355.6 kB view details)

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

pozalabs_pydub-0.38.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (348.0 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

pozalabs_pydub-0.38.0-cp311-abi3-macosx_11_0_arm64.whl (317.8 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

pozalabs_pydub-0.38.0-cp311-abi3-macosx_10_12_x86_64.whl (322.5 kB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: pozalabs_pydub-0.38.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.38.0.tar.gz
Algorithm Hash digest
SHA256 398e395074ecab552c11e42a08d3e66aabced99466221645645b2655c328d16a
MD5 0d5ff8db1e29bfb858f14f428c27e50f
BLAKE2b-256 d29793e542395a3f63b0fa57644db9330127067dfe7566788a74a65856defaec

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.38.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.38.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.38.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65785c0d7feb675bbe421a38ad34872dc0af1a75ae7cfba8224063462c2a3731
MD5 7f3481648b6a5bec151ca8a512067eab
BLAKE2b-256 1df74e73766d3fd9c1bf5cb4bc4449612ed0fb11a96cb142d97975fa7fe3dba9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.38.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.38.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.38.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 57cfcfcc8423e884e500c430889cb34ed22e8bfaededeed406db202a0f350de2
MD5 6b6e0b23a208c746867ff496aaa9d36c
BLAKE2b-256 344150d0fc2d1734e0fb6f573576821b4fb81bcd38759e86f5a45b264df35acf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.38.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.38.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.38.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ade93708d81762ec02a791157191b2532add73dead1e31ed07bae12d59baf393
MD5 383e002bcbd8c687347d29fb0de9be71
BLAKE2b-256 d2cabc4ac4bfd7d5ccbe38119a761aa30c7159b7a393f26f1817c2b8c9772159

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.38.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.38.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.38.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5065cf64830338927fb01f4d0b8067289b1ce3520569bd6086d5fc0693e08823
MD5 7c69ef6fc3b352a51b6c40d9cc22e9b2
BLAKE2b-256 e6eab980989ad3cbed3351f28eeccf0b5aa87480b580f0d9ba89499ebb2d16b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.38.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.38.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.38.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea39b68b002df2d9a27e232cf5656ccaae7bee38ae423aa18839930123f4131e
MD5 7c17f6716070b46c0d279ac2b3f6a067
BLAKE2b-256 ccda82c3d830ca2f97a23021b2c0eec68e9f72736ee028633d874f28f959afb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.38.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.38.0-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pozalabs_pydub-0.38.0-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2991568f8b63f5642b42b177c01b50809bbacc057596c161d3235977b06b39c5
MD5 d0525e37c02c0487464c638cc43a0533
BLAKE2b-256 18b69da0e8b8a010545135c4f82ca8f4b0d0e704f9c8f44703df908aa790aae5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pozalabs_pydub-0.38.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