protoletariat
Python protocol buffers for the rest of us
Decision gist · record as of 2026-08-14
No. The package is archived and abandoned, with no maintenance since June 2026. While it has low install friction and permissive licensing, the lack of active development creates risk for compatibility issues with future protobuf or Python versions. If you need to fix protoc-generated imports, consider whether the problem is still relevant with current protobuf versions or whether an actively maintained alternative exists.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires protoc to be installed and available on your system path; protoletariat is a post-processing tool that runs after protoc generates code.
- Low friction install with three lightweight runtime dependencies (astunparse, click, protobuf).
- However, the package is archived and abandoned as of the last commit on 2026-06-04, with no active maintenance.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without significant legal constraints.
last release 2025-03-19 (513 days) · last repo commit 2026-06-04 · 214 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,551,260 downloads/mo, #3,004 on PyPI
Alternatives
Verify before relying
pip install protoletariat
# After running protoc to generate Python code:
protol --create-package --in-place --python-out out protoc --proto-path=. thing.proto
# This converts absolute imports to relative imports in the generated files.- Whether the abandoned status and lack of recent maintenance pose compatibility risks with future protobuf or Python versions.
- Whether the import rewriting approach remains compatible with current protoc output and gRPC code generation.
What it is and what it does
Protoletariat is a command-line tool that fixes Python imports in code generated by protoc (the Protocol Buffers compiler). When protoc generates Python modules from .proto files, it creates absolute imports that don't work well in packaged Python code; protoletariat rewrites those imports to relative imports by analyzing the FileDescriptorProtos and applying AST-based rewrite rules.
The tool is designed as a post-processing step: you run protoc first to generate the Python code, then run protoletariat to fix the imports. It supports multiple input sources (protoc, buf, or raw FileDescriptorSet bytes) and can recursively create __init__.py files to turn output directories into proper packages. It depends on astunparse for AST manipulation, click for CLI handling, and protobuf for descriptor parsing.
Use it for
- Fix broken imports in protoc-generated Python code when building a Python package that uses Protocol Buffers.
- Automate the import rewriting step in a build pipeline that generates gRPC service stubs and message types.
- Convert absolute imports to relative imports in generated protobuf modules to enable proper package distribution.
- Process code generated by buf (the modern protobuf build system) to make imports work in Python packages.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is archived and abandoned, with no maintenance since June 2026. While it has low install friction and permissive licensing, the lack of active development creates risk for compatibility issues with future protobuf or Python versions. If you need to fix protoc-generated imports, consider whether the problem is still relevant with current protobuf versions or whether an actively maintained alternative exists.
Install
protoletariat on PyPI
Before you install
Low friction install with three lightweight runtime dependencies (astunparse, click, protobuf). However, the package is archived and abandoned as of the last commit on 2026-06-04, with no active maintenance.
Requires protoc to be installed and available on your system path; protoletariat is a post-processing tool that runs after protoc generates code.
License in practice
Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without significant legal constraints.
Quickstart
pip install protoletariat
# After running protoc to generate Python code:
protol --create-package --in-place --python-out out protoc --proto-path=. thing.proto
# This converts absolute imports to relative imports in the generated files.
Verify before relying
- Whether the abandoned status and lack of recent maintenance pose compatibility risks with future protobuf or Python versions.
- Whether the import rewriting approach remains compatible with current protoc output and gRPC code generation.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesastunparseclickprotobuf |
| Maintenance | Abandoned 513 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 2,551,260 / month, #3,004 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: protoletariat-3.3.10-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “protobuf import rewriting”
- protoletariatProtoletariat rewrites Python imports generated by protoc, converting…
- googleapis-common-protosProvides common Protocol Buffer message definitions used across…
- foxglove-schemas-protobufProvides precompiled Protobuf message classes for Foxglove Schemas,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also hatch-protobuf · setuptools-protobuf · aristaproto · absolufy-imports · betterproto · dbt-protos · proto-schema-parser · betterproto-fw · sentry-protos · protoc-gen-connect-python