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 define what goes in the config, but you can use to let e.g. Webpack know about output paths or dynamic entry points.

  • Collect bundles: If you 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 runtime which packages are installed.

Changes

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

Uploaded Source

Built Distribution

pywebpack-0.1.0-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pywebpack-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pywebpack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1048c4476e19ad7ddbf2bf271d0d8dff27be34d0bbd73e9aa0b2a0d642b9da1
MD5 238cf1ed511aaf84aeda67fe67d4d597
BLAKE2b-256 7697342f21dae85b6932b0fbcc71b527878d9ff6f96ee03a7a22ef5030f3911b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pywebpack-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9703baf88bcce904f0bc813091fe084e0e41f9d178c4b4760f6b3dd9a94fe38a
MD5 8a75a5c0176bc23368ac2031a6725c91
BLAKE2b-256 bae503d69996160d153324a60142cad1274efd978eb2553d19aa231496eac7e2

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