Skip to main content

npDSP

A small, composable digital signal processing library built on NumPy.

npDSP provides simple DSP blocks that can be combined into pipelines using Python's >> operator.

Installation

Install from PyPI:

pip install npDSP

Or with uv:

uv add npDSP

Quick start

import numpy as np
import npdsp

pipeline = npdsp.Add(1) >> npdsp.Multiply(2)

x = np.array([1, 2, 3])

y = pipeline(x)

print(y)
# [ 4  6  8]

Blocks can also be given names and accessed through a pipeline:

pipeline = npdsp.Add(1, name="offset") >> npdsp.Multiply(2, name="gain")

print(pipeline["gain"])

Features

  • NumPy-based signal processing
  • Composable processing blocks
  • Pipeline construction with >>
  • Stateful processing blocks such as Delay
  • Mathematical operations
  • Conversion and utility blocks
  • Type hints
  • Block profiling
  • Sphinx API documentation

Documentation

Documentation is available on Read the Docs.

The documentation includes:

  • Getting Started
  • Concepts
  • API Reference
  • Block reference
  • Core API reference
  • Examples

Development

npDSP uses uv for development and dependency management.

Clone the repository:

git clone https://github.com/mrhiemstra/npDSP.git
cd npDSP

Install the development dependencies:

uv sync

Run the test suite:

uv run pytest

Build the documentation:

uv run sphinx-build -b html docs/source docs/build/html

Build the package:

uv build

Requirements

  • Python 3.10+
  • NumPy 2.2.6+
  • si-prefix 1.3.3+
  • typing-extensions 4.16.0+

License

npDSP is released under the MIT License.

Release files for npdsp 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for npdsp 0.0.2
File Size Uploaded
npdsp-0.0.2.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for npdsp 0.0.2
File Interpreter ABI Platform
npdsp-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / npdsp-0.0.2.tar.gz

Download URL npdsp-0.0.2.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c12f0c6fce0ec08f44c27e2cbd31689f5a39918b6835f3ad510de2ef2e0bf3c7
BLAKE2b-256 checksum
How to use checksums
1130eb2631f28c836b32f0a51676f6eea739b247f8370b22905c40e067046714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release files / npdsp-0.0.2-py3-none-any.whl

Download URL npdsp-0.0.2-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c729d9f66973fa6a25e5a125e05ce793e7cfd0252d5414ce0972aeec72ec1dc
BLAKE2b-256 checksum
How to use checksums
a25fe29cd972be14f97edee91f7abacfef22978605c566626174e9c4c1b55e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page