| 1 |
.. |
| 2 |
SPDX-License-Identifier: CC-BY-SA-4.0 |
| 3 |
SPDX-FileCopyrightText: 2024-2025 Bartosz Golaszewski <[email protected]> |
| 4 |
|
| 5 |
.. |
| 6 |
This file is part of libgpiod. |
| 7 |
|
| 8 |
libgpiod python bindings documentation |
| 9 |
|
| 10 |
libgpiod Python bindings API |
| 11 |
============================ |
| 12 |
|
| 13 |
The **libgpiod Python bindings** provide an interface to control and interact |
| 14 |
with GPIO (General-Purpose Input/Output) lines on Linux systems using the |
| 15 |
libgpiod library. The Python bindings allow developers to manage GPIO pins |
| 16 |
easily through Python scripts, enabling tasks such as reading input values, |
| 17 |
setting outputs, monitoring events, and configuring more fine-grained pin |
| 18 |
options. |
| 19 |
|
| 20 |
.. note:: |
| 21 |
Python bindings require python3 support and libpython development files for |
| 22 |
building from sources. |
| 23 |
|
| 24 |
.. toctree:: |
| 25 |
:maxdepth: 1 |
| 26 |
:caption: Contents |
| 27 |
|
| 28 |
python_chip |
| 29 |
python_chip_info |
| 30 |
python_exceptions |
| 31 |
python_line |
| 32 |
python_line_info |
| 33 |
python_info_event |
| 34 |
python_edge_event |
| 35 |
python_line_settings |
| 36 |
python_line_request |
| 37 |
python_misc |
| 38 |
|
| 39 |
.. note:: |
| 40 |
Python bindings can be installed from https://pypi.org/ with pip by running |
| 41 |
``pip install gpiod``. |