Guesslang documentation
Guesslang detects the programming language of a given source code. It supports more than 50 programming languages and detects the correct programming language with more than 90% accuracy.
Guesslang is an open source deep learning software that have been trained with over a million source code files.
You can use Guesslang as a command line interface tool or as a Python module:
from guesslang import Guess
guess = Guess()
# Guess the language from code
language = guess.language_name("""
% Quick sort
-module (recursion).
-export ([qsort/1]).
qsort([]) -> [];
qsort([Pivot|T]) ->
qsort([X || X <- T, X < Pivot])
++ [Pivot] ++
qsort([X || X <- T, X >= Pivot]).
""")
print(language) # --> Erlang
Guesslang supports 54 of the world’s most popular programming languages:
Assembly |
Batchfile |
C |
C# |
C++ |
Clojure |
CMake |
COBOL |
CoffeeScript |
CSS |
CSV |
Dart |
DM |
Dockerfile |
Elixir |
Erlang |
Fortran |
Go |
Groovy |
Haskell |
HTML |
INI |
Java |
JavaScript |
JSON |
Julia |
Kotlin |
Lisp |
Lua |
Makefile |
Markdown |
Matlab |
Objective-C |
OCaml |
Pascal |
Perl |
PHP |
PowerShell |
Prolog |
Python |
R |
Ruby |
Rust |
Scala |
Shell |
SQL |
Swift |
TeX |
TOML |
TypeScript |
Verilog |
Visual Basic |
XML |
YAML |
Full documentation at https://guesslang.readthedocs.io/en/latest/
Metadata
Release files for guesslang 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| guesslang-2.2.1.tar.gz | 2.6 MB | Without provenance | Details for guesslang-2.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| guesslang-2.2.1-py3-none-any.whl | Python 3 | none | any | Details for guesslang-2.2.1-py3-none-any.whl |
Total release size: 5.1 MB
Release files / guesslang-2.2.1.tar.gz
| Download URL | guesslang-2.2.1.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
599e9ac67dfec626b9ce98a1aae47d4f097cda94ec0fa04c0d24f4ab90013d99
|
|
BLAKE2b-256 checksum How to use checksums |
74c13fca0390f4cc56398043f5a914e958d6e6e98eaa4c7ff24529df07cec149
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / guesslang-2.2.1-py3-none-any.whl
| Download URL | guesslang-2.2.1-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36bd12130515ee0e637f7255340ba92ea919d53423743f4c1b0c73727a5499cb
|
|
BLAKE2b-256 checksum How to use checksums |
0c826296aa3e9be68c8766c9a333a6cc355c18e605cb761a5dcac251fa3c57e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for guesslang 2.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.