Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.
/ peripherio Public archive

peripherio: The peripheral interface abstraction (wip)

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

peripherio/peripherio

Repository files navigation

peripherio

CircleCI MicroBadger Size MicroBadger Layers

The peripheral interface abstraction

from peripherio import connect
import time

with connect() as conn:
    device = conn.find_device('gyro', {'if.type': 'i2c'})[0]
    while True:
        print(device.get_gyro())
        time.sleep(1)

Getting started

First, Launch the peripherio server:

# Start the server
cargo run --bin peripherio

Then, you can connect to the server. For example:

cd pyperipherio
pipenv install

# Run the client
pipenv run python examples/simple_get_gyro.py

Architecture

architecture

Progress

  • Category-based abstruction
  • Device auto detection
  • Driver + Config → Device
  • gRPC Server
  • Docker
  • Client application (e.g. lsperi)
  • mock driver (Simulator?)
  • Add more examples
  • Config injection from preference file
  • Driver Package Management

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

peripherio: The peripheral interface abstraction (wip)

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published