gr8pc: A High-Level gRPC Wrapper for python
This library 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:
gr8pcsplits into two subprojects: one for the core server and client logic, and another (optional) CLI tool for.protofile generation. This design decision was made to make the dependency onjinjanot necessary for the core library. In other words, the core library won't generate.protofiles during runtime and will raise an error if it can't find them. The.protofile 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
$ gr8gen --help
usage: gr8gen [-h] [--version] [-o OUT] -s SVCS [SVCS ...]
A CLI tool for processing paths and services.
options:
-h, --help show this help message and exit
--version show program's version number and exit
-o OUT, --out OUT Path for output. Must be an existing or new directory. (default: ./proto)
-s SVCS [SVCS ...], --svcs SVCS [SVCS ...]
Python-like import path(s) for service(s). Example: 'path.to.class.Class'. (default: None)
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.
Metadata
Release files for gr8pc 0.2.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 |
|---|---|---|---|---|
| gr8pc-0.2.0.tar.gz | 11.7 kB | Without provenance | Details for gr8pc-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gr8pc-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for gr8pc-0.2.0-py3-none-any.whl |
Total release size: 27.9 kB
Release files / gr8pc-0.2.0.tar.gz
| Download URL | gr8pc-0.2.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28222bc1adad7c561f87c32c094aafab2021400198ce86f9a1f295efa2391274
|
|
BLAKE2b-256 checksum How to use checksums |
9a81b3496e171927cf4809dc15e5d55571af7c4256c51c49e34d9d867976071f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Release files / gr8pc-0.2.0-py3-none-any.whl
| Download URL | gr8pc-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23c4b7b8b1f97b4760d881a76d757ba20bbf79b0001f0d98312387f034196dc9
|
|
BLAKE2b-256 checksum How to use checksums |
233226aaa075a5ef8dbd741b18627ab54d61623b1d7c2c45836c8d6a9b9be761
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Security for gr8pc 0.2.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.