csvoss/onelinerizer
Shamelessly convert any Python 2 script into a terrible single line of code observed · 2026-08-28
Health v2 · maintenance only
33/100
- Activity 22
- Release rhythm 8
- Longevity 100
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: 4247
- days_rel: 473
- days_push: 472
- n_releases_24m: 1
Adoption not part of the score
1523 stars · 111 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Oneliner-izer is a Python tool that converts any Python 2 script into a single line of code using lambda expressions, list comprehensions, and other tricks, without newlines, semicolons, or eval/exec. It is available as a pip-installable CLI and Python module, with a live web demo.
Use cases
- convert a python script into one line
- turn python code into a single line for code golf
- onelinerize a python 2 file
- compress python code into one line without semicolons
- learn how to write python one-liners with lambdas
- transform multi-line python programs into lambda expressions
When to choose
- you want to convert Python 2 scripts into a single line for fun, code golf, or constrained coding exercises
- you want a pip-installable CLI or importable module for one-lining Python code
- you want to study lambda-based tricks for emulating statements, loops, and functions
When to avoid
- you need production-quality code transformation or refactoring of Python 3 code
- you need readable, maintainable output
- you need a general-purpose Python minifier or obfuscator with performance goals
Facets
cli-tool · maturity maintenance
parser compiler developer-tools cli developer-tools programming-languages parsers python cli cross-platform code-golf python-2 code-transformation novelty lambda-calculus command-line
2 sources
- readme: https://github.com/csvoss/onelinerizer · fetched 2026-08-28 · 510831b86900
- registry_pypi: https://pypi.org/pypi/onelinerizer/json · fetched 2026-08-29 · 0af76f6e3b9d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| csvoss/onelinerizer | main | 33 |
For agents
markdown · JSON · MCP: product_card(name="csvoss/onelinerizer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem