Skip to main content

brainfuck-cli

Compile and run Brainfuck from the command line, or over HTTP on localhost:9800.

Install

pip install brainfuck-cli

Usage

brainfuck-cli                      # start the server on localhost:9800
brainfuck-cli --port 9801          # or pick another port
brainfuck-cli run hello.bf         # run a file and print its output
brainfuck-cli run hello.bf --input "abc"

Server endpoints (responses are text/plain):

curl -X POST --data-binary @hello.bf http://localhost:9800/run
curl "http://localhost:9800/run?code=%2B%2B%2B%2B%2B%2B%2B%2B%5B%3E%2B%2B%2B%2B%5D%3E%2E"
  • POST /run takes the program as the request body.
  • GET /run?code=... takes the program in the query string.
  • Add &input=... to feed text to the , command.
  • GET / prints a short usage note.

Language notes

  • 30,000 cells, each wrapping modulo 256.
  • Reading past the end of input yields 0.
  • Non-command characters are treated as comments.
  • Programs that exceed 10,000,000 steps are stopped with an error.

Development

make build      # build sdist and wheel into dist/
make upload     # twine upload dist/* (installs twine if needed)

Metadata

Release files for brainfuck-cli 0.1.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 brainfuck-cli 0.1.0
File Size Uploaded Provenance Actions
brainfuck_cli-0.1.0.tar.gz 5.1 kB Without provenance Details for brainfuck_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brainfuck-cli 0.1.0
File Interpreter ABI Platform Actions
brainfuck_cli-0.1.0-py3-none-any.whl Python 3 none any Details for brainfuck_cli-0.1.0-py3-none-any.whl

Total release size: 11.4 kB

Release files / brainfuck_cli-0.1.0.tar.gz

Download URL brainfuck_cli-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
52a06c55b39f62751734ac9a0c3045b0bfef5bb76db53bbea419d99bb0c2ac33
BLAKE2b-256 checksum
How to use checksums
3750c283665aed001a1544aed8528b969dbc6612b6f8b63f9ea59e552a55b74e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / brainfuck_cli-0.1.0-py3-none-any.whl

Download URL brainfuck_cli-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cf48d8251e86db947a5d31a81b1e665ca92c8f67b58b8869052287d55a00f72
BLAKE2b-256 checksum
How to use checksums
acc137c9f1781b5a695158c75669d260bd45e946d57853d7c4c27b9e38ab1935
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for brainfuck-cli 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

0.1.0 This release

2 release files No 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