Skip to main content

Nexus microservice framework Python SDK

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexus_rpc_sdk-0.5.2.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexus_rpc_sdk-0.5.2-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file nexus_rpc_sdk-0.5.2.tar.gz.

File metadata

  • Download URL: nexus_rpc_sdk-0.5.2.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for nexus_rpc_sdk-0.5.2.tar.gz
Algorithm Hash digest
SHA256 87615077c0183b92fa47af38e98c80ba3137e3d6d738412ddc049e0811c2fb6c
MD5 516270b2f228b0f18010663ca61d63a7
BLAKE2b-256 683962659129e4b8cdf88780748e6fe4cd306bd0146aff61b42da71f9f0b7007

See more details on using hashes here.

File details

Details for the file nexus_rpc_sdk-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: nexus_rpc_sdk-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for nexus_rpc_sdk-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cadb4345b3020c21950f289903327111925965c2c92572274fbfe79ca7174c85
MD5 b0067ed333b32811c2052862e3abd7a6
BLAKE2b-256 2a521618d08be6b52ed23fa6634d24bca9d792fed374c7368018afae800fc831

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page