Skip to content

API reference

Every public module, rendered from its docstrings. How to use them is in the guides; the device API every driver implements is pysdrlib.base.device.

Module What it is
pysdrlib pysdrlib: Python wrappers for hardware SDRs. Every radio has the same API, and samples are always complex64.
pysdrlib.devices Drivers, and the devices attached to this machine
pysdrlib.targets Finding radios, here and on servers, and naming each with one string pysdrlib.open takes
pysdrlib.base.device The device-agnostic interface every SDR presents
pysdrlib.base.caps What a device can do: tuning and rate ranges, gain stages, filters, antennas, settings
pysdrlib.base.antennas Standards of antenna, by name: the band each works at and the band it is best at
pysdrlib.base.stream What came with a block of samples (Device.read(..., meta=True)), the stream object (Device.stream), and how the
pysdrlib.base.formats Sample file formats: what Formats names mean and how they are laid out in memory (and in C)
pysdrlib.base.convert Raw device data <-> pysdrlib samples (complex64), for any ADC layout.
pysdrlib.err The exceptions pysdrlib raises, the same for every driver.
pysdrlib.warn The warnings pysdrlib issues, all of the category warn._Warning (a UserWarning), so they can be filtered as one.
pysdrlib.file Sample files: read them like a device, write them from one, play a recording back as a radio.
pysdrlib.remote Radios hosted on one machine and used from another, over ZeroMQ (pip install pysdrlib[remote]).
pysdrlib.sim A simulated radio that needs no hardware: pysdrlib.open("sim"), listed by pysdrlib.find(virtual=True).
pysdrlib.air The air: a medium that devices transmit into and receive from, in one process or across processes on a machine
pysdrlib.shm Streams in shared memory: one process publishes samples under a name, any other on the machine receives them like a radio
pysdrlib.base.native NativeDevice: the base of every driver over a compiled extension.
pysdrlib.testing Check that a driver is put together the way pysdrlib expects, without hardware or its vendor library
pysdrlib.contributing Adding a device to pysdrlib
pysdrlib.scaffold Generate the skeleton of a new driver
pysdrlib.rtl_sdr RTL-SDR dongles through librtlsdr (receive only).
pysdrlib.hackrf HackRF One through libhackrf: receive and transmit, half-duplex.
pysdrlib.uhd Ettus USRPs through UHD's C API: the B2xx family (B200/B210, on USB) and, experimentally, the X310 and X410 (on a network).
pysdrlib.bladerf Nuand bladeRF 2.0 micro (xA4, xA9) through libbladeRF. The bladeRF 1.0 (x40, x115) is not supported yet: opening one
pysdrlib.extio RX-888 (and the other SDDC radios) through ExtIO_sddc's core (receive only).
pysdrlib.tcpiq Raw interleaved I/Q over TCP, at either end of the connection. pysdrlib can be the client of a server that sends