A python bit my brain.
Project description
brainbite
A python bit my brain, so I sliced up the python into fine strips in retaliation.
Description
Brainfuck is widely known as an esoteric programming language. This package enables to write brainfuck-like code in python legal grammar.
This package also provides transpilation function from bf code to python one.
Demo
Though this code is strange, outputs "Hello World!" on stdout correctly.
from brainbite import Biter
_ = Biter()[::...][::...][::...][::...][::...][::...][::...][::...][:...]
_ = _[:...:...][::...][::...][::...][::...][:...][:...:...][::...][::...]
_ = _[:...:...][::...][::...][::...][:...:...][::...][::...][::...]
_ = _[:...:...][::...][...:...][...:...][...:...][...:...][...:][...::...]
_ = _[:...:...][::...][:...:...][::...][:...:...][...:][:...:...][:...:...]
_ = _[::...][:...][...:...][...::...][...:...][...:][...::...][:...:...]
_ = _[:...:...][:][:...:...][...:][...:][...:][:][::...][::...][::...]
_ = _[::...][::...][::...][::...][:][:][::...][::...][::...][:][:...:...]
_ = _[:...:...][:][...:...][...:][:][...:...][:][::...][::...][::...][:]
_ = _[...:][...:][...:][...:][...:][...:][:][...:][...:][...:][...:][...:]
_ = _[...:][...:][...:][:][:...:...][:...:...][::...][:][:...:...][::...]
_ = _[::...][:]()
To get this code, run below command.
$ python -m brainbite sample hello_world
Transpile
This module also works as transpiler.
$ python -m brainbite trans fizzbuzz.bf
For more information, view $ python -m brainbite --help.
Install
This module is registered at PyPI. PyPI - brainbite
$ pip install brainbite
License
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brainbite-1.0.2.tar.gz.
File metadata
- Download URL: brainbite-1.0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ed6521108206020ac1581f66dd96289a1354db1c0720f0109ea84cdca5c04bc
|
|
| MD5 |
9b33df70c0b1df565e4d13a10c9a67d2
|
|
| BLAKE2b-256 |
138db8c3ec325d1c599a4d9722d2a6c76dd575e34c40bdc16dfa61373cbd25dc
|
File details
Details for the file brainbite-1.0.2-py3-none-any.whl.
File metadata
- Download URL: brainbite-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24d7fc58e3f6933d2214715ac37df9777093dcb5abec67c3dbdb62edf2b1ea5f
|
|
| MD5 |
ed5713c408eb946ee0572266a5dde181
|
|
| BLAKE2b-256 |
be09094478095affc67344a24adb7f3b9166c52df229b8b52d3f32f0e8b9a0fc
|