Esolang Interpreters
Interpreters and Boolean generators for 132 esoteric languages: 130 text and 2 raster.
Give it a truth table and a language; it writes a program in that language that computes the table, and runs it for you.
Try it
pip install esolangs
esolangs generate brainfuck 0110 > xor.bf
for i in 00 01 10 11; do printf $i | esolangs run --execution-timeout 5 brainfuck xor.bf; echo " <- $i"; done
# 0 <- 00
# 1 <- 01
# 1 <- 10
# 0 <- 11
0110 is a truth table: the outputs for inputs 00, 01, 10, 11, in that
order. This one is XOR. generate wrote a brainfuck program for it, and
run fed it one input row at a time.
Install
| You want | Install |
|---|---|
| Text programs, and raster programs kept in memory | pip install esolangs |
| Load or save PNG programs (image-based languages) | pip install 'esolangs[image]' |
Image-based programs built in memory need no extra.
Command line
esolangs --help
esolangs list
esolangs list --input-shape char_stream --answer-mode output
esolangs list --inputs 8 --details
esolangs generate Suffolk 0110 > program.txt
printf '01' | esolangs run Suffolk program.txt
listshows every language;list --detailsmarks which have a generator (gen), a template (tmpl) and committed examples (ex).- Run a program under its own language. Suffolk programs look like brainfuck, but brainfuck rejects or misreads them.
Python
import esolangs
program = esolangs.generate("brainfuck", "0110")
row = program.evaluate([0, 1], limits=esolangs.ExecutionLimits(max_steps=10_000))
assert row.answer == "1"
| Call | Does |
|---|---|
generate |
Returns a program artifact or input template for a truth table. |
encode_inputs |
Builds the stdin for one input row; each language reads input its own way. |
run |
Returns output, input consumption, and completion evidence. A str is source; pass a Path to run a file. |
read_answer |
Pulls the 0/1 answer out of the output. |
describe |
Says how a language takes input and where its answer lands. |
instantiate |
Fills a template: some languages put inputs in the source, so generate returns a template instead. |
Bound a run with limits=esolangs.ExecutionLimits(...):
max_steps: a command count.execution_timeout: wall time for reading the program and stdin, and for execution, enforced in a worker on all platforms.max_output, andmax_memoryon Linux: each selects isolation.
evaluate handles stdin encoding, template binding, and answer extraction.
The row includes an execution observation and, for termination answers,
a halt or divergence proof. A deadline raises ExecutionTimeoutError; max_steps, max_output or max_memory raises ExecutionCapError. Both are ExecutionBudgetErrors.
Generated artifacts expose .source and templates expose .fill(bits).
For a custom catalog, use Language.evaluate(artifact, bits).
The 2.0 migration guide covers the changed return
types and migrating 1.x source/output callers.
The usage guide covers input, templates, answers, debugging and benchmarking.
Examples
esolangs generate 'bit~' 0110 emits 11 characters computing XOR:
))>>~>~<<<(
Feeding it the two adjacent input characters prints their XOR.
Ready-to-run programs for each of the 129 languages with a boolean generator live in each language's directory.
Languages
Familiar ones include brainfuck, Befunge, Piet, INTERCAL and Malbolge. The catalog lists all of them.
The truth table is a binary string of length 2**n, most-significant input
first; its length implies n, so it isn't passed separately. 129 of the
languages have such a generator, some covering only a documented subset of
tables.
Limitations lists those subsets and other known limits; the roadmap tracks open work.
Contributing
See CONTRIBUTING for setup and checks. Licensed GPL v3; see LICENSE.
Metadata
Release files for esolangs 2.3.0
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 |
|---|---|---|---|---|
| esolangs-2.3.0.tar.gz | 1.6 MB | With provenance | Details for esolangs-2.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| esolangs-2.3.0-py3-none-any.whl | Python 3 | none | any | Details for esolangs-2.3.0-py3-none-any.whl |
Total release size: 3.6 MB
Release files / esolangs-2.3.0.tar.gz
| Download URL | esolangs-2.3.0.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f388ee83352d983e4fbc1e0e860b20c77dffdeeda0dd38c6984c61539014aa6
|
|
BLAKE2b-256 checksum How to use checksums |
f011e01229db01f29f2c4dc6884de089fb6ddb005408d71909152281b2078362
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / esolangs-2.3.0-py3-none-any.whl
| Download URL | esolangs-2.3.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7512a63be07e81401d418f83aa0a230602acd9e2170585d55146a4ed98862e66
|
|
BLAKE2b-256 checksum How to use checksums |
d2ab1bb498607d7a55544bdec347448be1d66ea519844702119a4ffa7b74d258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for esolangs 2.3.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for esolangs-2.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA 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.