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 from block to block (see "Things that surprise people" below).
examples/ has a runnable script for each of the things below, and more.
Bits to symbols and back (file)
import rpps as rp
mod = rp.symbol.load("psk/qpsk") # first bit map; load("psk/qpsk", "R090 inverted") for a rotated / spectrally inverted one. Or rp.symbol.generate("16QAM"), rp.symbol.PSK(8), rp.symbol.APSK(32)
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...).
A known signal: profiles
A profile is one JSON file that describes a whole signal, both directions: its steps in receive order (filters, sync, pulse, modulation, codes, framing) and the parameters a header may change along the way.
# docs: skip
p = rp.profile.load("ble/adv", channel=38) # or dvbs2/normal, adsb/mode_s, ax25/afsk1200, ccsds/tm_rs, ieee80211b/long...
for pdu in rp.source.File("cf64", "ch38.cf64", Fs=4e6, cf=2426e6)(65536) + p.rx():
print(pdu.as_bytes().hex, pdu.stream.est["ble_adv"]["last"]) # the payloads of the packets whose CRC checks, and their header fields
wave = p.tx()(rp.Data(bytes(31)), fields={"type": 2}) # the same file transmits: the steps inverted, in reverse
python -m rpps ls profile lists the shipped profiles, python -m rpps steps the step kinds and sync methods a profile
can name, python -m rpps rx ble/adv capture.cf64 --fs 4e6 --param channel=38 receives a file from the shell. A new signal
is a new file in config/profile/<family>/<mode>.json (or in your own config directory, rp.add_config_path), built from
the shipped definitions: constellations, pulses, codes, scramblers, sequences, headers. Writing one needs no code; see
README.dev.md for the format and the step kinds.
Things that surprise people
- What
rp.Datamakes of an array.bytesanduint8arrays are bytes ([0, 1, 1, 0]as uint8 is 32 bits); bits arebool(an int 0/1 array is an error, not bits); a float array is real samples, never LLRs;complex64withsps=1is symbols,complex128stays samples.Fsdefaults to 1.0. - Partial blocks wait. A code or constellation keeps what doesn't fill a block in the data's context until more
comes or the block is flushed: three bits through QPSK give one symbol, or two with
rp.Data(bits, flush=True). - Two kinds of carried state. A
Stage(+) keeps its state in the stream: passstream=prev.streamto go on. APipe(*,/) keeps it in the context:ctx=prev.ctx. A freshrp.Data(chunk)starts both over. Iterating a source does this for you. - Some state lives on the operator.
Feedthrough.encode(array)called directly moves the register (reset()starts it over);control()changes the operator for everyone holding it; decode status (code.errors,crc.ok) is the last call's, on shared cached objects. - Bits to a link layer go through
rp.code.Uncoded().syms / qpsk / crcis an error: channel bits are not data bits until a code (orUncoded) says so. - LLRs are log(P0/P1): positive means 0, a hard decision is
llr < 0. - Bit order is most significant first (bytes, constellation labels, RS symbols, markers), except HDLC bytes on the
wire (least significant first), recurrence
initintegers (lsbunless"order": "msb") and headers that say"lsb". - Shapes and definitions are separate.
rp.symbol.load("psk/qpsk")reads a definition;rp.symbol.generate("16QAM")makes a shape; DVB-S2's 16APSK isrp.symbol.load("apsk/dvbs2_16apsk_3_4"), notgenerate("16APSK").
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.
Install
- Run
python3 -m pip install rpps(rpps[viz]adds matplotlib forrp.viz). From a checkout,python builder.py -c(orpython setup.py build_ext -i) builds the C++ kernels in place; it needs pybind11 and a C++17 compiler - 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, memory, radios (pysdrlib), WAV out
- (Linux only) tun/tap
- Socket (UDP, TCP)
- SigMF (capture metadata in and out), WAV in
-
rpps tx: a profile's transmission to a file - Transmit to a radio
- Filters
- Pulse Shaping (rrc, rc, halfsine, gaussian, rect)
- Window functions
- Designed in a profile (lowpass, bandpass... in Hz), channelizer, resampler, spectral inversion
- Sample
- Sync
- Frequency
- Phase (M-th power, Costas, pilots)
- Time (Oerder & Meyr, Mueller & Muller, Gardner, timing locked loop)
- Frames: preambles among symbols, delimiter words among bits (fixed or header-driven length, polarity), repeating markers
- Equalizers: block least squares, LMS, CMA; OFDM pilots and cyclic prefix
- Per-burst acquisition (packets with no stream to track: BLE, 802.15.4, TDMA)
- OFDM preamble sync (Schmidl-Cox, 802.11 STF/LTF), LTE cell search
- Tone / pilot PLL (FM stereo, ATSC pilot), decision-feedback equalizer
- Symbol and wave
- PSK, QAM, APSK, ASK, any point set from a file; differential coding; spreading (Barker, Gold, 802.15.4)
- FSK, GFSK, MSK, C4FM (frequency pulses), O-QPSK, OFDM, AM, SSB, analog FM
- Coherent CPM (GMSK, SOQPSK by MLSE) in the data path
- VSB / PAM (ATSC 8VSB), chirp spread spectrum, space-time coding
- Code
- Block
- Repetition
- Hamming (decoded on its syndrome trellis)
- BCH
- Reed-Solomon
- LDPC (layered or flooding min-sum; DVB-S2 tables, quasi-cyclic matrices: IEEE 802.11n)
- Golay, cyclic codes by generator polynomial, product codes (DMR BPTC), turbo (LTE), rate matching (LTE)
- Polar (successive cancellation, list, CRC-aided)
- Polar: the 5G NR sequence and rate matching
- Turbo product codes (Chase-Pyndiah)
- Reed-Muller
- Reed-Solomon dual basis (CCSDS)
- LDPC: 5G NR base graphs, CCSDS AR4JA, DVB-S2X
- Turbo: CCSDS (rates 1/2 to 1/6), its permutation a definition
- Turbo: UMTS, DVB-RCS duo-binary
- Convolutional
- Viterbi (hard and soft)
- BCJR / trellis (log-MAP, max-log-MAP)
- Trellis codes on levels (ATSC, P25)
- Trellis-coded modulation on constellation points
- Soft decisions (demodulator LLRs into the decoders)
- Block
- Scramblers
- fibonacci
- galois
- V.35
- Line codes: NRZI, NRZ-M, Manchester, inversion; sync markers (CCSDS ASM, preambles) attached and stripped
- Line codes: Bi-phi-M/S and delay modulation (IRIG-106)
- Line codes: 4B5B, 8b/10b
- Link
- CRC
- HDLC (streaming, any block cut)
- Headers: fields, a CRC over them or a frame check sequence over header and payload, header-driven lengths
- PPP, KISS, AX.25 addresses
- MPEG-TS packets, CCSDS transfer frames and space packets, FX.25
- Profiles
- DVB-S, DVB-S2 (normal and short frames, APSK), IEEE 802.11b, IEEE 802.15.4, Bluetooth LE advertising, Mode S / ADS-B, AX.25 AFSK, CCSDS telemetry (Reed-Solomon)
- CCSDS concatenated (convolutional + Reed-Solomon)
- From definitions already shipped: CCSDS turbo, P25, DMR, LTE, IEEE 802.11a/g, 802.11n, ATSC 8VSB, GPS C/A, DAB
- Viz: time, frequency, eye, constellation, spectrogram, survey
Contributing
See README.dev.md for the design, how the project is organized and implemented, and how to add to it.
git clone https://github.com/Anonoei/RPPScd RPPSgit branch -c feature/<your feature>python3 builder.py -s -cinstalls rpps editable with its dev dependencies and builds the C++ kernels- run
python3 -m pytest(add-m "not slow"to skip the chain tests) - Check out the
devbranch for latest changes
Metadata
Release files for rpps 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rpps-0.5.0.tar.gz | 556.4 kB | With provenance | Details for rpps-0.5.0.tar.gz |
Built distributions (wheels)
Total release size: 9.5 MB
Release files / rpps-0.5.0.tar.gz
| Download URL | rpps-0.5.0.tar.gz |
|---|---|
| Size | 556.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
876f5f1f3964ab2902e257b1c790364d452ad55c8a255e25a6eb32bdc1f896b2
|
|
BLAKE2b-256 checksum How to use checksums |
74d63e9317e14033c2dfb1ee597b2909eefa293ae70f8b117f41506e897f55f4
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp314-cp314-win_amd64.whl
| Download URL | rpps-0.5.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 891.7 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cb8fafef289fc0bbf8ffa8bf6c49fba3a6e526d08e35c621d268e46fd9379e9c
|
|
BLAKE2b-256 checksum How to use checksums |
3b6892138d35ce2c87bc26eba061c900c5a671ef61b3ddd3acdd179eddc2f947
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rpps-0.5.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
dca6245cdc0fdda02662af439e78cbc4cbb1c3e325f060c3f6e0d0cd8bb960ac
|
|
BLAKE2b-256 checksum How to use checksums |
35a9abb56c5279ccee753e4fec9a3537e090e897609a3de4eae5cb484effdcfa
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | rpps-0.5.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.14 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
e6d14f0c622c124d5be9964b5dbb0621dab8d877de9b47e7f2c2069fbedac096
|
|
BLAKE2b-256 checksum How to use checksums |
212b89847cd98b34d0f85999030fcec93091a29929d8201e93e6406e3c238200
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp313-cp313-win_amd64.whl
| Download URL | rpps-0.5.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 883.6 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
253d7c7c305521def038b9f198e4b2508a86bb607dbba0ca75b0b8e1bed6302a
|
|
BLAKE2b-256 checksum How to use checksums |
e7c1bb2e4c4f75c5f28caff520431d082b3aad391381cb5a7a993e9de448ab98
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rpps-0.5.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8b9823e81780017f5d87f6653800e9a3cde2adfc18af6db535c924de470434dc
|
|
BLAKE2b-256 checksum How to use checksums |
e2b127ced17a9c2cf33eda38f996bc2ccb1f4be4683c284dff31998d00fc5bd2
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | rpps-0.5.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.13 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
880c87fe787cc2df609773a25e5cd05b90a4db8aa678bad737c7250e6c2385e6
|
|
BLAKE2b-256 checksum How to use checksums |
6045073ad119e7811d6ada78be727a4b76f437024c6a4e9792e8e05f8caab89e
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp312-cp312-win_amd64.whl
| Download URL | rpps-0.5.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 883.5 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c1d9f9ea87a93f7fb917ce398c0901973873254b6a27b34ed66d4b383f94a8b9
|
|
BLAKE2b-256 checksum How to use checksums |
990e05663e0810a863ac73df9e607dd8d4075f21ea76295d807a0b41c4ce3c0b
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rpps-0.5.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
31ec47b929ad2a61e6451d1269f6ecde39b4042d29c70ef23cf87b1f995125ab
|
|
BLAKE2b-256 checksum How to use checksums |
aba2ea9014d19928239ea352ac049b38e4fbbb0b1365bb7c0579811d929b10cd
|
| 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 21, 2026.
Transparency logRelease files / rpps-0.5.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | rpps-0.5.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
4ecc9790cd99237324e48f722173a06efbffa907416aea591e69f64b401c29b8
|
|
BLAKE2b-256 checksum How to use checksums |
21dcc9b7113b962515b8f2ab22a81d565e17f088e5ea6a8393b28daf4d3fdaa0
|
| 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 21, 2026.
Transparency logSecurity for rpps 0.5.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.
Attestation for rpps-0.5.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 21, 2026.
Transparency logA 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.