# Thriftpy/thriftpy

thriftpy is now a thin shim around https://github.com/Thriftpy/thriftpy2

Repository: https://github.com/Thriftpy/thriftpy
Canonical: https://ross.abutalabs.com/products/thriftpy
Language: Python
License: MIT
License Family: permissive
Topics: python, thrift, rpc, serialization
Last push: 2026-08-11T16:56:35+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 58, longevity 100
- inputs: {"age_days": 4586, "days_push": 22, "days_rel": 65, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1148, forks 281 (observed 2026-08-28T04:03:46.144836+00:00)

## What it is
A thin compatibility shim that installs thriftpy2 and re-exports it under the historical 'thriftpy' package name. It lets legacy code using 'import thriftpy' keep working on the maintained thriftpy2 implementation, with both packages released in sync.

## Use cases
- keep legacy code importing thriftpy working
- use Apache Thrift RPC in Python
- serialize and deserialize Thrift structs
- build Thrift client-server services in Python
- load .thrift IDL files dynamically

## When to choose
- you have existing code that imports 'thriftpy' and want maintained releases
- you need Thrift RPC or serialization in Python with the historical package name

## When to avoid
- you are starting a new project - use thriftpy2 directly
- you need a serialization format other than Thrift

## Facets
- artifact type: library
- maturity: maintenance
- function: rpc, serialization, middleware
- domain: developer-tools, backend, apis
- platform: python, cross-platform
- tags: thrift, compatibility-shim, legacy-name, idl

## Member repositories
- Thriftpy/thriftpy (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:46.144836+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:33:48.365787+00:00, confidence not recorded.
  - readme: https://github.com/Thriftpy/thriftpy (fetched 2026-08-28T04:03:46.144836+00:00, sha cf881a329c7e)
  - registry_pypi: https://pypi.org/pypi/thriftpy/json (fetched 2026-08-29T12:38:52.706315+00:00, sha d688818dc89c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
