benjaminp/six
Python 2 and 3 compatibility library observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 68
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3530
- days_rel: n/a
- days_push: 192
- n_releases_24m: 0
Adoption not part of the score
1028 stars · 276 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Six is a Python 2 and 3 compatibility library providing utility functions and constants to smooth over differences between the two Python versions. It is a single Python file that can be easily vendored into projects to write code compatible with both versions.
Use cases
- write code that runs on both python 2 and python 3
- smooth over string type differences between python 2 and 3
- handle integer type differences like long vs int
- vendor a compatibility shim into a project as one file
- detect which python version the code is running on
When to choose
- maintaining a legacy codebase that must support Python 2.7 and Python 3 simultaneously
- you need a tiny, dependency-free compatibility layer you can copy into your project
When to avoid
- your project only targets Python 3
- starting a new project, since Python 2 is end-of-life and modern alternatives or native Python 3 code are preferred
Facets
library · maturity maintenance
developer-tools developer-tools programming-languages python cross-platform python-2 python-3 compatibility single-file
3 sources
- readme: https://github.com/benjaminp/six · fetched 2026-08-28 · ca64c34dcb4a
- homepage: https://six.readthedocs.io/ · fetched 2026-08-29 · 8d8f44245d42
- registry_pypi: https://pypi.org/pypi/six/json · fetched 2026-08-29 · 0c0ec9ef2e2e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| benjaminp/six | main | 63 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem