Skip to main content

Esolang Interpreters

Python CI PyPI License: GPL v3

Interpreters and Boolean generators for 88 esoteric languages: 86 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 --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
Everything except the two below pip install esolangs
Polynomial pip install 'esolangs[math]'
Load or save PNG programs (image-based languages) pip install 'esolangs[image]'

Image-based programs built in memory need neither extra.

Command line

esolangs --help
esolangs list
esolangs generate Suffolk 0110 > program.txt
printf '01' | esolangs run Suffolk program.txt
printf '01' | esolangs debug --steps 20 --watch-cell 0 brainfuck xor.bf
  • list shows every language; list --details marks which have a generator (gen), a template (tmpl) and committed examples (ex).
  • debug steps through a program and watches memory.
  • 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")
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"
Call Does
generate Turns a truth table into a program.
encode_inputs Builds the stdin for one input row; each language reads input its own way.
run Runs a program.
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:

  • max_steps: a command count.
  • timeout: wall time. On Windows or in a worker thread, pass isolated=True, timeout=5.
  • max_output, and max_memory on Linux: need isolated=True.

The usage guide covers input, templates, answers, debugging and benchmarking.

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 85 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. 85 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 0.15.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.15.0
File Size Uploaded
esolangs-0.15.0.tar.gz 1.1 MB Details

Built distribution (wheel)

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

Total release size: 2.3 MB

Release files / esolangs-0.15.0.tar.gz

Download URL esolangs-0.15.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
dc2b1042bb48eba1bae48442b817047e74ed5f3e7fc0962c42d13065c87ed32d
BLAKE2b-256 checksum
How to use checksums
52058bf755fb71bd7b6915d45965fc864882c7163e42e8163d08cf0d374fd8d4
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 16, 2026.

Transparency log

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

Download URL esolangs-0.15.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b4cfe12685680917c5b8df20ca7f165583e32a55987f5643d62852e96cd85621
BLAKE2b-256 checksum
How to use checksums
af0d5abe2296e61b034440350e5cabae8c5a2e3d05e889816d14f4cd91fbc3f7
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 16, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.0

2 release files

This release

0.15.0 This release

2 release files

0.14.0

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