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
.protofiles. - Pre-Generated Python Stubs: Python stubs (
*_pb2.pyand*_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
Using Pre-Generated Stubs (Recommended)
# 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) |
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.34.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keeps_learn_nexus_proto-0.34.0.tar.gz | 63.7 kB | Without provenance | Details for keeps_learn_nexus_proto-0.34.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keeps_learn_nexus_proto-0.34.0-py3-none-any.whl | Python 3 | none | any | Details for keeps_learn_nexus_proto-0.34.0-py3-none-any.whl |
Total release size: 139.7 kB
Release files / keeps_learn_nexus_proto-0.34.0.tar.gz
| Download URL | keeps_learn_nexus_proto-0.34.0.tar.gz |
|---|---|
| Size | 63.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f1f56e56e4cc9bde0e481e2ff5c4a139738f5b590060ae4b252b3c39438aed8
|
|
BLAKE2b-256 checksum How to use checksums |
33f019136dccbf7393eed113cd0fbf84da1e426538f5ecda8609f6374320732f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / keeps_learn_nexus_proto-0.34.0-py3-none-any.whl
| Download URL | keeps_learn_nexus_proto-0.34.0-py3-none-any.whl |
|---|---|
| Size | 76.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88097928d800866aa8483c0cd935ac2b40a996216d5d8f105b05fe1293a23bb2
|
|
BLAKE2b-256 checksum How to use checksums |
a1f87e9af9c869505c6bc05ec69dcd17dcb383e393e99287334edb82e003f910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for keeps-learn-nexus-proto 0.34.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.