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.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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: edwarp-0.1.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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.0.tar.gz
Algorithm Hash digest
SHA256 108345327a5b055d2a5fff8df0b43ed1b8255e4c9f804db3237226696ceaf659
MD5 047bbcf4ba0e955c40299a84e0e96c9d
BLAKE2b-256 eb07331aff7c63288b20721e6126aaf0f8302cc362df4e05afd1161755e3f022

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edwarp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e58c1bad96ae71b7c856f192f07f9b5b60db3a94c049e04e70bf847d13b84172
MD5 f62767b897d5f3e753822a35051a0438
BLAKE2b-256 25d39bd70a405714409ea3a8925ae293e72d564b5a17be19b403d1b6e86e56df

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