EdgePi RPC Client
The RPC client exposes functionality of the EdgePi Python SDK to be used over either a network connection or on local sockets, allowing for potential remote control of the EdgePi.
Since the client directly mirrors the SDK, you can take advantage of the user-friendly SDK functionality with the flexibility of different connection protocols depending on your specific use case.
You can learn more about the Python SDK here.
Using the RPC Client
Install the RPC client through the terminal:
$ python3 -m pip install edgepi-rpc-client
Once installed, you can control the modules of the EdgePi directly through the SDK's wide functionality.
For example, from a remote connection with address localhost and port 5555, initialize a client module as:
from edgepi_rpc_client.services.adc.client_adc_service import ClientAdcService
from edgepi_rpc_client.services.adc.adc_pb_enums import ADCChannel, ConvMode
# initialize ADC Client
adc_client = ClientAdcService('tcp://localhost:5555')
# configure ADC to sample input pin 4 (the input pins are 0-indexed)
adc_client.set_config(adc_1_analog_in=ADCChannel.AIN3, conversion_mode=ConvMode.CONTINUOUS)
# send command to start automatic conversions
adc_client.start_conversions()
# perform 10 voltage reads
for _ in range(10):
out = adc_client.read_voltage()
print(out)
# stop automatic conversions
adc_client.stop_conversions()
Once the client is initialized you can control the EdgePi exactly as you would through the SDK.
For details about available modules visit the SDK GitHub repository linked above.
Metadata
Release files for edgepi-rpc-client 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edgepi-rpc-client-0.0.14.tar.gz | 20.1 kB | Without provenance | Details for edgepi-rpc-client-0.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edgepi_rpc_client-0.0.14-py3-none-any.whl | Python 3 | none | any | Details for edgepi_rpc_client-0.0.14-py3-none-any.whl |
Total release size: 51.1 kB
Release files / edgepi-rpc-client-0.0.14.tar.gz
| Download URL | edgepi-rpc-client-0.0.14.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81a9cccdadbc7c4942d4a3f45344b583ddd895d9e3f55be83c325f0ba29899a9
|
|
BLAKE2b-256 checksum How to use checksums |
bc952b541588f8fa0e00426ca4445f746fd4d11fafdeb9ffe6b4ba6a7b2014d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / edgepi_rpc_client-0.0.14-py3-none-any.whl
| Download URL | edgepi_rpc_client-0.0.14-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77ede1eb158fa50e6f8499aa67faffcbb52b04b7a41fc85d2265de4ded44b238
|
|
BLAKE2b-256 checksum How to use checksums |
6a75aa1b701e3c1a1e7509d0f7d67e60cba5c74e3e40e35200bca58ca7e58e7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for edgepi-rpc-client 0.0.14
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.