Skip to main content

rpc

Installation

pip install rpc

Usage

from embrpc.rpcscp import SCPServer, SCPClient


    class HandControl(BaseModel):
        x: float
        y: float
        z: float
        roll: float
        pitch: float
        yaw: float

    """Feed an LLM output to the robot running a server."""
    client = SCPClient(
        host="10.4.20.28",
        # host="1.2.3.4",
        user="user",
        password="pass",  # noqa: S106
        inbound_model=HandControl,
        outbound_model=HandControl,
        inbound_path="~/data_in.json",
        outbound_path="~/data_out.json",
    )

    client.send_data(HandControl(x=0.1, y=0.2, z=0.3, roll=0.4, pitch=0.5, yaw=0.6))
    data = client.receive_data()
    logging.info(data)

    locobot_server = SCPServer(
        inbound_path="~/data_in.json",
        outbound_path="~/data_out.json",
        inbound_model=HandControl,
        outbound_model=HandControl,
    )
    execute = lambda x: print(f"Executing {x}")
    locobot_server.poll(execute)

Metadata

Release files for embrpc 0.0.3

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

Source distribution (sdist)

Source distribution for embrpc 0.0.3
File Size Uploaded Provenance Actions
embrpc-0.0.3.tar.gz 13.2 MB Without provenance Details for embrpc-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for embrpc 0.0.3
File Interpreter ABI Platform Actions
embrpc-0.0.3-py3-none-any.whl Python 3 none any Details for embrpc-0.0.3-py3-none-any.whl

Total release size: 13.2 MB

Release files / embrpc-0.0.3.tar.gz

Download URL embrpc-0.0.3.tar.gz
Size 13.2 MB
Tags Source
SHA-256 checksum
How to use checksums
bb942a9a160d31e4a9773d52261bb6fc33996e362898efc4c25929c183b899ed
BLAKE2b-256 checksum
How to use checksums
6bd4081c7a282448cf730070491743820f24383099203e0961309ebb77642980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / embrpc-0.0.3-py3-none-any.whl

Download URL embrpc-0.0.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba0b5f2f04872366673f91d67c036b0f46aed2422e5beb2b9412a8ad49a51271
BLAKE2b-256 checksum
How to use checksums
cc0bda050018aa0379af7aa61c3effe8dd5c7ec7507bfa602099391055ae2791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Security for embrpc 0.0.3

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.

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