Giter VIP home page Giter VIP logo

batavia's Introduction

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

Batavia

py-version pypi-version pypi-status license build-status gitter

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 allows you to reference objects and classes defined natively in JavaScript.

Quick Start

Prerequisites

Batavia requires a Python 3.4 or Python 3.5 installation, and a virtualenv to run it all in. Python 3.6 is not yet supported.

You also need to have a recent install of Node.js (from the “stable” 6.X series), and a current version of npm. If your version of npm is outdated, you can update it using the command:

$ npm install npm@latest -g

Check the Setting up your environment for configuration help.

Downloading and Installing

1. Clone the code repositories

$ mkdir pybee
$ cd pybee
$ git clone https://github.com/pybee/batavia
  1. Setup a virtualenv:

(for other environments, see Getting Started).

Linux/Unix/Mac

Check your python3 version first. If it's pointing to version 3.6, replace $(which python3) in the virtualenv command below with the path to your Python 3.4 or 3.5 installation.

$ python3 --version
$ virtualenv --python=$(which python3) venv
$ . venv/bin/activate
$ cd batavia
$ pip install -e .

Windows

Type in the following commands in your terminal

> virtualenv venv
> venv\Scripts\activate
> cd batavia
> pip install -e .
  1. Install Node.js.

You must have a recent version of Node; we do our testing using v6.9.1. Once you've installed Node, you can use it to install the JavaScript dependencies and compile the Batavia library:

$ npm install
  1. Compile the Batavia library and bundle it’s dependencies

Run the follwing command in the terminal

$ npm run build

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:8000

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.

batavia's People

Contributors

abonie avatar adrianliaw avatar barmvicente avatar candeira avatar fbidu avatar fmoor avatar freakboy3742 avatar glasnt avatar graph1994 avatar idanmel avatar ioo11 avatar jcronyn avatar jennahight avatar jstoebel avatar kartikadur avatar kennethlove avatar kjcole avatar lee-w avatar martini97 avatar misterrios avatar ondrejvicar avatar ramiroluz avatar rixx avatar sethmittag avatar swenson avatar tfors avatar thatandromeda avatar timb07 avatar vector919 avatar vojtechjelinek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.