Skip to content

Repository files navigation

nexus-rpc-sdk

Python SDK for the Nexus microservice framework.

Installation

pip install nexus-rpc-sdk

Quick example

from nexus_sdk import Node, Request, Response


def ping_handler(req: Request) -> Response:
    return Response(payload=b"pong")


node = Node(name="example-service")
node.handle("ping", ping_handler)
node.serve()  # registers with the Nexus registry and starts serving

For full framework documentation, see the main Nexus repository: https://github.com/maxesisnclaw/nexus

License

MIT

About

Nexus microservice framework — Python SDK

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages