Skip to main content

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

MIT

Author

LouiS0616

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainbite-1.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

brainbite-1.0.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

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

Hashes for brainbite-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9ed6521108206020ac1581f66dd96289a1354db1c0720f0109ea84cdca5c04bc
MD5 9b33df70c0b1df565e4d13a10c9a67d2
BLAKE2b-256 138db8c3ec325d1c599a4d9722d2a6c76dd575e34c40bdc16dfa61373cbd25dc

See more details on using hashes here.

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

Hashes for brainbite-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 24d7fc58e3f6933d2214715ac37df9777093dcb5abec67c3dbdb62edf2b1ea5f
MD5 ed5713c408eb946ee0572266a5dde181
BLAKE2b-256 be09094478095affc67344a24adb7f3b9166c52df229b8b52d3f32f0e8b9a0fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page