matthewdeanmartin/whats_that_code

detect programming language of source in pure python from an ensemble of classifiers

52
/ 100
Established

This library helps developers quickly identify the programming language of a code snippet or file. You provide source code (with or without a file extension or tag), and it tells you what language it's likely written in. This is for developers who need to categorize or process code from various sources.

Available on PyPI.

Use this if you need a quick, pure-Python way to get a first approximation of a code's language without heavy machine learning dependencies.

Not ideal if you require extremely high accuracy for all samples or if you need to classify code that can already be reliably identified by its extension or tag.

code-analysis developer-tooling programming-language-detection source-code-classification software-engineering
Maintenance 10 / 25
Adoption 6 / 25
Maturity 25 / 25
Community 11 / 25

How are scores calculated?

Stars

21

Forks

3

Language

Python

License

MIT

Last pushed

Mar 09, 2026

Commits (30d)

0

Dependencies

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/matthewdeanmartin/whats_that_code"

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