Skip to main content

slop Kanna doing Wi-Fi plumbing

csiphon

csiphon is a Python library for preprocessing WiFi Channel State Information. You plug DSP steps together into a pipeline, csiphon checks that the pieces fit before you run anything, and the finished pipeline handles recordings and live streams alike. Every signal carries its axes by name, so you never have to wonder which one was the subcarrier again.

from csiphon import AcquisitionProfile, Pipeline
from csiphon.steps import GainNormalize, Magnitude, WindowedVariance

# Describe the capture setup
profile = AcquisitionProfile(
    n_rx_antennas=3,
    subcarrier_indices=tuple(range(52)),
    sampling_rate_hz=1000.0,
)

# Define the pipeline steps
siphon = (
    Pipeline()
    .then(Magnitude())
    .then(GainNormalize())
    .then(WindowedVariance(win_size_s=0.1))
    .compile(profile)
)

# Generate a summary of the pipeline
print(siphon.describe())

# Push some data through it to run
features = siphon.pour(profile.raw_signal(csi, timestamps)).single()

A compiled pipeline is a Siphon. You pour() a recording through it or stream() live data, and collect results from named Outlets, which you can tap anywhere along the pipeline.

What it does

  • Catches structural mistakes before execution. Compilation checks axes, shapes, value semantics, and physical representations before data starts flowing.
  • Runs the same recipe in batch or live. Every step states whether its streaming computation matches batch, differs intentionally, or requires the complete recording.
  • Supports branching pipelines. Split into parallel feature paths, merge them again, and expose named intermediate outlets.
  • Merges receivers. Feed several receivers through their own inlets and line them up on timestamps or on packet sequence numbers, which survive clock drift.
  • Keeps real timestamps. Non-uniform CSI sampling is expected; resampling is explicit rather than silently assumed. You can also drop packets on purpose, with independent or bursty loss, to test how a pipeline copes.
  • Describes itself. describe() draws a compiled siphon as a data-flow graph in the terminal. Steps and siphons expose their contracts, layouts, parameters, and streaming behavior, and can save that information alongside results for reproducibility.
  • Measures itself. siphon.measure(signal) pours once and reports each step's time and output shape (memory on request), per step or for a named group of consecutive steps.

Ready-made steps cover the usual CSI preprocessing stuff, from calibration and filtering to Doppler, temporal features, dimensionality reduction and resampling. See the steps README for the full list. Custom steps use the same pipeline contracts.

Install

pip install csiphon

The core only depends on NumPy. A few steps (filters, STFT, multitaper, cubic-spline resampling) need the [filters] extra (SciPy), and the synchrosqueezed transform needs [sst]. Install everything with:

pip install "csiphon[all]"

Runnable recipes live in examples/.

Metadata

Release files for csiphon 0.4.0

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

Source distribution (sdist)

Source distribution for csiphon 0.4.0
File Size Uploaded Provenance Actions
csiphon-0.4.0.tar.gz 184.5 kB With provenance Details for csiphon-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 357.6 kB

Release files / csiphon-0.4.0.tar.gz

Download URL csiphon-0.4.0.tar.gz
Size 184.5 kB
Tags Source
SHA-256 checksum
How to use checksums
209d2ddf21b660c0432b75410221e9c391cb69a0558b42777530a8b4d5b1f7de
BLAKE2b-256 checksum
How to use checksums
a12de9630bd5bb6a68baa1b74e59fd379e5ebe93315c8dca21e31bfbfba76533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / csiphon-0.4.0-py3-none-any.whl

Download URL csiphon-0.4.0-py3-none-any.whl
Size 173.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de95d10b02398fa6b5e4be6cb3c95eb2457c632e93fe119d5caa58ef137d3a98
BLAKE2b-256 checksum
How to use checksums
e12e11c768129e3a138f297aec4435fa541a1e6062a09be747a0792a3e274dba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for csiphon 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for csiphon-0.4.0.tar.gz

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 Nov 10, 2026.

Transparency log

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.

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