Skip to main content

RPPS

RF Parameter Processor Suite

RPPS is a generic signal processor/generator library.

Usage

Everything is driven by operators: * encodes / modulates / scrambles, / undoes it, + runs a DSP stage. The data carries its sample rate and the state of every stage, so there is nothing to set up or reset.

Bits to symbols and back (file)

import rpps as rp

mod = rp.symbol.load("QPSK")           # first bit map; load("QPSK", "R090 inverted") for a rotated / spectrally inverted one. Or rp.symbol.QAM(16), rp.symbol.PSK(8), rp.symbol.APSK(32), or any point set from a config file
ecc = rp.code.Hamming(7, 4)       # or rp.code.load("block", "hamming/7_4")
scr = rp.code.scram.load("v35")

msg = rp.Data(b"Hello World!")
syms = msg * scr * ecc * mod        # Scramble, encode, modulate
out = syms / mod / ecc / scr        # Demodulate, decode, descramble
assert out.as_bytes().hex == msg.as_bytes().hex

# Pipes multiplied together make a reusable link, decoded in the opposite order
link = scr * ecc * mod
syms = msg * link
out = syms / link

Receiving a signal

# docs: skip
src = rp.source.File("ci32t", "capture.cs16", Fs=100e6, cf=1.0e9)       # or rp.source.Device("hackrf", cf=..., Fs=...)
rx = (rp.signal.filters.ShiftFreq(22.3e6)  + rp.signal.filters.low_pass(401, 3e6, 100e6) + rp.signal.sample.down.Decimate(8)
      + rp.sync.Acquire() + rp.sync.time.Mat() + rp.sync.phase.FFCarrier())     # stages added together make a pipeline

for out in src(16384) + rx:          # blocks flow through, state carried from one to the next
    print(out.Fs, out.sps, out.det)  # rates follow the stages; Acquire's detection is on the data

src(16384) + rx >> rp.source.Sink("cf64", "symbols.iq")       # or straight into a file

A stage can also be applied by hand to a block: blk + rp.signal.filters.ShiftFreq(1e3). rp.signal.channel has impairments to test against (AWGN, CFO, Fading, Multipath, ClockDrift...).

Real time

# docs: skip
blocks = rp.source.Device("hackrf", cf=915e6, Fs=10e6)(65536).threaded(drop=True) # the radio is read in a thread of its own
for out in blocks.pipelined(rx):     # and every stage of rx runs in its own thread
    ...
print(out.stream.load())             # time each stage takes, as a fraction of real time (over 1.0: too slow)

The per-sample loops (AGC, Costas, timing recovery, equalizers, IIR, demodulators) and the decoders (Viterbi, trellis, BCJR / turbo, LDPC, Reed-Solomon, BCH) run in C++ (rpps._native, built with the package) and release the GIL, so threads run them in parallel; batches of codewords are spread over the cores (RPPS_THREADS sets how many). Without a compiler RPPS uses its Python loops (the reference: RPPS_NO_NATIVE=1 forces them). Compare with python tests/bench_stages.py.

Real-time spectrum

RT

Install

  1. Run python3 -m pip install rpps (rpps[viz] adds matplotlib for rp.viz). From a checkout, python builder.py -c (or python setup.py build_ext -i) builds the C++ kernels in place; it needs pybind11 and a C++17 compiler
  2. In your project, import rpps as rp

Definitions (codes, scramblers, modulations) ship with the package. Add your own without touching it: rp.add_config_path("my_config") (laid out like src/rpps/config) or set RPPS_CONFIG. Logging is off until you ask: rp.logger.enable("DEBUG").

Roadmap

  • Source
    • File
    • (Linux only) tun/tap
    • Socket
  • Filters
    • Pulse Shaping
    • Window functions
  • Sample
  • Sync
    • Frequency
    • Phase
    • Time
  • Symbol
    • PSK
    • QAM
    • APSK
    • ASK
    • FSK
  • Code
    • Block
      • Repetition
      • Hamming (decoded on its syndrome trellis)
      • BCH
      • Reed-Solomon
      • LDPC (min-sum, DVB-S2 tables)
      • TPC
    • Convolutional
      • Viterbi (hard and soft)
      • BCJR / trellis (log-MAP, max-log-MAP)
    • Soft decisions (demodulator LLRs into the decoders)
  • Scramblers
    • fibonacci
    • galois
    • V.35
  • Link
    • CRC
    • HDLC
    • PPP
  • Viz
    • Real-Time (STFT)
    • Over-Time

Contributing

See README.dev.md for the design, how the project is organized and implemented, and how to add to it.

  1. git clone https://github.com/Anonoei/RPPS
  2. cd RPPS
  3. git branch -c feature/<your feature>
  4. python3 builder.py -s -c installs rpps editable with its dev dependencies and builds the C++ kernels
  5. run python3 -m pytest (add -m "not slow" to skip the chain tests). Scratch scripts live in tests/dev
  6. Check out the dev branch for latest changes

