Skip to main content

Client library for rpio-server

Project description

Python client library for rpio-server.


pip install rpio-client


All API in one example:

import asyncio
from rpio_client import *

def main(loop):
    client = RpioClient(loop)  # create client
    yield from client.connect()  # connect to server

    pin = client.get_pin(13)  # get pin 13 instance
    yield from pin.set_mode(Mode.input)  # set input mode
    yield from pin.set_pull(Pull.down)  # set pulling to ground
    print(yield from  # print state on pin 13

    # blinking
    pin = client.get_pin(10)
    for _ in range(10):
        yield from pin.toggle()
        yield from asyncio.sleep(1)

    yield from client.close()  # close connection

loop = asyncio.get_event_loop()

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rpio-client, version 1.0.2
Filename, size & hash File type Python version Upload date
rpio-client-1.0.2.tar.gz (3.0 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page