
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
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
_Metadata
and _PartialMetadata
?These are legacy types that have been replaced by the channels
, frame_rate
,
and sample_rate
keyword arguments.
fix_wav_headers
function signaturebytes
, but this
is incorrect as the function mutates the value. The signature has been updated
to bytearray
. (Fixes #8)WhiteNoise
generator nameWhitenoise
.
(#7 - thanks,
@Kakadus!)AudioSegment
pydub.scipy_effects
is imported, the effect methods may have slightly
different definitions.typing.BinaryIO
to _PathLike
pathlib.Path
to _PathLike
Path
objects
in place of strings. (thanks,
@qthequartermasterman!)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!)
Added v0.25.0 features
This includes pydub.scipy_effects.eq
and new
classmethod parameters.
Signatures now use literals where possible
Overloaded implementations
exist as a fallback.
Added missing modules
pydub.silence
and pydub.utils
AudioSegment.from_file
read_ahead_limit
is absent from the documentation but is a supported keyword
argument.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)
.
pydub.audio_segment
AudioSegment.export
out_f
and isn't
required.Improved signature of AudioSegment.from_file
The keyword arguments
for raw/PCM audio don't require format
to be set to either raw
or pcm
.
Fixed package exports
Exports AudioSegment
from __init__.py
.
AudioSegment.fade
start
, end
,
and duration
must be given.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.
Fixed AudioSegment.__init__
Use overloads to model correct
parameters.
Fixed AudioSegment._spawn
Parameter overrides
accepts a partial
dictionary.
Fixed pydub.scipy_effects.high_pass_filter
Parameter order
should
be int
, not float
.
Released
FAQs
Stub-only package containing type information for pydub
We found that pydub-stubs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.