Skip to main content

brython-pack - Pack up your python package for Brython.js

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

Metadata

Release files for brython-pack 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brython-pack 0.0.3
File Size Uploaded Provenance Actions
brython-pack-0.0.3.tar.gz 5.8 kB Without provenance Details for brython-pack-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brython-pack 0.0.3
File Interpreter ABI Platform Actions
brython_pack-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for brython_pack-0.0.3-py2.py3-none-any.whl

Total release size: 13.5 kB

Release files / brython-pack-0.0.3.tar.gz

Download URL brython-pack-0.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
42236b4bf82a2be9c8c36c5b8cd921e4aa671834e6bab11d21dedcdf0798dd5d
BLAKE2b-256 checksum
How to use checksums
1d406c2f9e500c65a971f6920c6e63515bde81b67c5f31b1c4c2c5d7b9911a3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / brython_pack-0.0.3-py2.py3-none-any.whl

Download URL brython_pack-0.0.3-py2.py3-none-any.whl
Size 7.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cf662d22c885eee48edb2afb6ea861f4e1a2b82477cc2476c013b57b669f3605
BLAKE2b-256 checksum
How to use checksums
71c8692172bb4b9b455bef151673c42907c74f5f12646965ff2f9a6fdcca7467
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for brython-pack 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page