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.2.tar.gz (14.7 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.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: edwarp-0.1.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","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.2.tar.gz
Algorithm Hash digest
SHA256 586e3ef202b65c1ecadcf18ce825353d5414a1a8d3297d11da46a297917fa6c9
MD5 92afb28f4a329f13d7abfcc404b97291
BLAKE2b-256 d899708cbc03a69515645842b4b7a075ccb4dd3aa8f2e01f34c51ed0f1d0ae4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edwarp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0facd07e5650ee394b8976257a189c5156b559bb311bab444d260ac1d29bae21
MD5 76e8b9b68e82eff3553df3f65a20daeb
BLAKE2b-256 dbf54bce0a6b6b2273ba7aac1655c88e9ac81c7692bdc74d132f4d9affb57abc

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