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

Uploaded Source

Built Distribution

pywebpack-0.1.1-py2.py3-none-any.whl (11.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pywebpack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5a299699d9d6ded3f06fdf1cedff3e9f9fa249caba17f6842b2c2ed7022e921
MD5 187f95ccec24a8a2b319acb86f534ad0
BLAKE2b-256 8d1ec497e5c43582fc96d6b83a9179260eb122a89290f1d535c702f4e0b0c463

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pywebpack-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4eb593dc3428c49d4c2fa7fa388cffe02cde3aaa8acf1f539e71ff7fcba85eea
MD5 3677e5c531a58f0aad66d6566f69228f
BLAKE2b-256 2005ec5211b9ee2f5f940bb647d9f1c500fe52bec04d5adc2788b2c467806410

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