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.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 rpps 0.4.0
File Size Uploaded Provenance Actions
rpps-0.4.0.tar.gz 320.9 kB With provenance Details for rpps-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rpps 0.4.0
File Actions
rpps-0.4.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for rpps-0.4.0-cp314-cp314-win_amd64.whl
rpps-0.4.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for rpps-0.4.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
rpps-0.4.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64, Linux glibc 2.24+ ARM64 Details for rpps-0.4.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
rpps-0.4.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for rpps-0.4.0-cp313-cp313-win_amd64.whl
rpps-0.4.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for rpps-0.4.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
rpps-0.4.0-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.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
rpps-0.4.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for rpps-0.4.0-cp312-cp312-win_amd64.whl
rpps-0.4.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for rpps-0.4.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
rpps-0.4.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64, Linux glibc 2.24+ ARM64 Details for rpps-0.4.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Total release size: 6.3 MB

Release files / rpps-0.4.0.tar.gz

Download URL rpps-0.4.0.tar.gz
Size 320.9 kB
Tags Source
SHA-256 checksum
How to use checksums
afdd0abd2c2e3e58e0c72c7e053cf400944ba5aa16c4d6afae2e714bab38367e
BLAKE2b-256 checksum
How to use checksums
735afc004a88b1261560d79debfc8005f4b4cf8a3a9e795168be245b4f0f2927
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp314-cp314-win_amd64.whl
Size 581.8 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
3581ae1db8c7b24101d5486f57770779b750a87ab87e69cbb2435ae00de6ba38
BLAKE2b-256 checksum
How to use checksums
a414994bf445c246f46c96151263d62ce42e3b90465ca78b75e5c041dfff2388
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 719.2 kB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ef99ac4492ab1eae72761e3fbce5a92a611a0955938b99239eb7f89c217a7908
BLAKE2b-256 checksum
How to use checksums
74610ee998dd0440ee6a34c25c39bc3b2d4f7af0987982fce66f6649ed316b9b
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 688.6 kB
Tags CPython 3.14 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
57ebe9439fa591930435491c7e12f73e3899dc1e88bb7dc2aede9bed5d28cab7
BLAKE2b-256 checksum
How to use checksums
12ea259f307aa15bb0091d82e273a889ded8819e9c014731bfc76c8e5076aecc
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp313-cp313-win_amd64.whl
Size 576.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
8fe72115d66d3449bc19536900752daf70810becf83b8e8568a756f81e1ebc59
BLAKE2b-256 checksum
How to use checksums
e446e1fcbfdd27473bd39cbf7573ed4dd7eba27b2d6b7ef75bd05d35853cd6aa
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 718.7 kB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2450d1d8e2c1c979ff13d9398aa546a838972c0b3dfdcb963049a111452769c3
BLAKE2b-256 checksum
How to use checksums
727321f4a64901d5346a7338b77e2891b81edc86e4b35eaf89a989ad62a0e53e
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 686.7 kB
Tags CPython 3.13 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
afaf3a1886aa2c4cde408dfa481905d3e0ef7cd6c5efd3c706b388447b07c82c
BLAKE2b-256 checksum
How to use checksums
f273e29a67dc569bbc4b442d2ea761888c890ebf11d812c3b01cfdace498c53e
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp312-cp312-win_amd64.whl
Size 576.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
106883af77d7c6e781f6883e59c497a1de0a959bab2b97a5ac38d9f91c7aaaac
BLAKE2b-256 checksum
How to use checksums
fa25a7d940ecaa8c5aa0cbe3925f532d394dfc17d6f083aa2a795fdf11214f68
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 718.8 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ca107e67625cd4da4f72b7b5d2fd27ea60e5ff45b220236e00d3f50078e8c2a5
BLAKE2b-256 checksum
How to use checksums
38b43f967fba26b5afd632e3d2f9eeda81a55387bfd9b639883c42370f9e356b
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 13, 2026.

Transparency log

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

Download URL rpps-0.4.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 687.1 kB
Tags CPython 3.12 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
441252db0d303cea840312d4f6806a87f82e018965fe55c8647de38801129d00
BLAKE2b-256 checksum
How to use checksums
1ca865d15c9865ca4d31bcf4d04f4d72ef5cb11c21f7929a75539f811f5cf5eb
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 13, 2026.

Transparency log

Security for rpps 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

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

Select from 10 files

Attestation for rpps-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 13, 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