PyWavelets
PyWavelets, wavelet transform module
What it is and what it does
PyWavelets is a Python library for computing wavelet transforms—mathematical operations that decompose signals into time-frequency components using basis functions localized in both time and frequency. Unlike Fourier transforms, which capture only frequency information, wavelet transforms preserve temporal localization, making them useful for analyzing non-stationary signals. The library supports forward and inverse discrete wavelet transforms in 1D, 2D, and nD, multilevel decomposition, stationary (undecimated) transforms, wavelet packet decomposition, continuous wavelet transforms, and custom wavelet definitions. It includes over 100 built-in wavelet filters and handles both real and complex data in single and double precision.
The package depends only on numpy and is available as precompiled wheels for modern Python versions on common platforms. It is actively maintained, marked Production/Stable, and has been in continuous development since 2006. Installation is straightforward on supported platforms via pip, though building from source requires a C compiler and Cython.
Use it for:
- Decompose audio or seismic signals into frequency bands for feature extraction or denoising.
- Analyze non-stationary signals where frequency content changes over time, such as medical data.
- Perform image compression or feature detection using 2D wavelet transforms.
- Implement wavelet-based filtering or signal reconstruction in processing pipelines.
- Conduct time-frequency analysis for research in signal processing or engineering.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
PyWavelets provides discrete, continuous, and stationary wavelet transforms in 1D, 2D, and nD, along with wavelet packet decomposition and over 100 built-in wavelet filters for time-frequency analysis.
Yes. PyWavelets is a mature, actively maintained library with no known vulnerabilities, permissive dual licensing (MIT and BSD-3-Clause), and stable precompiled wheels for modern Python. Install friction is moderate but manageable. It is the standard choice for wavelet transforms in Python and worth installing if your work involves time-frequency analysis, signal decomposition, or wavelet-based feature extraction.
Install
pywavelets on PyPI
pip
pip install pywaveletsuv
uv add pywaveletspoetry
poetry add pywaveletsInstalling PyWavelets
Before you install
Medium install friction due to compiled C extensions, but prebuilt wheels are available for Python 3.11, 3.12, and 3.13 on Linux, macOS, and Windows. Active maintenance with last commit on 2026-08-13; library has been in development since 2006 and is marked Production/Stable.
License in practice
Dual-licensed under MIT and BSD-3-Clause (permissive). Both are permissive open-source licenses with minimal restrictions on use, modification, and distribution.
Quickstart
pip install PyWavelets
import numpy
data = numpy.array([1, 2, 3])
# PyWavelets functions operate on numpy arrays
Requires numpy >= 1.23.0; C compiler needed only if building from source.
Verify before relying
- Specific API functions and their signatures for performing discrete wavelet transforms.
- Performance characteristics and typical use-case scale for common transforms.
- Exact compatibility claims with Matlab Wavelet Toolbox across different wavelet families.
Package facts
| License | MIT AND BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — numpy |
| Maintenance | actively maintained — 375 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 15,254,016/month — #1,191 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pywavelets-1.9.0-cp311-cp311-macosx_10_9_x86_64.whl; pywavelets-1.9.0-cp311-cp311-macosx_11_0_arm64.whl; pywavelets-1.9.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; pywavelets-1.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; pywavelets-1.9.0-cp311-cp311-musllinux_1_2_aarch64.whl; pywavelets-1.9.0-cp311-cp311-musllinux_1_2_x86_64.whl; pywavelets-1.9.0-cp311-cp311-win32.whl; pywavelets-1.9.0-cp311-cp311-win_amd64.whl; pywavelets-1.9.0-cp312-cp312-macosx_10_13_x86_64.whl; pywavelets-1.9.0-cp312-cp312-macosx_11_0_arm64.whl; pywavelets-1.9.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; pywavelets-1.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; pywavelets-1.9.0-cp312-cp312-musllinux_1_2_aarch64.whl; pywavelets-1.9.0-cp312-cp312-musllinux_1_2_x86_64.whl; pywavelets-1.9.0-cp312-cp312-win32.whl; pywavelets-1.9.0-cp312-cp312-win_amd64.whl; pywavelets-1.9.0-cp313-cp313-macosx_10_13_x86_64.whl; pywavelets-1.9.0-cp313-cp313-macosx_11_0_arm64.whl; pywavelets-1.9.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; pywavelets-1.9.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pytorch-waveletsProvides 2D discrete wavelet and dual-tree…
unclear · top 15,000 on PyPI
hankelComputes Hankel transforms and integrals using…
permissive · top 15,000 on PyPI
noisereduceReduces noise in audio and time-domain signals…
permissive · top 15,000 on PyPI
GammatoneApplies banks of gammatone filters to audio…
unclear · top 15,000 on PyPI
pytsPyts provides time series classification…
permissive · top 15,000 on PyPI
juliusJulius provides differentiable, GPU-accelerated…
permissive · top 5,000 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
jaraco.classesProvides utility functions for working with…
permissive · top 1,000 on PyPI