Skip to main content

gr8gen: protobuf generator for gr8pc

Project description

gr8gen: protobuf generator for gr8pc

This tool is a direct adaptation of py-grpcio, featuring a few modifications and tailored customizations. Depending on your needs, you may find the original repository better suited to your requirements and preferred practices.


Background and Motivation

As noted before, gr8pc is an adaptation of the py-grpcio library, with a few key modifications:

  • Python 3.11 Compatibility: This library is compatible with Python 3.11 (the original library demands >=3.12).
  • Separation between Logic and Protobuf file Generation: gr8pc splits into two subprojects: one for the core server and client logic, and another (optional) CLI tool for .proto file generation. This design decision was made to make the dependency on jinja not necessary for the core library. In other words, the core library won't generate .proto files during runtime and will raise an error if it can't find them. The .proto file must be generated at development time using the CLI tool.

Installation

pip install gr8pc

To install the optional CLI:

pip install gr8gen

Usage

For usage documentation, please refer to the original py-grpcio repository.

Proto Generation Tool

The gr8gen tool generates the necessary .proto file. Usage:

gr8gen --output /path/to/proto/folder --service path.to.service.Service path.to.another.service.AnotherService

Acknowledgments

This library is derived directly from the py-grpcio package, maintaining much of the original structure and functionality.

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

gr8gen-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

gr8gen-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file gr8gen-0.1.1.tar.gz.

File metadata

  • Download URL: gr8gen-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.26

File hashes

Hashes for gr8gen-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0b1bb3f663470044165f25bb30814d7dba46dbd6917215af5f9058c1a458a3f4
MD5 06b30f94fab14d2e05d42c5d47109ad0
BLAKE2b-256 dbb08ed8a8043330d05c39a36d5710e9a05f0caa658aca72bc5ad50407c115b1

See more details on using hashes here.

File details

Details for the file gr8gen-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gr8gen-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.26

File hashes

Hashes for gr8gen-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f550a036e57a63309ee1b5c4be2199918bd0d9e930d131b4c93ce87a1f541e9
MD5 81ab4846a68651b6dd317c2b774d58d0
BLAKE2b-256 e8735f314c3ff4a7e5e7970a30f3a3c5d0db59b679703b00ebce967ea14434ca

See more details on using hashes here.

Supported by

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