packages your Python packages/files into a brython_modules.js
Project description
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
filtering out lengthy docstring that starts with ‘r”””’
#1: cope with unicode in python files
0.0.2 - 23/10/2017
Removed
pyexcel #105, remove gease from setup_requires, introduced by 0.1.3.
0.0.1 - 19/10/2017
First commit
being able to create an optimal brython_modules.js
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brython-pack-0.0.3.tar.gz.
File metadata
- Download URL: brython-pack-0.0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42236b4bf82a2be9c8c36c5b8cd921e4aa671834e6bab11d21dedcdf0798dd5d
|
|
| MD5 |
3aabaf32378d665b80594f46f247533a
|
|
| BLAKE2b-256 |
1d406c2f9e500c65a971f6920c6e63515bde81b67c5f31b1c4c2c5d7b9911a3b
|
File details
Details for the file brython_pack-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: brython_pack-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf662d22c885eee48edb2afb6ea861f4e1a2b82477cc2476c013b57b669f3605
|
|
| MD5 |
2cf0b56fe4b3f566f1dd07ae3274a29b
|
|
| BLAKE2b-256 |
71c8692172bb4b9b455bef151673c42907c74f5f12646965ff2f9a6fdcca7467
|