Metadata-Version: 2.1
Name: doppler-dsp
Version: 0.14.1
Summary: Dead-simple, ultra-fast digital signal processing.
License: MIT
Requires-Python: >=3.9
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Keywords: dsp,sdr,fft,fir,nco,signal-processing,zmq,iq
Project-URL: Homepage, https://doppler-dsp.github.io/doppler/
Project-URL: Repository, https://github.com/doppler-dsp/doppler
Project-URL: Documentation, https://doppler-dsp.github.io/doppler/
Project-URL: Bug Tracker, https://github.com/doppler-dsp/doppler/issues
Author: doppler contributors
Requires-Dist: numpy; python_version >= '3.11'
Requires-Dist: numpy<2.3; python_version == '3.10'
Requires-Dist: numpy<2.1; python_version == '3.9'
Provides-Extra: cli
Requires-Dist: pydantic>=2.0 ; extra == "cli"
Requires-Dist: pyyaml>=6.0 ; extra == "cli"
Requires-Dist: rich>=13.0 ; extra == "cli"
Provides-Extra: specan
Requires-Dist: rich>=13.0 ; extra == "specan"
Provides-Extra: specan-web
Requires-Dist: fastapi>=0.100 ; extra == "specan-web"
Requires-Dist: uvicorn[standard]>=0.23 ; extra == "specan-web"
Requires-Dist: websockets>=12.0 ; extra == "specan-web"
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/doppler-dsp/doppler/main/docs/assets/wordmark.png?v=3" alt="doppler — signal, shifted" width="560">
</p>

<p align="center"><strong>Dead-simple, ultra-fast digital signal processing.</strong></p>

<p align="center">
  <a href="https://github.com/doppler-dsp/doppler/actions/workflows/ci.yml"><img src="https://github.com/doppler-dsp/doppler/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
  <a href="https://doppler-dsp.github.io/doppler/"><img src="https://img.shields.io/badge/docs-doppler--dsp.github.io-blue" alt="Docs"></a>
  <a href="https://pypi.org/project/doppler-dsp/"><img src="https://img.shields.io/pypi/v/doppler-dsp" alt="PyPI"></a>
  <a href="https://pypi.org/project/doppler-dsp/"><img src="https://img.shields.io/badge/python-3.9%20%E2%80%93%203.14-blue" alt="Python"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="License: MIT"></a>
</p>

<p align="center">
  <a href="https://en.wikipedia.org/wiki/C99"><img src="https://img.shields.io/badge/C-C99-blue" alt="C99"></a>
  <a href="ffi/rust"><img src="https://img.shields.io/badge/Rust-FFI-CE4A00?logo=rust&logoColor=white" alt="Rust"></a>
  <a href="https://github.com/astral-sh/uv"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json" alt="uv"></a>
  <a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff"></a>
</p>

doppler is a C99 DSP library: NCO, FIR filter, FFT, polyphase resampler,
DDC, and ZMQ-based signal streaming. Python and Rust wrap the same C core —
no second implementation, no divergence, full SIMD throughput from any
language.

## Why it's built this way

Every algorithm lives in C exactly once. The Python layer is type conversion
and lifetime bridging — a few hundred lines of glue, not a reimplementation.
Bugs get fixed once, benchmarks reflect real hardware, and a C transmitter
talks to a Python subscriber without surprises.

## Performance

On a Ryzen 7 AI 350 (`-O2`): NCO raw accumulator ~15 GSa/s, LO CF32
~1.8 GSa/s, FIR CF32 ~900 MSa/s, FFT CF32 (N=4096) ~180 MSa/s,
polyphase resampler (2× decim) ~70 MSa/s. Run `make bench` to measure
on your hardware.

## Quick start

**Python**

```python
from doppler.spectral import FFT
import numpy as np

x = np.random.randn(1024).astype(np.complex64)
X = FFT(1024).execute_cf32(x)
```

**C**

```c
#include <fft/fft_core.h>

fft_state_t *fft = fft_create(1024, -1, 1);  /* n, sign, nthreads */
fft_execute_cf32(fft, in, 1024, out);        /* in,out: float complex[1024] */
fft_destroy(fft);
```

## Build

```bash
jbx install-deps        # install system deps (detects OS/distro)
make                    # C library
make pyext              # + Python bindings
make test               # CTest suite
make bench              # benchmarks
```

## Docs

Full docs at **[doppler-dsp.github.io/doppler](https://doppler-dsp.github.io/doppler/)** —
Quick Start, Architecture, API Reference, Examples.

## Licensing

MIT. The core C library is pure C99 and links only `-lm`; its FFT uses the
vendored pocketfft (BSD-3-Clause). The optional ZMQ stream component
(`libdoppler_stream`) vendors libzmq (MPL-2.0).
