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.1

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.1
File Size Uploaded
npdsp-0.0.1.tar.gz 10.7 kB Details

Built distribution (wheel)

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

Total release size: 26.1 kB

Release files / npdsp-0.0.1.tar.gz

Download URL npdsp-0.0.1.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
40e4dd90df70dd79cea64f731aba34acb2780b0644c326d43695d948ff500c5d
BLAKE2b-256 checksum
How to use checksums
881fa842276ef977eaae507ba4fe2dc638e8889c58bae635ea908d182b14ebf5
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 Jul 31, 2026.

Transparency log

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

Download URL npdsp-0.0.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fdcf1e0be004b30768cbc5aae6d2f0b855a29d0c6c508f6b1b8c1847acf7ccd
BLAKE2b-256 checksum
How to use checksums
c946969bb45cb5eba02c7fecd9124c38d1f543d90a5775938d5095cf0292cfd2
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 Jul 31, 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

0.0.2

2 release files

This release

0.0.1 This release

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