This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description

A Python package that provides a Brainfuck interpreter and code generator modules. It also provides command line utility.

Interpreting a Brainfuck code file is as easy as:

$ pybf -i code.bf

Or from standard input:

$ echo "+++++++++++." | pybf -i -

To generate Brainfuck code that will reproduce any content you supply:

$ echo "hello world" | pybf -g -

Installation

To install it using pip all you have to do is:

$ pip install pybf

To install it using the provided setup.py file, you’ll need to install distutils first and then issue the following command:

$ python setup.py install

Usage details

The interpreter by default will reserve 30000 1-byte cells but you can change that by supplying the -s with the desired value.

The Brainfuck code generator by default reserves 16 cells, memory size here is a trade-off between optimizing (for size) between big and small input as with more reserved cells the bigger Brainfuck (loop) initialization code will be and less Brainfuck instructions to reproduce 1 byte. The opposite goes for increasing the number of reserved cells as the initialization code will be smaller but there will be more instructions to reproduce 1 byte.

Release History

Release History

0.2.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PyBF-0.2.1.tar.gz (26.6 kB) Copy SHA256 Checksum SHA256 Source Mar 31, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting