Skip to main content

An object-oriented highly flexible brainfuck interpreter.

Project description


An object-oriented highly flexible brainfuck interpreter.


Even though there are probably countless of other options, I've made this because I found other projects were too high-level for me and didn't provide much control over the interpreter. This module, however, allows the developer to access, modify and control every piece of how the brainfuck is evaluated, making this program superior to other projects.

It was also a fun project to work on in general.


  • Object-oriented
  • Easy to use
  • Logging integration
  • Allows streaming of brainfuck code
  • Manual input/output stream control
  • Manual interpreter stepping


A basic example which should suit most usages of this library:

import brainfuck

bf = '+[----->+++<]>+.---.+++++++..+++.[--->+<]>----.'
print(brainfuck.evaluate(bf))  # hello!

For examples featuring more control over the interpreter, check out the examples directory.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for brainfuck-interpreter, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size brainfuck-interpreter-1.0.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page