Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

commkit

Latest version: v3.10.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: lokgar
0 Stars
0 Forks
21 Versions
2.1K Downloads
Python Repo language

Scan summary

commkit was last scanned on 23 Nov 2026 at version 3.10.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 21 versions; the latest 3 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 3.10.1.
  • Downloads: 2,054 downloads.

Versions

21 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.10.1 LATEST 23 Nov 2026 No rules fired
3.10.0 20 Nov 2026 No rules fired
3.9.0 19 Nov 2026 No rules fired
3.8.0 12 Nov 2026 Not shown
3.7.1 10 Nov 2026 Not shown

No rules fired in 3.10.1

Findings

Findings for v3.10.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.10.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

The model

Data is a NumPy or CuPy array, or a Signal that wraps the samples together with what is known about them. Algorithms are plain functions that take the data and return a new Signal or array, or a typed result such as EqualizerResult or an *Estimate. Plotting functions draw those results or call the public compute functions needed to produce them.

  • Things that describe a modulation, a pulse or a sub-algorithm are small frozen objects written in the call: lms(rx, cpr=BPS(test_phases=64)). The same object works standalone: correct_carrier_phase(y, BPS()).
  • A Signal carries properties and ground truth. Its properties are sampling_rate, symbol_rate, center_frequency and domain; the carrier of an optical Signal gives its center_wavelength_nm, which dispersion, fiber propagation and OSNR noise read. The description is constellation and pulse. The ground truth is reference: the transmitted symbols, the bits on the air and the source bits before coding or distribution matching (the same array when there is neither). Functions take properties from the Signal and raise on a conflicting argument. Defaults such as the decision constellation come from the Signal too, and an explicit argument wins.
  • Results with several values are frozen dataclasses with named fields. Metrics return host floats: one per channel for (C, N) input.
  • The device follows the data. Processing functions have no backend= or device= argument. Only factories, which have no input data to follow, take device=: generate(..., device="gpu"). Move existing data with sig.to("gpu").
  • Plots draw results. plot_* functions take a Signal, an array or a result object; numerical code never imports plotting.
  • There is no pipeline object, receiver class or configuration file: the orchestration stays in your script.

Quickstart

import commkit as ck
from commkit import RRC, Constellation
from commkit.recovery import BPS, CycleSlip

tx = ck.generate(Constellation.qam(16), num_symbols=2**16, symbol_rate=32e9,
                 sps=2, pulse=RRC(rolloff=0.1), rng=1, device="gpu")
rx = ck.impairments.apply_phase_noise(tx, linewidth=100e3, rng=2)
rx = ck.impairments.apply_awgn(rx, esn0_db=18, rng=3)   # on the GPU, like tx
rx = ck.filtering.matched_filter(rx)                     # pulse from rx

cpr = BPS(test_phases=64, cycle_slip=CycleSlip(history=100))
res = ck.equalization.lms(
    rx, num_taps=21, step_size=1e-3,
    training_symbols=rx.reference.symbols[..., :2000], cpr=cpr,
)
y = res.signal                    # 1-SPS Signal, reference aligned
print(f"EVM {ck.metrics.evm(y, num_skip_symbols=2000):.1f} %, "
      f"BER {ck.metrics.ber(y, num_skip_symbols=2000):.1e}")
# EVM 12.7 %, BER 2.0e-04 (on the CPU; the GPU draws other noise)

# The next record continues from the converged taps and CPR state.
res2 = ck.equalization.lms(rx, num_taps=21, step_size=1e-3, cpr=cpr, state=res.state)

Without CuPy, pass device="cpu" (the default): the same code runs on the CPU.

Comparing filter responses

Calculate a response on the coefficients' device, or overlay selected panels of several filters:

short = ck.filtering.fir_taps(sampling_rate=1e6, num_taps=21, cutoff=100e3)
long = ck.filtering.fir_taps(sampling_rate=1e6, num_taps=101, cutoff=100e3)
response = ck.filtering.filter_response(long, sampling_rate=1e6)
print(response.frequencies, response.response, response.group_delay)

ck.plotting.apply_default_theme()  # dark=False for dark text on white
_, ax = ck.plotting.plot_filter_response(
    short, sampling_rate=1e6, quantity="magnitude", label="21 taps",
    relative=True, annotations=True,
)
ck.plotting.plot_filter_response(
    long, sampling_rate=1e6, quantity="magnitude", ax=ax,
    label="101 taps", legend=True, relative=True, annotations=True, show=True,
)

relative=True draws each magnitude relative to its peak, 0 dB, so taps of any scaling compare, and annotations=True adds a dashed line at -3 dB. An FIR filter is drawn as fir_filter applies it, aligned on its centre tap; causal=True shows the causal convolution's delay. plot_psd and plot_spectrogram take relative=True too, the spectrogram also dynamic_range_db=. See notebook 03 for filter and smoothing comparisons and notebook 04 for pulses on symbol-rate axes (sps=). The multi-panel equalizer, timing, recovery and coding diagnostics take quantity= in the same way: draw a second result on the returned axis with its own label=, and annotations=False to leave out repeated fits and guides.

CPU and GPU

CommKit never picks a device for you: data stays where you put it, and each function runs on the device of its input. A few habits get the speed out of a GPU:

  • Put data on the GPU once, at the source. Build it there with generate(..., device="gpu"), frame.to_signal(..., device="gpu") or load_npz(path, device="gpu"); move a capture with sig.to("gpu"). Do not move data back and forth between stages. Building on the GPU is faster than generate(...).to("gpu"): about 26 ms instead of 370 ms for 4M symbols, because mapping and pulse shaping run there.

  • You do not need to move results back. Metrics (evm, ber, ...) and analysis summaries return host floats, and plots reduce on the device and transfer only what they draw.

  • Know what runs where.

    Work GPU input
    Generation, filters, resampling, spectra, impairments, BPS, LLRs, metrics, analysis runs on the GPU
    Frequency-domain equalizers block_lms, block_cma, block_rde runs on the GPU (CUDA graphs)
    Sequential equalizers lms, rls, cma, rde; PLL, Tikhonov, cycle-slip correction runs on the CPU (Numba): one copy to the host and back, no speedup

    A sample-by-sample recursion has no parallel work per step. For long records on the GPU, prefer the block equalizers with block_size=1024 or more. Each block costs a fixed overhead: at 256 the GPU is about 2x faster than the CPU without carrier recovery and 5x with BPS, at 2048 about 4x and 13x. A larger block also lowers the stable step_size.

  • Short records do not pay off. Launch overhead dominates below roughly 10⁴-10⁵ samples, where the CPU is as fast.

  • Batch channels and records. Pass (C, N) arrays rather than looping over channels in Python: one call does the work of C.

  • Keep scalars on the device inside loops. float(x), x.item() and if x > 0: on a CuPy array wait for the GPU and copy. Collect values in an array and transfer once.

  • The first call compiles. Numba and CUDA kernels compile on first use and are cached on disk. Warm up once before timing anything.

  • Seeds and devices. The same rng gives the same bits and symbols on both devices. Channel noise (AWGN, phase noise) is drawn on the device, so its realization differs between CPU and GPU while its statistics match. For the exact same phase-noise trajectory on both, draw it on the CPU with generate_phase_noise(...) and move it.


Modules

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases commkit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229