Skip to main content

Esolang Interpreters

Python CI PyPI License: GPL v3

Interpreters and Boolean generators for 81 esoteric languages: 78 text and 3 raster.

generate builds a truth-table program; run executes it on one input row.

Concepts

The task is uniform across languages: compute a Boolean function from its truth table, then verify the answer by running the generated program. generate turns a table into a program; encode_inputs builds the stdin one input row needs; run executes it; read_answer returns the 0/1 bit. describe reports how a language takes its input and where its answer lands. Languages that embed their inputs in the source return a template to fill with instantiate instead.

Quickstart

A table lists outputs for inputs 00, 01, 10, 11 in order, so 0110 is XOR:

pip install esolangs
esolangs generate brainfuck 0110 > xor.bf
for i in 00 01 10 11; do printf $i | esolangs run --timeout 5 brainfuck xor.bf; echo " <- $i"; done
# 0 <- 00
# 1 <- 01
# 1 <- 10
# 0 <- 11

Start with the CLI or Python API. The usage guide covers inputs, templates, answers, and debugging. Limitations records contracts; the roadmap tracks open work.

Command line

python -m pip install esolangs

esolangs --help
esolangs list
esolangs generate brainfuck 0110 > bf.txt
printf '01' | esolangs debug --steps 20 --watch-cell 0 brainfuck bf.txt
  • Suffolk:

    esolangs generate Suffolk 0110 > program.txt
    printf '01' | esolangs run Suffolk program.txt
    
  • Polynomial needs the optional mathematics extra: pip install 'esolangs[math]'.

PNG loading and saving need pip install 'esolangs[image]'; in-memory raster programs need neither extra.

Python API

import esolangs

program = esolangs.generate("brainfuck", "0110")
stdin = esolangs.encode_inputs("brainfuck", [0, 1])
output = esolangs.run("brainfuck", program, stdin=stdin, max_steps=10_000)
assert esolangs.read_answer("brainfuck", output) == "1"

Use max_steps to bound commands, or timeout to bound wall time. On Windows or worker threads, use isolated=True, timeout=5; isolation also supports max_output and Linux-only max_memory limits.

  • Suffolk source may run as brainfuck with a wrong answer.

Use encode_inputs to build stdin.

Examples

esolangs generate FALSE 0110 emits 22 characters computing XOR:

^1&$[^'0=_.]?0=[^1&.]?

Feeding it the two adjacent input characters prints their XOR.

Ready-to-run programs for each of the 78 languages with a boolean generator live in each language's directory.

Implemented languages

Familiar languages include:

See the complete language catalog.

Generators

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. 78 of the languages have such a generator, some covering only a documented subset of tables.

esolangs list --details marks generators (gen), templates (tmpl), and committed examples (ex). See the usage guide for input conventions and benchmarking.

Contributing

See contributing for setup, verification and the execution path. The project is GPL v3; see LICENSE.

Metadata

Release files for esolangs 0.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esolangs 0.14.0
File Size Uploaded
esolangs-0.14.0.tar.gz 1.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for esolangs 0.14.0
File Interpreter ABI Platform
esolangs-0.14.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / esolangs-0.14.0.tar.gz

Download URL esolangs-0.14.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
0277e1d20554ca9e5bddcd6194bc461e3ca4bb274a0adbbed3b6a2a8f02d7aa7
BLAKE2b-256 checksum
How to use checksums
3ae7d935e7526b134cf3e968cd7a3cf2efd125400fabf24fa0e9f5cdf9fadf69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 15, 2026.

Transparency log

Release files / esolangs-0.14.0-py3-none-any.whl

Download URL esolangs-0.14.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
441f4cdf57de3c976e72d406fac8da03cbab333a7ff3b8037aad4afb5f4e90f3
BLAKE2b-256 checksum
How to use checksums
46fedb4a519949a4a6f5c98c47643cf4663f720499ad73a1d44bd0bdeb2b583a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.0

2 release files

0.15.0

2 release files

This release

0.14.0 This release

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.1

2 release files

0.9.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page