Skip to main content

Python-only static file (js, css) bundler core library

Project description

edwarp

edwarp is the non-CLI reusable core extracted from edwh-bundler-plugin.

What it contains

  • JS/CSS content extraction and bundling helpers
  • TypeScript transpilation and dependency inlining
  • SCSS/SASS conversion and variable injection
  • Config loading from bundle.yaml, bundle.toml, or pyproject.toml (tool.edwarp.bundle)

Basic usage

from edwarp import bundle_js, bundle_css

js = bundle_js(["https://unpkg.com/htmx.org@1.9.2/dist/htmx.min.js"], minify=True)
css = bundle_css(["./styles.scss"], minify=True, scss_variables={"primary": "#000"})
from edwarp import build

# builds using bundle.yaml/bundle.toml/pyproject config in cwd
build(config="bundle.yaml", verbose=True)

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

edwarp-0.1.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

edwarp-0.1.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: edwarp-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for edwarp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 30e2d0d185c851f7f214abf2aaa07a43ec27ed35a175f25ae496809a05deb3d8
MD5 06a61484623df104407c9dd828076887
BLAKE2b-256 6b7f8e6fb8ea35b57a6e20e290ff2498a84799e5e3a56df2a55c0196b262f984

See more details on using hashes here.

File details

Details for the file edwarp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: edwarp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for edwarp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eae4e76fd069026b71c291a62859207905c6afac48807deb11cc8d5967d1f710
MD5 b22069d130f54fb4338ca02fcb1a3638
BLAKE2b-256 c24501e2dafca23f58d7df7269d9d28a14de8a0e8f5ea9f6b23818e82f2cc3c9

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