Metadata-Version: 2.4
Name: revpi_device_info
Version: 1.1.0
Summary: RevPi device information from RevPi HAT EEPROM
Home-page: https://github.com/RevolutionPi/python3-revpi-device-info
Author: Nicolai Buchwitz
Author-email: n.buchwitz@kunbus.com
License: LGPLv2
Keywords: revpi,revolution pi,revpimodio,plc,automation
Platform: revolution pi
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >= 3.6
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: platform
Dynamic: requires-python
Dynamic: summary

<!--
SPDX-FileCopyrightText: 2022-2023 KUNBUS GmbH

SPDX-License-Identifier: MIT
-->
<details>
<summary>We have moved to GitLab! Read this for more information.</summary>

We have recently moved our repositories to GitLab. You can find python3-revpi-device-info
here: https://gitlab.com/revolutionpi/python3-revpi-device-info  
All repositories on GitHub will stay up-to-date by being synchronised from
GitLab.

We still maintain a presence on GitHub but our work happens over at GitLab. If
you want to contribute to any of our projects we would prefer this contribution
to happen on GitLab, but we also still accept contributions on GitHub if you
prefer that.
</details>

# python3-revpi-device-info

Python3 library to interact with RevPi device information.

## Example usage

```python

import revpi_device_info

# initialize EEPROM and load contents from default path (/proc/device-tree/hat)
# Fallback to /usr/share/revpi/devinfo information if no HAT EEPROM is available
try:
    device = revpi_device_info.RevPiDeviceInfo()

    # print product name
    print(device.product)
except revpi_device_info.RevPiHatEEPROMException as e:
    print(f"An error occurred while reading the HAT files: {e}")

```
