Skip to main content

basicdsplibrary

A lightweight Python package providing fundamental Digital Signal Processing (DSP) algorithms such as DFT, IDFT, DFS, DTFT, Linear convolution, Circular convolution, FIR low-pass/high-pass filter design, DCT,DWT, Overlap save/add method, Radix-2 DIT/DIF-FFT algorithm and more.
Ideal for students, researchers, and developers working with signal processing.


🚀 Installation

Install directly from PyPI:

pip install basicdsplibrary

## 📦 Available Functions

| Function       | Description |
|----------------|-------------|
| `dft`          | Computes the Discrete Fourier Transform (DFT). |
| `idft`         | Computes the Inverse Discrete Fourier Transform (IDFT). |
| `dfs`          | Computes the Discrete Fourier Series. |
| `idfs`         | Computes the Discrete Fourier Series. |
| `dtft`         | Computes the Discrete-Time Fourier Transform (DTFT). |
| `lin_conv`     | Performs linear convolution of two signals. |
| `circ_conv`    | Performs circular convolution of two signals. |
| `dct`          | Computes the Discrete Cosine Transform. |
| `dwt `         | Computes 2nd level Discrete Wavelet Transform using haar wavelet. |
| `upsample`     | Upsamples a signal by an integer factor. |
| `downsample`   | Downsamples a signal by an integer factor. |
|`radix2_dit_fft`| Determines DFT using Radix-2 DIT FFT method |
|`radix2_dif_fft`| Determines DFT using Radix-2 DIF FFT method |
| `overlap_save` | Determines Linear convolution using overlap save method |
| `overlap_add`  | Determines Linear convolution using overlap add method |
| `fir_lp`       | Designs a low-pass FIR filter using windowing. |
| `fir_hp`       | Designs a high-pass FIR filter. |
| `fir_bp`       | Designs a band-pass FIR filter. |
| `fir_bs`       | Designs a band-stop FIR filter. |
| `moving_avg`   | Computes a moving-average (MA) smoothing filter. |
| `corr`         | Computes correlation between two signals. |
| `auto_corr`    | Computes autocorrelation of a signal. |
| `energy`       | Computes signal energy. |
| `power`        | Computes average power of a signal. |

## 🧠 Usage Examples

Below are some basic examples demonstrating how to use the functions in the `basicdspalgorithms` package.

---

### ✔️ Import Functions

```python
from basicdsplibrary import (
    dft, idft, dfs, dtft,
    lin_conv, circ_conv,
    upsample, downsample,
    fir_lp, fir_hp, fir_bp,
    moving_avg, energy, power
)

### 📌 Example-1

x = [1, 2, 3, 4]
X = dft(x)
print("DFT:", X)

### 📌 Example-2

x = [1, 2, 3, 4]
X = lin_conv(x)
print("Linear Convolution:", X)

### 📌 Example-3

x = [1, 2, 3, 4]
X = circ_conv(x)
print("Circular Convolution:", X)

### 📌 Example-4

h = fir_lp(11,0.785)
print(f"FIR LP filter using Hamming window(order={11},wc={pi/4}) :")

Change Log
===================

0.012 (16/11/2025)
Second Release

===================

Metadata

Release files for basicdsplibrary 0.0.12

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

Built distribution (wheel)

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

Release files / basicdsplibrary-0.0.12-py3-none-any.whl

Download URL basicdsplibrary-0.0.12-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99233a84507b48a39d20b6cf28c050b707289901fa98a6490253c893d02b8430
BLAKE2b-256 checksum
How to use checksums
dd8c9efedbf3bc3ce2435d7dc00f26e01b0db9920706c48c1ba3c42cd0075ebb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Security for basicdsplibrary 0.0.12

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.12 This release

1 release file No provenance

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