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

Uploaded Source

Built Distribution

pywebpack-1.0.0-py2.py3-none-any.whl (14.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pywebpack-1.0.0.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for pywebpack-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ef115f8f87347f975271523b0dea85d38cf04db0aa017a684c4d8067c71324e4
MD5 ab96fe2c515770124cc290f3ee6a808e
BLAKE2b-256 6dc932501ea80648a9af0fa2fc529c80cab16f957403d2212df122a970d1df83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywebpack-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for pywebpack-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ee79570f56a5a5ec532ffb1ae95c268cd5acceb94d94df63cec47486a7e2e2c
MD5 e571fe3ff21bd3ac822c05ab87cca162
BLAKE2b-256 616e01572633c0751bd8a84d57c19fb4fa59e55bfe4c5135d559d376e3582295

See more details on using hashes here.

Supported by

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