Skip to main content

packages your Python packages/files into a brython_modules.js

Project description

https://api.travis-ci.org/chfw/brython-pack.svg https://codecov.io/github/chfw/brython-pack/coverage.png

Introduction

brython-pack packages your Python packages/files into a brython_modules.js. The output is a brython_modules.js in your current directory. It is used to pack up pyecharts.js

Installation

You can install brython-pack via pip:

$ pip install brython-pack

or clone it and install it:

$ git clone https://github.com/chfw/brython-pack.git
$ cd brython-pack
$ python setup.py install

Limitation

It cannot collect the package dependency on built-in python modules (the dependencies on brython_stdlib.js) for you. You need to figure it out by yourself and save it in a requirements.txt file. Once you will have the dependency list, the packing step is straight foward.

Usage

usage:

    bp brython_stdlib.js requirements.txt your packages and file list

where:

    brython_stdlib.js: should be the accessible path to the lib file.
    requirements.txt: is the hard coded and manually worked out dependencies
                      on brython_stdlib.txt. Not the pip requirements.txt.
    your packages file list: could be given as space separated arguments.

examples:

    bp dependencies/brython_stdlib.js requirements.txt pyecharts editor.py

If you are wondering what the requirements.txt file look like, here is an example requirement.txt

Change log

0.0.3 - 13/07/2018

Added

  1. filtering out lengthy docstring that starts with ‘r”“”’
  2. #1: cope with unicode in python files

0.0.2 - 23/10/2017

Removed

  1. pyexcel #105, remove gease from setup_requires, introduced by 0.1.3.

0.0.1 - 19/10/2017

First commit

  1. being able to create an optimal brython_modules.js

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
brython_pack-0.0.3-py2.py3-none-any.whl (7.7 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jul 13, 2018
brython-pack-0.0.3.tar.gz (5.8 kB) Copy SHA256 hash SHA256 Source None Jul 13, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page