jorenham/unpy

Python stub backporter

36
/ 100
Emerging

This tool helps Python library maintainers who write type stubs to ensure their code works across different Python versions. It takes a Python Interface file (`.pyi`) written for a newer Python version (e.g., 3.13) and converts it into a version compatible with an older one (e.g., 3.10). This is useful for developers who want to provide modern type hints while still supporting users on earlier Python releases.

Available on PyPI.

Use this if you are a Python library maintainer or a developer creating type stubs and need to make your `.pyi` files compatible with older Python versions.

Not ideal if you are working with regular Python `.py` files, need to convert entire projects, or are looking for a stable, production-ready solution at this alpha stage.

Python development library maintenance type hinting code transpilation API compatibility
Maintenance 6 / 25
Adoption 5 / 25
Maturity 25 / 25
Community 0 / 25

How are scores calculated?

Stars

9

Forks

Language

Python

License

BSD-3-Clause

Last pushed

Jan 01, 2026

Commits (30d)

0

Dependencies

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/jorenham/unpy"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.