Skip to content

pyfunc/devint

Repository files navigation

DevInt - Unified Device Interface

PyPI Python Version License

A Python library for interacting with various hardware devices and protocols through a unified interface.

Features

  • Unified API for different hardware interfaces (I2C, SPI, GPIO, Serial, etc.)
  • Device Registry for easy hardware component management
  • Web Interface for remote monitoring and control
  • Multiple Protocol Support:
    • Modbus RTU/TCP
    • I2C/SMBus
    • SPI
    • GPIO
    • 1-Wire
    • CAN bus
    • MQTT
  • Pre-built Device Support for common hardware (Raspberry Pi HATs, Waveshare modules, etc.)

Installation

pip install devint

For development:

git clone https://github.com/pyfunc/devint.git
cd devint
poetry install

Quick Start

from devint import MultiDeviceService
from devint.registry.raspberry_pi.sense_hat import RaspberrySenseHAT

# Create a service
service = MultiDeviceService()

# Add a device
sense_hat = RaspberrySenseHAT("sense_hat_1")
service.add_device(sense_hat)

# Start the service (includes web interface on port 5000)
service.start()

Documentation

For full documentation, please visit https://github.com/pyfunc/devint

License

Apache 2.0 - See LICENSE for more information.

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

About

device interfaces & management

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published