Skip to main content

Webpack integration layer for Python.

Project description

https://github.com/inveniosoftware/pywebpack/workflows/CI/badge.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/

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-2.3.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywebpack-2.3.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywebpack-2.3.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pywebpack-2.3.0.tar.gz
Algorithm Hash digest
SHA256 5a039d9b5a66a79fe3132542a7e73714dc298a0eb95ab08046159e22f8fbb8e8
MD5 ef5317137a91ae5f4164f072638005fb
BLAKE2b-256 4195145850985488409fb8804313c1ec96a24b59bebaa688251aa766bf58a47e

See more details on using hashes here.

File details

Details for the file pywebpack-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: pywebpack-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pywebpack-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 178e1c733c0884a8d613089581f328ff50c0e9f39551504e3dab0048f75e1b94
MD5 46c0f3e2908c6e37181a779e3748245a
BLAKE2b-256 707a9466ce26ce4db81eef05ab5e19cd696e9a0f457fb55ee31500b7fd2890f6

See more details on using hashes here.

Supported by

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