pydub-stubs
Pydub version: 0.25.1
pydub-stubs provides type information for Pydub.
Only the public
interface is guaranteed to be typed, however there are type definitions for some
private and undocumented functions.
pip install pydub-stubs
Anticipated Questions
Q: What is _Metadata and _PartialMetadata?
These are legacy types that have been replaced by the channels, frame_rate,
and sample_rate keyword arguments.
Changelog
Version 0.25.1.6
- Fixed incorrect undocumented
fix_wav_headersfunction signature
Previously, the function signature was defined as taking abytes, but this is incorrect as the function mutates the value. The signature has been updated tobytearray. (Fixes #8)
Version 0.25.1.5
- Fixed incorrect
WhiteNoisegenerator name
Previously, the generator was incorrectly namedWhitenoise. (#7 - thanks, @Kakadus!)
Version 0.25.1.4
- Added "effect" functions as methods on
AudioSegment
The methods have always been accessible on AudioSegment, but since they are not defined on the class, they were not previously defined in the type stubs. Note that ifpydub.scipy_effectsis imported, the effect methods may have slightly different definitions.
Version 0.25.1.3
- Added
typing.BinaryIOto_PathLike
Pydub supports using an IO object in place of a file for both creating and exporting AudioSegments. (Fixes #5)
Version 0.25.1.2
- Added
pathlib.Pathto_PathLike
Allows you to usePathobjects in place of strings. (thanks, @qthequartermasterman!)
Version 0.25.1.1
-
Removed literal type fallback overloads
The fallbacks removed all the advantages of using literals at all. -
Modernized the type stubs
Uses new union syntax, and more. (#2 and #3 - thanks, @Viicos!) -
Add
WavSubChunk,WavData, and undocumented functions
These previously existed and were available but were untyped. (thanks again, @Viicos!)
Previous versions
Version 0.25.1.0
-
Added v0.25.0 features
This includespydub.scipy_effects.eqand new classmethod parameters. -
Signatures now use literals where possible
Overloaded implementations exist as a fallback. -
Added missing modules
pydub.silenceandpydub.utils
Version 0.24.1.9
- Add undocumented parameter of
AudioSegment.from_file
read_ahead_limitis absent from the documentation but is a supported keyword argument.
Version 0.24.1.8
- Export other modules
Adds exports for effects, exceptions, generators, playback, and scipy_effects
Version 0.24.1.7
-
Added
AudioSegment._spawn(again)
This was accidentally removed in an earlier version. -
Improved
pydub.effects.invert_phase
This is technically less accurate as(0, 0)is equivalent to(0, 1).
Version 0.24.1.6
- Removed testing symbols from
pydub.audio_segment
Version 0.24.1.5
- Fixed
AudioSegment.export
First param is namedout_fand isn't required.
Version 0.24.1.4
-
Improved signature of
AudioSegment.from_file
The keyword arguments for raw/PCM audio don't requireformatto be set to eitherraworpcm. -
Fixed package exports
ExportsAudioSegmentfrom__init__.py.
Version 0.24.1.3
- Fixed overloads of
AudioSegment.fade
Exactly two ofstart,end, anddurationmust be given.
Version 0.24.1.2
-
Improved
AudioSegment.fade
Changed to use overloads to prevent invalid method calls. -
Improved
AudioSegment.from_mono_audiosegments
Use a positional-only parameter to ensure there's at least 1 argument.
Version 0.24.1.1
-
Fixed
AudioSegment.__init__
Use overloads to model correct parameters. -
Fixed
AudioSegment._spawn
Parameteroverridesaccepts a partial dictionary. -
Fixed
pydub.scipy_effects.high_pass_filter
Parameterordershould beint, notfloat.
Version 0.24.1.0
Released
Metadata
Release files for pydub-stubs 0.25.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pydub_stubs-0.25.1.6.tar.gz | 8.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydub_stubs-0.25.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / pydub_stubs-0.25.1.6.tar.gz
| Download URL | pydub_stubs-0.25.1.6.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38e9a1e490b11e9fdd3c5a0b01667e2d959c817aadb56555b124c6c8be028ff5
|
|
BLAKE2b-256 checksum How to use checksums |
5c282ae85a1671861ee88235c3bd50f495a80562003f22ab4223af6c8dfcbfc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.6 Darwin/24.4.0
|
Release files / pydub_stubs-0.25.1.6-py3-none-any.whl
| Download URL | pydub_stubs-0.25.1.6-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
235be0707485c48fe3d6537c751171bfeca21480c914e7e7bc9db2d6ed65f8ae
|
|
BLAKE2b-256 checksum How to use checksums |
529ec286937e56d47c97ce2221456b7779abf6449fd41d78a8fb9d2b13065b8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.6 Darwin/24.4.0
|
Security for pydub-stubs 0.25.1.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.