Metadata

Release files for rpps 0.4.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 rpps 0.4.1
File Size Uploaded Provenance Actions
rpps-0.4.1.tar.gz 354.8 kB With provenance Details for rpps-0.4.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rpps 0.4.1
File Actions
rpps-0.4.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for rpps-0.4.1-cp314-cp314-win_amd64.whl
rpps-0.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for rpps-0.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
rpps-0.4.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for rpps-0.4.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
rpps-0.4.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for rpps-0.4.1-cp313-cp313-win_amd64.whl
rpps-0.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for rpps-0.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
rpps-0.4.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64, Linux glibc 2.24+ ARM64 Details for rpps-0.4.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
rpps-0.4.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for rpps-0.4.1-cp312-cp312-win_amd64.whl
rpps-0.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for rpps-0.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
rpps-0.4.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for rpps-0.4.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Total release size: 6.6 MB

Release files / rpps-0.4.1.tar.gz

Download URL rpps-0.4.1.tar.gz
Size 354.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6397c3b4323beeeb818a38044dedf687ffc922badc73538e08c71e6de86c5ccf
BLAKE2b-256 checksum
How to use checksums
43c4e1766b884f4e9f5d61f2624e55d56da5ef4ec72b1765b41acf846b18b8df
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp314-cp314-win_amd64.whl

Download URL rpps-0.4.1-cp314-cp314-win_amd64.whl
Size 619.9 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
17c9af05701300d3292cc98a0ea5cb63576c7775e9c1c896ba59d771ef1f6e15
BLAKE2b-256 checksum
How to use checksums
e693f14375cb4d80f35b1c7ac8c3fed41f17d79ddc7c74c41ce85eac491b2fdd
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL rpps-0.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 756.8 kB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7ab8b242b41436450dad210be25b1b9df495019aeab30d4a6ebb68fff440851b
BLAKE2b-256 checksum
How to use checksums
ce3fe53ecbae3063e97f8bbf19a63168add59aa62da7c6203ec367fff5c7e7fe
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL rpps-0.4.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 726.2 kB
Tags CPython 3.14 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
64d0717cf3106c60d309b0947f2ebf35189b43a01b2d5ab9d9e261a63bc33214
BLAKE2b-256 checksum
How to use checksums
c17139fff57dc70c72699894dbc5ba01e5efbfc24a85707ca2d172d44b35e05b
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp313-cp313-win_amd64.whl

Download URL rpps-0.4.1-cp313-cp313-win_amd64.whl
Size 613.9 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
9e1619fee14ba09d411695d2362a6677034889803f0d341d7ad02872aa766352
BLAKE2b-256 checksum
How to use checksums
4ea81fcd5196dbd69c87f0f9d070fe41eddae5dffe555c3c5698a5e68d44bfdc
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL rpps-0.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 756.3 kB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2d7d06222485815c7a935391a8ed882f5c2588884ebdf8533b588b49cf48c2ae
BLAKE2b-256 checksum
How to use checksums
eeb42816c4be610c27ff7a7774581eba6225bce436fbab393166cc35bda4b2a0
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL rpps-0.4.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 724.4 kB
Tags CPython 3.13 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
3138e04c8333c76d3ea78c63828bae056f454bb2aaef89cbcc22bbdbd9bbf5e9
BLAKE2b-256 checksum
How to use checksums
53569eba5dda84f1af29ac595b5ce4a623dc96b48d8deb0477d6484ceba76e5c
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp312-cp312-win_amd64.whl

Download URL rpps-0.4.1-cp312-cp312-win_amd64.whl
Size 613.8 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
73f7841fcec6b30b6c72f1a3dc233949370f576ebd16138e57d55923d1c4d9d6
BLAKE2b-256 checksum
How to use checksums
b3b356bb088b45305f005d4aedfa3233be9707e9cc3be2f1d68859bfa2861465
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL rpps-0.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 756.4 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2390869ef5ff951f52c0fb2c87a61971710207c529f50a074154ba030f6aaa46
BLAKE2b-256 checksum
How to use checksums
095aacf4af2b6342198ffa0a558e20f62ea7dd9b52018edc83d0f1ce59fb0b00
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 18, 2026.

Transparency log

Release files / rpps-0.4.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL rpps-0.4.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 724.8 kB
Tags CPython 3.12 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
8647781b1331e87d3e243c0c6b523e50c339c813c455dc7911087ea30666f720
BLAKE2b-256 checksum
How to use checksums
88ba638cf97f70edd1231e763c7424a469a73fb6f0450ba217ac6dc223bb292a
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 18, 2026.

Transparency log

Security for rpps 0.4.1

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

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for rpps-0.4.1.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 18, 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