Skip to main content

rpio-client

Python client library for rpio-server.

Installation

pip install rpio-client

API

All API in one example:

import asyncio
from rpio_client import *

@asyncio.coroutine
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 pin.read())  # print state on pin 13

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

    yield from client.close()  # close connection

loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))

Metadata

Release files for rpio-client 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpio-client 1.0.2
File Size Uploaded Provenance Actions
rpio-client-1.0.2.tar.gz 3.0 kB Without provenance Details for rpio-client-1.0.2.tar.gz

Release files / rpio-client-1.0.2.tar.gz

Download URL rpio-client-1.0.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2763a025994fd39bad87347179ef2cc2a3f2b90da4c722ba4a0478ac6ef61151
BLAKE2b-256 checksum
How to use checksums
70c2dc8b2003ce62941b694d2617eb373a9a1c1cb6f1ef352e2f36a6149dbfa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rpio-client 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page