Skip to content

Commit ad526d9

Browse files
committed
python: added README.md file for Python bindings.
Added a README.md file which contains information to be displayed on the main Pypi libiio page. Signed-off-by: Cristi Iacob <[email protected]>
1 parent cc55f51 commit ad526d9

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

bindings/python/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# libiio: Python Bindings
2+
3+
This package contains the python bindings for libiio, a library for interfacing with Linux IIO devices.
4+
5+
libiio is used to interface to the Linux Industrial Input/Output (IIO) Subsystem. The Linux IIO subsystem is intended to provide support for devices that in some sense are analog to digital or digital to analog converters (ADCs, DACs). This includes, but is not limited to ADCs, Accelerometers, Gyros, IMUs, Capacitance to Digital Converters (CDCs), Pressure Sensors, Color, Light and Proximity Sensors, Temperature Sensors, Magnetometers, DACs, DDS (Direct Digital Synthesis), PLLs (Phase Locked Loops), Variable/Programmable Gain Amplifiers (VGA, PGA), and RF transceivers. You can use libiio natively on an embedded Linux target (local mode), or use libiio to communicate remotely to that same target from a host Linux, Windows or MAC over USB or Ethernet or Serial.
6+
7+
[![Build Status](https://travis-ci.org/analogdevicesinc/libiio.svg?branch=master)](https://travis-ci.org/analogdevicesinc/libiio)
8+
[![PyPI version](https://badge.fury.io/py/libiio.svg)](https://badge.fury.io/py/libiio) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/4bd027bfc5774029a30a9e1cedf5a434)](https://www.codacy.com/app/rgetz/libiio?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=analogdevicesinc/libiio&amp;utm_campaign=Badge_Grade)
9+
![open bugs](https://img.shields.io/github/issues/analogdevicesinc/libiio.svg)
10+
11+
[[Docs](https://analogdevicesinc.github.io/libiio/v0.19/python/index.html)]
12+
[[Support](http://ez.analog.com)]
13+
[[Wiki](https://wiki.analog.com/resources/tools-software/linux-software/libiio)]
14+
15+
## Requirements
16+
To use these bindings naturally you need the core library they depend upon, libiio. This is not packaged with the pypi release but there are a number of options:
17+
- If you want to just use libiio, we suggest using the [latest release](https://github.com/analogdevicesinc/libiio/releases/latest).
18+
- If you think you have found a bug in the release, or need a feature which isn't in the release, try the latest **untested** binaries from the master branch and check out the [documentation](https://codedocs.xyz/analogdevicesinc/libiio/) based on the master branch. We provide builds for a few operating systems. If you need something else, we can most likely add that -- just ask.
19+
20+
### Installing the bindings
21+
To install these bindings there are a few methods. If you already have the library itself and just need the bindings, pip is the most convenient method:
22+
```shell
23+
(sudo) pip install libiio
24+
```
25+
If you do not want to use pip, then installation is dependent on your operating system.
26+
#### Linux / macOS
27+
For Linux and macOS the python bindings need to be installed through source if not using pip. For v0.20 and beyond this requires the `-DPYTHON_BINDINGS=ON` flag during the cmake configuration. Further documentation is located [here](https://github.com/analogdevicesinc/libiio/blob/master/README_BUILD.md).
28+
29+
#### Windows
30+
Only pip installation is supported.
31+
32+
### Support
33+
If you have a question about libiio or the python bindings and an Analog Devices IIO kernel driver please ask on : [![EngineerZone](https://img.shields.io/badge/chat-on%20EngineerZone-blue.svg)](https://ez.analog.com/linux-device-drivers/linux-software-drivers). If you have a question about a non-ADI devices, please ask it on [github](https://github.com/analogdevicesinc/libiio/issues).
34+
35+
If you use it, and like it - please let us know. If you use it, and hate it - please let us know that too. The goal of the project is to try to make Linux IIO devices easier to use on a variety of platforms. If we aren't doing that - we will try to make it better.
36+
37+
Feedback is appreciated (in order of preference):
38+
39+
* [Github trackers](https://github.com/analogdevicesinc/libiio/issues) for bugs, improvements, or feature requests
40+
* [Analog Devices web forums](https://ez.analog.com/community/linux-device-drivers/linux-software-drivers) for general help on libiio and/or ADI Linux IIO drivers
41+
* [The IIO mailing list](http://vger.kernel.org/vger-lists.html#linux-iio) for questions about other Linux IIO drivers, or kernel-specific IIO questions
42+
43+
## Useful resources
44+
* [About IIO](https://wiki.analog.com/software/linux/docs/iio/iio)
45+
* [API Documentation](http://analogdevicesinc.github.io/libiio/)
46+
* [Libiio](http://wiki.analog.com/resources/tools-software/linux-software/libiio)
47+
* [Libiio internals](http://wiki.analog.com/resources/tools-software/linux-software/libiio_internals)
48+

0 commit comments

Comments
 (0)