Skip to main content

Python bindings for limedriver

Project description

Python Bindings for LimeDriver

This is a Python package for the LimeDriver library.

Dependencies

To build the Python bindings, you will need to have the dependencies for LimeDriver installed, as well as the Python development headers.

Debian/Ubuntu

sudo apt-get install g++ cmake libhdf5-dev liblimesuite-dev python3-dev python3-pip python3-venv

Arch Linux

sudo pacman -S gcc cmake hdf5 limesuite python python-pip

Installation

It is recommended to install the Python bindings in a virtual environment. To create a new virtual environment, run the following commands:

python3 -m venv venv
source venv/bin/activate

Ensure that the LimeDriver submodule is initialized:

git submodule update --init

Now, the Python bindings can be built and installed using pip:

pip install .

Usage

The Python bindings provide a high-level interface to the LimeDriver library:

# Import the LimeDriver module
import limedriver

# Set the number of pulses to generate
Npulses = 1000

# Create a new PyLimeConfig object
config = limedriver.PyLimeConfig(Npulses)

# Modify the config as needed
config.srate = 1e6

# Execute the config on the LimeSDR
config.run()

# Get the path to the output file
filename = config.get_path()

# Use the built-in HDF5 reader to read the output file
data = limedriver.hdf_reader.HDF(filename)
data.print_params()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

limedriver-0.4.0.tar.gz (116.3 kB view hashes)

Uploaded Source

Built Distributions

limedriver-0.4.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (3.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

limedriver-0.4.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl (3.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.28+ ARM64

limedriver-0.4.0-cp312-cp312-musllinux_1_1_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

limedriver-0.4.0-cp312-cp312-musllinux_1_1_aarch64.whl (3.0 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ ARM64

limedriver-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.0 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

limedriver-0.4.0-cp312-cp312-manylinux_2_28_aarch64.whl (3.8 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.28+ ARM64

limedriver-0.4.0-cp311-cp311-musllinux_1_1_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

limedriver-0.4.0-cp311-cp311-musllinux_1_1_aarch64.whl (3.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ ARM64

limedriver-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

limedriver-0.4.0-cp311-cp311-manylinux_2_28_aarch64.whl (3.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

limedriver-0.4.0-cp310-cp310-musllinux_1_1_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

limedriver-0.4.0-cp310-cp310-musllinux_1_1_aarch64.whl (3.0 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ ARM64

limedriver-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

limedriver-0.4.0-cp310-cp310-manylinux_2_28_aarch64.whl (3.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page