Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adamyala/pypyjs-examples-remix

Even more pypyjs examples
https://github.com/adamyala/pypyjs-examples-remix

Last synced: 3 days ago
JSON representation

Even more pypyjs examples

Awesome Lists containing this project

README

        

# pypyjs-examples-remix

This is a repository of more pypyjs examples. It's meant to demonstrate JavaScript code functionality along with the same exact functionality in Python.

I struggled through understanding [pypyjs-examples](https://github.com/pypyjs/pypyjs-examples) so I wanted to create some simpler demos for people to learn from.

# Use

This project submodules the [pypyjs-release](https://github.com/pypyjs/pypyjs-release) repo so you don't have to build it yourself. To get this project in working order run the below commands:

```bash
git clone [email protected]:adamyala/pypyjs-examples-remix.git
cd pypyjs-examples-remix
git submodule update --init --recursive
```

Once the repo is cloned and the submodules are initialized, run one of the two below commmands to serve the files:

```bash
# python2
python -m SimpleHTTPServer
# python3
python -m http.server
```

Once the server is running visit http://127.0.0.1:8000/, browse to and click on the file you wish to load.

## Running pypyjs examples

Loading pypyjs into a browser takes a bit of time (usually less than a second) and is a highly experimental process. When running the pypyjs examples in this repository it is recommended that you keep your browser's console open to look for errors.

Internet Explorer is not supported.

# Contents

Below is a description of each file.



File
Description




button/button-js.html
The most basic jQuery example in this repo


button/button-py.html
The most basic pypyjs wrapped jQuery example in this repo


colorful/colorful-js.html
A pure JavaScript example borrowed from this codepen


colorful/colorful-py.html
The colorful-js example rewritten in pypyjs and python