akshatgoel / batavia

A Javascript implementation of the Python virtual machine.

Home Page:http://pybee.org/batavia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http://pybee.org/project/projects/bridges/batavia/batavia.png

Batavia

https://travis-ci.org/pybee/batavia.svg?branch=master

Batavia is an early alpha project. If it breaks, you get to keep all the shiny pieces.

Batavia is an implementation of the Python virtual machine, written in Javascript. With Batavia, you can run Python bytecode in your browser.

It honors Python 3.4.4+ syntax and conventions, and let's you reference objects and classes defined natively in JavaScript.

Quick Start

Prerequisites

Batavia requires a Python 3.4 installation, and a virtualenv to run it all in.

Check the Setting up your environment for configuration help.

Downloading and Installing

  1. Clone the code repos:

    $ mkdir pybee
    $ cd pybee
    $ git clone https://github.com/pybee/batavia
    $ git clone https://github.com/pybee/ouroboros
    
  2. Setup a virtualenv (for other environments, see Getting Started):

    $ virtualenv venv
    $ . venv/bin/activate
    $ cd batavia
    $ pip install -e .
    
  3. Run the make script to generate the combined Batavia JavaScript files:

    $ make
    

For more detailed setup instructions, see the Getting Started tutorial

Running Batavia in the browser

After you have setup the local installation of Batavia, you can now run Python in the browser:

$ cd testserver
$ pip install -r requirements.txt
$ ./manage.py runserver

then open a web browser at http://localhost:8080

For more detailed instructions, see the Python In The Browser guide.

Documentation

Documentation for Batavia can be found on on Read The Docs, including:

Contributing

If you'd like to contribute to Batavia development, our guide for first time contributors will help you get started.

If you experience problems with Batavia, log them on GitHub.

Community

Batavia is part of the BeeWare suite. You can talk to the community through:

We foster a welcoming and respectful community as described in our BeeWare Community Code of Conduct.

About

A Javascript implementation of the Python virtual machine.

http://pybee.org/batavia

License:Other


Languages

Language:JavaScript 56.9%Language:Python 40.7%Language:HTML 1.9%Language:Makefile 0.4%Language:CSS 0.1%