{"id":27616,"library":"bfi","title":"bfi - Brainfuck Interpreter","description":"A fast optimizing Brainfuck interpreter in pure Python. Current version 1.1.1, released under MIT license. Development appears stable with infrequent releases.","status":"active","version":"1.1.1","language":"python","source_language":"en","source_url":"https://github.com/eriknyquist/bfi","tags":["brainfuck","interpreter","esolang"],"install":[{"cmd":"pip install bfi","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Common misspelling; correct function is 'interpret' not 'interpreter'","wrong":"from bfi import interpreter","symbol":"interpret","correct":"from bfi import interpret"},{"note":"bfi is a single module; do not import from submodule 'bfi.bfi'","wrong":"from bfi.bfi import execute","symbol":"execute","correct":"from bfi import execute"}],"quickstart":{"code":"from bfi import interpret\n\n# Simple Brainfuck program that prints 'Hello'\nprogram = \"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.\"\noutput = interpret(program)\nprint(output)","lang":"python","description":"Run a Brainfuck program using the 'interpret' function, which returns output as a string."},"warnings":[{"fix":"Remove the time_limit argument; use a different approach (e.g., signal) to limit execution time.","message":"In v1.1.0, the 'time_limit' argument was removed from bfi.execute. Calling execute with time_limit will raise an error.","severity":"breaking","affected_versions":">=1.1.0"},{"fix":"Run 'python -m bfi' instead of calling the script directly.","message":"The 'bin/bfi' script was removed in v1.1.0. Use 'python -m bfi' instead.","severity":"deprecated","affected_versions":">=1.1.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'from bfi import interpret' (module is bfi, not bfi.bfi).","cause":"Incorrect import path (e.g., from bfi.bfi import interpret).","error":"ModuleNotFoundError: No module named 'bfi.bfi'"},{"fix":"Check spelling: 'interpret' not 'interpreter'. Update to latest version: pip install --upgrade bfi.","cause":"Typo in function name or old version (<1.0.3) may lack the function.","error":"AttributeError: module 'bfi' has no attribute 'interpret'"},{"fix":"Remove time_limit argument; use external timeout mechanism.","cause":"Using time_limit argument which was removed in v1.1.0.","error":"TypeError: execute() got an unexpected keyword argument 'time_limit'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}