2to3 - Automated Python 2 to 3 Code Translation

JSON →
library 1.0 ·python deprecated
verified May 25, 2026

2to3 is a Python program designed to automatically convert Python 2.x source code into Python 3.x compatible code. It achieves this by applying a series of 'fixers' that address common syntax and API changes between the two major Python versions. The PyPI package `2to3` (version 1.0, last updated September 2018) primarily provides the `2to3` command-line utility, which was historically part of the Python standard library. Its core component, `lib2to3`, has been deprecated since Python 3.11 and is slated for removal in Python 3.13, marking the tool's transition towards obsolescence for active development. As Python 2 reached its End-of-Life in January 2020, the utility's main relevance is for legacy codebase migrations.

total hits 65
actors 11 distinct systems
last hit 3d ago MetaBot
MetaBot
4
Script
3
GPTBot
2
Amazonbot
2
ByteDance
1
CommonCrawl
1
PerplexityBot
1
Search engines
9
Humans
33

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇯🇵 Japan · VN