$npx skillfedfor your agent

protoletariat

Python protocol buffers for the rest of us

SkipPyPI Build ToolsReleased Mar 20252.6M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — protoletariat-3.3.10-py3-none-any.whl
v3.3.10 · released 2025-03-19 · Python <4.0,>=3.8 · 3 runtime deps: astunparse, click, protobuf

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

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.
Same gist for agents: .md · .json

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.

Skip

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

LicenseApache-2.0 permissive
Python supportSupports the current Python release <4.0,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
astunparseclickprotobuf
MaintenanceAbandoned 513 days since the last release
Last repo commit repository archived
First released
Downloads2,551,260 / month, #3,004 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
protobuf import rewritingfix protoc generated importspython protocol buffersrelative imports protobufprotoc post-processing tool
Topics
protobufcode-generationbuild-tool

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Build Tools packages

packaging Worth it
PyPI · Build Tools · released Aug 2026

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.

Apache-2.0 OR BSD-2-Clausepure Python · 3.9+
2.2Bdownloads / mo
tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
pip Worth it
PyPI · Build Tools · released Aug 2026

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.

MITpure Python · 3.10+
617.5Mdownloads / mo
hatchling Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
484.2Mdownloads / mo
grpcio-tools Worth it
PyPI · Build Tools · released Jul 2026

Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.

Apache-2.0compiled wheel · 3.10+
278.2Mdownloads / mo
pre-commit Worth it
PyPI · Build Tools · released Aug 2026

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.

permissive licensepure Python · 3.10+
179.9Mdownloads / mo

See also hatch-protobuf · setuptools-protobuf · aristaproto · absolufy-imports · betterproto · dbt-protos · proto-schema-parser · betterproto-fw · sentry-protos · protoc-gen-connect-python