Skip to main content

Webloom: Python-first HTML/CSS DSL with optional Django integration

Project description

Webloom

Webloom is a Python-first library for building and rendering web pages. It lets you describe page structure and styles with Python classes and render readable HTML output.

Installation

Core package:

pip install webloom

Optional Django integration:

pip install webloom[django]

How to Work with Webloom

  1. Build page structure from class-based elements.
  2. Keep styles in reusable Python style objects.
  3. Compose full documents through the page layer.
  4. Render HTML on the fly for server-side responses.
  5. Use optional Django integration when you need class-based views and template hooks.

Recommended Workflow

  1. Separate content and styles into different Python modules.
  2. Keep pages modular (for example by route or domain section).
  3. Reuse style objects across pages to keep visual consistency.
  4. Treat rendering as a server concern (HTML generated at request time).
  5. Move framework-specific logic (Django) into integration modules.

Package Scope

  • webloom: public API surface.
  • webloom_core: rendering and element system.
  • webloom_django: optional integration for Django.

Documentation for Contributors

Architecture, internal design, quality checks, and release flow are in CONTRIBUTING.md.

License

MIT, see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

webloom-0.2.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file webloom-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: webloom-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for webloom-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d59025079b7422b46eeee3ead518a0b4e330a5efc6c0c34816ccfee598c74580
MD5 ecb6c016b17abbb17f942e7fb3bd20c0
BLAKE2b-256 38fb42dcd6be313c17648636262427c45856c2ddf25296dffae43c3f156c3304

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