Skip to main content

Esolang Interpreters

Python CI PyPI License: GPL v3

Interpreters and Boolean generators for 113 esoteric languages: 111 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
  • list shows every language, well-known ones first; list --details marks which have a generator (gen), a template (tmpl), committed examples (ex) and at least 50 wiki backlinks (known).
  • 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"
Task Call
Compute a Boolean answer program.evaluate(bits).answer
Get runnable source and stdin for a row row = program.bind(bits), then row.program and row.stdin
Execute supplied source esolangs.run(language, source, stdin=stdin).unwrap()

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, and max_memory on 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). Artifacts generated or loaded through a custom catalog use that catalog for .evaluate(bits). Portable JSON takes its catalog from the loader. The migration guide covers the 2.5 execution and planning changes.

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 110 languages with a boolean generator live in each language's directory.

Languages

The 24 best known, by esolangs wiki backlinks: ///, Befunge, Bitwise Cyclic Tag, Boolfuck, Chicken, Cyclic tag, Deadfish, FALSE, FRACTRAN, Fish, HQ9+, INTERCAL, Malbolge, Nope., Piet, Shakespeare, Smallfuck, Subleq, Thue, Unary, Underload, Unlambda, Whitespace and brainfuck.

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. 110 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.5.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 2.5.0
File Size Uploaded Provenance Actions
esolangs-2.5.0.tar.gz 1.5 MB With provenance Details for esolangs-2.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 3.3 MB

Release files / esolangs-2.5.0.tar.gz

Download URL esolangs-2.5.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b1337ed50492f8eb0609ba50366b5061270bb4944660c5bedb8677fb03c43f05
BLAKE2b-256 checksum
How to use checksums
c3dd6907a0ffdbd2e96e10c5350cb4a137dc46266a515f8e6a1863697f1aa4cc
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 28, 2026.

Transparency log

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

Download URL esolangs-2.5.0-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b023ad9acee2814f83da72eb33968fb8527149f850a7e434fa7701c9d9a81aca
BLAKE2b-256 checksum
How to use checksums
ad583ba759f423faf75c3504751d347f0b5ffa9284a3e09da2b64d04e9c0c400
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 28, 2026.

Transparency log

Security for esolangs 2.5.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.

Select from 2 files

Attestation for esolangs-2.5.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 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

2.5.0 This release

2 release files Full provenance

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