Beer.py

A Beer implementation in Python.


Keywords
beer, py, python, library
License
MIT
Install
pip install Beer.py==0.2.0

Documentation

Build Status PyPI

Beer.py

A Beer implementation in Python.

Prerequisites

  • Python 2.6 or higher

Installation

The easiest way to install Beer.py is to use our PyPI package:

for Python 2:

pip install Beer.py

or for Python 3:

pip3 install Beer.py

You can also build Beer.py yourself by executing setup.py.

Usage

Simple example:

#!/usr/bin/python
# -*- coding: utf-8 -*-

import beer

if __name__ == "__main__":
    b = beer.Beer

    serialized = b.serialize_beer("Hi");
    // Value: "µµµµµµµµµµµµµµµµ∫BEERBEERBEERBEERBEERBEERBEERBEER∫"

    deserialized = b.deserialize_beer("µµµµµµµµµµµµµµµµ∫BEERBEERBEERBEERBEERBEERBEERBEER∫");
    // Value: "Hi"