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 /runtakes 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brainfuck_cli-0.1.1.tar.gz | 7.6 kB | Without provenance | Details for brainfuck_cli-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brainfuck_cli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for brainfuck_cli-0.1.1-py3-none-any.whl |
Total release size: 16.1 kB
Release files / brainfuck_cli-0.1.1.tar.gz
| Download URL | brainfuck_cli-0.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79461065ae72984102e93f137081965ce8ecfd0ba1ac1e2aed7cde19ec703f75
|
|
BLAKE2b-256 checksum How to use checksums |
f8db234285e449149921e040f6e5e4399648f97f674bee88e10b47eea47267ea
|
| 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.1-py3-none-any.whl
| Download URL | brainfuck_cli-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e1a06f5f7d0a64e10e6e5ecfc4547fc89ef5b2ebb02887b8db8ca2e8467964a
|
|
BLAKE2b-256 checksum How to use checksums |
9e3834c826240b599701ee4a241dc527875901cc827b2b337bc86062efa0fdb5
|
| 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.1
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.