pyecharts.js

1.4.27 • Public • Published

pyecharts.js

npm version

pyecharts.js is a Brython port of pyecharts to generate echarts directly in modern browsers.

It is a fun project to play with Brython, which let you run pure python code in browsers.

Installation

npm install --save pyecharts

Demo

  1. Visit https://chfw.github.io/pyecharts/
  2. Paste your sample codes into the editor or write your own code from scratch
  3. Press 'Run'

Offline demo

  1. Clone it
  2. Run a static http server
  3. Open a browser and visit http://localhost:8000

Here are all the commands:

$ git clone https://github.com/chfw/pyecharts/
$ cd pyecharts
$ python -m http.server # python 2, please use python -m SimpleHTTPServer

Then you can do paste and run.

Development

You will need python 3 for development and can develop it like any other python packages. Once you are happy with your changes, here is the command for packaging:

make

The hard work is to find out the relevant dependency for packaging and list them in bp-requirements.txt. The current practices is trial the demo in your browser and see which standard module are missing. Place its name in bp-requirements.txt. Repeat it until you get zero import errors.

Baselines

  1. pyecharts v0.2.6
  2. Brython 3.3.2

License

pyecharts.js will be released under the MIT License. See LICENSE for more information.

Readme

Keywords

Package Sidebar

Install

npm i pyecharts.js

Weekly Downloads

0

Version

1.4.27

License

MIT

Last publish

Collaborators

  • chfw