Skip to main content

Webpack integration layer for Python.

Project description

https://img.shields.io/travis/inveniosoftware/pywebpack.svg https://img.shields.io/coveralls/inveniosoftware/pywebpack.svg https://img.shields.io/github/tag/inveniosoftware/pywebpack.svg https://img.shields.io/pypi/dm/pywebpack.svg https://img.shields.io/github/license/inveniosoftware/pywebpack.svg

Webpack integration layer for Python.

Using Flask? Check out Flask-WebpackExt.

PyWebpack makes it easy to interface with your existing Webpack project and does not try to manage Webpack for you. PyWebpack does this via:

  • Manifests: You tell Webpack to write a manifest.json using plugins such as webpack-manifest-plugin, webpack-yam-plugin or webpack-bundle-tracker. PyWebpack reads the manifest and makes your compiled assets available to your template engine such as Jinja.

  • API for NPM: PyWebpack provides an API so that e.g. project.install() will run npm install in your Webpack project.

Optionally you can use PyWebpack to also:

  • Inject configuration: PyWebpack will write a config.json into your webpack project, which you can import in your webpack configuration. You can define what goes in the config e.g. let webpack know about output paths or dynamic entry points.

  • Collect bundles: If your Webpack project is spread over multiple Python packages, PyWebpack can help you dynamically assemble the files into a Webpack project. This is useful if you don’t know until build time which packages are installed.

Further documentation is available on https://pywebpack.readthedocs.io/

Changes

Version 1.0.3 (released 2020-05-12)

  • Fixes issue with incorrect parsing of webpack-bundle-tracker manifests.

Version 1.0.2 (released 2020-04-28)

  • Adds a depth parameter to LinkStorage to allow for higher level symlinking on the folder-level.

Version 1.0.1 (released 2020-02-14)

  • Adds support for having bundles that are callables in bundles_from_entry_point.

Version 1.0.0 (released 2018-10-29)

  • Adds documentation and extra tests.

Version 0.1.2 (released 2017-11-06)

  • Fix invalid closing of </link> tag.

Version 0.1.1 (released 2017-05-29)

  • Fix problem with package.json not being updated.

  • Fix merging of package.json dependencies.

  • Increase test coverage.

Version 0.1.0 (released 2017-05-16)

  • Initial public release.

Project details


Download files

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

Source Distribution

pywebpack-1.0.3.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

pywebpack-1.0.3-py2.py3-none-any.whl (15.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pywebpack-1.0.3.tar.gz.

File metadata

  • Download URL: pywebpack-1.0.3.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for pywebpack-1.0.3.tar.gz
Algorithm Hash digest
SHA256 38d99a26e11681ed3ee1d81632b2c011eb468491e98f02a6efd61bce2e75c1fc
MD5 aa6a06e49c76612f87b7fb7151505499
BLAKE2b-256 67dfe405288b3018ee0870981f99afacf3f6266c016ad2b6da303a2eeecf0ecb

See more details on using hashes here.

Provenance

File details

Details for the file pywebpack-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: pywebpack-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for pywebpack-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eb818bfe4c93f0da80e07d6ad2e6d9b5eea51a805f8d1902a9b093f39986c464
MD5 262475c727eb304d7b01a4b8ede8e5f9
BLAKE2b-256 3d53b0e12c8cfc65a7a24a84672f182e5755ef424af73992af907b93f113a4da

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page