Skip to main content

Nexus Proto

Shared Protocol Buffer definitions for Nexus microservices.

Why "Nexus"?

The name Nexus was chosen to represent the central connection between microservices. In many languages, "nexus" refers to a point of intersection or link, which is exactly what this project provides: an efficient hub for communication between distributed services built in different technologies. The idea is to create a convergence point that makes it easier to integrate systems, ensuring consistent and scalable communication, no matter the language or framework used. Nexus is the solution that connects and unites services in a simple and effective way.

Features

  • Centralized Protocol Definitions: All communication contracts are defined in a shared repository of .proto files.
  • Pre-Generated Python Stubs: Python stubs (*_pb2.py and *_pb2_grpc.py) are automatically generated and included in the package, eliminating the need for consumers to generate them.
  • Multi-Language Support: Easily integrate microservices written in different programming languages (e.g., Python, Node.js, Java, etc.).
  • Scalable Communication: Easily extend the system as new microservices are added to the architecture.
  • gRPC-powered: Leveraging gRPC for high-performance communication with built-in support for multiple programming languages.
  • Industry Standard: Follows best practices from projects like googleapis-common-protos, ensuring consistency and reliability.

Installation

Node.js / npm

npm install @keeps-learn/nexus-proto

📦 npm Package: https://www.npmjs.com/package/@keeps-learn/nexus-proto

Python / pip

pip install keeps-learn-nexus-proto

📦 PyPI Package: https://pypi.org/project/keeps-learn-nexus-proto/

Quick Start - Python

# Import stubs directly - no compilation needed!
from nexus_proto.generated.myaccount import users_pb2, users_pb2_grpc
from nexus_proto.generated.konquest import mission_pb2, mission_pb2_grpc
from nexus_proto.generated.billing import billing_pb2, billing_pb2_grpc

# Use message types
user = users_pb2.User(id="123", name="John Doe")

# Use service stubs with gRPC
import grpc
channel = grpc.aio.secure_channel('localhost:50051', grpc.ssl_channel_credentials())
stub = users_pb2_grpc.UserServiceStub(channel)

See USAGE.md for more detailed examples and options.

Services

Proto Package Service Server
kontent/survey.proto kontent_survey SurveyService (independent surveys), SurveyTemplateService (survey templates) keeps-kontent-server

See USAGE.md for the Kontent survey contract (error mapping included).

Publishing

Bump the version in pyproject.toml, package.json and nexus_proto/__init__.py in your PR (the PR check requires it when protos change). When the PR is merged, the Release workflow publishes the new version to pypi.org and npmjs.com, then creates the vX.Y.Z tag and GitHub release.

See PUBLISH.md for detailed publishing instructions.

Metadata

Release files for keeps-learn-nexus-proto 0.36.0

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

Source distribution (sdist)

Source distribution for keeps-learn-nexus-proto 0.36.0
File Size Uploaded Provenance Actions
keeps_learn_nexus_proto-0.36.0.tar.gz 75.5 kB Without provenance Details for keeps_learn_nexus_proto-0.36.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for keeps-learn-nexus-proto 0.36.0
File Interpreter ABI Platform Actions
keeps_learn_nexus_proto-0.36.0-py3-none-any.whl Python 3 none any Details for keeps_learn_nexus_proto-0.36.0-py3-none-any.whl

Total release size: 162.3 kB

Release files / keeps_learn_nexus_proto-0.36.0.tar.gz

Download URL keeps_learn_nexus_proto-0.36.0.tar.gz
Size 75.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb9b649c30eb1ee2f3d82f79329f7bb048e9b7e1ef8f80d84e82aa921824f8da
BLAKE2b-256 checksum
How to use checksums
662d2c2e7535690707bd5ce94c6b0889262c33db36e8a4284791f54e1f68d050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / keeps_learn_nexus_proto-0.36.0-py3-none-any.whl

Download URL keeps_learn_nexus_proto-0.36.0-py3-none-any.whl
Size 86.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7b5c29eb2c72d12b0244ae7dd2d1498cf5c2cd17cd14037c4a1c502368b57e4
BLAKE2b-256 checksum
How to use checksums
56b2c16f95cb5b415b7234a9cd69cd7659bfea6497e59bc65f26432f20da2818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for keeps-learn-nexus-proto 0.36.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.36.0 This release

2 release files 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