Skip to main content

MistroRPC

Mistro is an RPC protocol & library made by Project VsingerXiaoice Group.

Usage

Example Server:

from mistrorpc import MistroServer
from fastapi import FastAPI
import uvicorn

app = FastAPI()
rpc = MistroServer(app, "password123456")

@rpc.rpc_fn("hello_world")
def hello_world(ping: str):
    return {"hello": "world", "ping": ping}

uvicorn.run(app, host="0.0.0.0", port=4431)

Example Client:

from mistrorpc import MistroClient
import asyncio

client = MistroClient(api="http://127.0.0.1", "password123456")

print("Sync Response:", client.get_fn("hello_world")("sync_response"))

async def main():
    print("Async Response:", await client.get_asyncfn("hello_world")("async_response"))

asyncio.run(main())

Protocol

API

See connect.py.

Pickle format

We use rePickle for encoding arguments & return values.

rePickle is an internal modules mistrorpc.pickle at pickle.py.

Metadata

Release files for mistrorpc 0.1.0

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

Built distribution (wheel)

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

Release files / mistrorpc-0.1.0-py3-none-any.whl

Download URL mistrorpc-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe914f2e34ac53d99d68798d272a60019a72a1318da105671db87466a67ea35b
BLAKE2b-256 checksum
How to use checksums
487b038f77b05f51d4e4b47c3236d9ea982d33a82df75cdc811ab4870a98caba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for mistrorpc 0.1.0

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

0.1.0 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