$npx skillfedfor your agent

twirp

Twirp server and client lib

SkipPyPI Application FrameworksReleased Apr 20221.1M downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — twirp-0.0.7-py3-none-any.whl
v0.0.7 · released 2022-04-24 · 3 runtime deps: requests, structlog, protobuf

No—the package is abandoned (last release 2022-04-24) with no active maintenance. License status is unclear, and there is no guarantee of compatibility with current Python or protobuf versions. Use only if you are maintaining legacy code already using this package.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires the protoc compiler and the protoc-gen-twirpy plugin (installed via Go).
  • Also requires uvicorn to run the server.
  • Low install friction with a pure-Python wheel.

License · maintenance · safety

(unclear) — License status is unclear; no SPDX identifier or raw license text is provided. Verify the actual license terms before using in a commercial or proprietary project.

last release 2022-04-24 (1573 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,086,330 downloads/mo, #4,384 on PyPI

Verify before relying

pip install twirp

from twirp.asgi import TwirpASGIApp
from twirp.exceptions import InvalidArgument

class MyService:
    def MyMethod(self, context, request):
        return response

service_instance = MyService()
app = TwirpASGIApp()
app.add_service(service_instance)
  • Whether the protoc-gen-twirpy plugin is still available and functional.
  • Current compatibility with modern Python versions and protobuf library versions.
  • Whether abandoned status affects stability or security for production use.
Same gist for agents: .md · .json

What it is and what it does

Twirp is a Python RPC framework that lets you define services in protobuf and automatically generate both server and client code. It implements the Twirp Wire Protocol v7, which is a lightweight alternative to gRPC that works over HTTP. The package provides an ASGI-compatible server wrapper (TwirpASGIApp) that you can run with uvicorn, plus client stubs that speak the Twirp protocol to remote services.

You define your service interface in a .proto file, run the protoc compiler with the twirpy plugin to generate Python code, then implement your service logic by subclassing the generated server class. The framework handles serialization, HTTP routing, and error handling. It depends on requests for HTTP calls, structlog for logging, and protobuf for message encoding.

Use it for

  • Build microservices that communicate via Twirp RPC instead of REST or gRPC.
  • Generate type-safe client and server stubs from protobuf definitions with minimal boilerplate.
  • Migrate from Twirp services in other languages to Python.
  • Create lightweight RPC services that run on standard ASGI servers like uvicorn.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—the package is abandoned (last release 2022-04-24) with no active maintenance.

License status is unclear, and there is no guarantee of compatibility with current Python or protobuf versions. Use only if you are maintaining legacy code already using this package.

Install

twirp on PyPI

Before you install

Low install friction with a pure-Python wheel. However, the package is abandoned—last release was 2022-04-24, over 1573 days ago. No recent maintenance or security updates are expected.

Requires the protoc compiler and the protoc-gen-twirpy plugin (installed via Go). Also requires uvicorn to run the server.

License in practice

License status is unclear; no SPDX identifier or raw license text is provided. Verify the actual license terms before using in a commercial or proprietary project.

Quickstart

pip install twirp

from twirp.asgi import TwirpASGIApp
from twirp.exceptions import InvalidArgument

class MyService:
    def MyMethod(self, context, request):
        return response

service_instance = MyService()
app = TwirpASGIApp()
app.add_service(service_instance)

Verify before relying

  • Whether the protoc-gen-twirpy plugin is still available and functional.
  • Current compatibility with modern Python versions and protobuf library versions.
  • Whether abandoned status affects stability or security for production use.

Package facts

LicenseNot declared unclear
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
requestsstructlogprotobuf
MaintenanceAbandoned 1,573 days since the last release
First released
Downloads1,086,330 / month, #4,384 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: twirp-0.0.7-py3-none-any.whl

Tags

Capabilities
twirp rpc framework pythonprotobuf rpc server clienttwirp protocol v7 implementationasgi rpc frameworktwirp code generation
Topics
rpc-frameworkprotobufasgi

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 › “twirp rpc framework python”

  • twirpTwirp is a Python implementation of the Twirp RPC framework that…
  • connect-pythonProvides Python client and server libraries for Connect RPC, a…
  • grpciogRPC Python is an HTTP/2-based RPC framework that enables you to…

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

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also connect-python · protoc-gen-connect-python · betterproto-fw · aristaproto · hatch-protobuf · grpclib · connectrpc · grpc-gateway-protoc-gen-openapiv2 · betterproto-rust-codec · protoc-gen-openapiv2