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
Release files for brainbite 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brainbite-1.0.2.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brainbite-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / brainbite-1.0.2.tar.gz
| Download URL | brainbite-1.0.2.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ed6521108206020ac1581f66dd96289a1354db1c0720f0109ea84cdca5c04bc
|
|
BLAKE2b-256 checksum How to use checksums |
138db8c3ec325d1c599a4d9722d2a6c76dd575e34c40bdc16dfa61373cbd25dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / brainbite-1.0.2-py3-none-any.whl
| Download URL | brainbite-1.0.2-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24d7fc58e3f6933d2214715ac37df9777093dcb5abec67c3dbdb62edf2b1ea5f
|
|
BLAKE2b-256 checksum How to use checksums |
be09094478095affc67344a24adb7f3b9166c52df229b8b52d3f32f0e8b9a0fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|