Skip to main content

html framework

Project description

weba

Release Build status codecov Commit activity License

Weba is a Python library for building web user interfaces using a declarative, component-based approach. It provides a clean API for creating HTML elements and components with proper context management and type safety. The library extends BeautifulSoup's functionality by adding a custom Tag class that supports modern web development patterns, including HTMX integration, class list manipulation, and comment-based selectors. It allows developers to create reusable UI components with proper isolation, supports both synchronous and asynchronous contexts, and handles attribute management (including JSON serialization) elegantly. The library emphasizes type safety and follows clean code practices, making it particularly suitable for building modern web applications in Python with a focus on maintainability and developer experience.

Configuration

The library supports the following environment variables for configuration:

  • WEBA_LRU_CACHE_SIZE: Controls the maximum size of the LRU cache used for storing parsed HTML templates and file contents. Defaults to 128. Example:
export WEBA_LRU_CACHE_SIZE=256  # Increase cache size to 256 entries

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

weba-0.2.25.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

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

weba-0.2.25-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file weba-0.2.25.tar.gz.

File metadata

  • Download URL: weba-0.2.25.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for weba-0.2.25.tar.gz
Algorithm Hash digest
SHA256 e50eec35d3d740deb64e6e059e8888e60dbf264a187f21f64eb492b19b19b719
MD5 c3bedf85cbcab976465aa4bbf7604599
BLAKE2b-256 4b9386935a0303c7d4b5a45b4eaf9d1448a8e58bdf9ffcfbbc0e67c59fc350ba

See more details on using hashes here.

File details

Details for the file weba-0.2.25-py3-none-any.whl.

File metadata

  • Download URL: weba-0.2.25-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for weba-0.2.25-py3-none-any.whl
Algorithm Hash digest
SHA256 e4b9d563fb892271480137041c28b4dee82fd513a1316cc5439376768d031d5c
MD5 c87e9d9fc2e1d7d5cd1cad1078ff5f4d
BLAKE2b-256 8cc663a1f787703b7058a81c6e45e076b27ae2072af50a4d86efe582efd32784

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