Skip to main content

ViewDOM

Project description

ViewDOM: Component-Driven Development for Python

Coverage Status Documentation Status Code style: black PyPI Python Version PyPI - Downloads License Test Status pre-commit black

ViewDOM brings modern frontend templating patterns to Python:

  • tagged to have language-centered templating (like JS tagged templates)
  • htm to generate virtual DOM structures from a template run (like the htm JS package)
  • ViewDOM for components which render a VDOM to a markup string, along with other modern machinery
  • Optionally, Hopscotch for a component registry with dependency injection

Features

  • Component-driven development.
  • Intermediate VDOM.
  • Pass in data either via props (simple) or DI (rich).
  • Emphasis on modern Python dev practices: explicit, type hinting, static analysis, testing, docs, linting, editors.

Requirements

  • Python 3.9+.
  • viewdom
  • tagged
  • htm.py
  • Markupsafe

Installation

You can install ViewDOM via pip from PyPI:

$ pip install viewdom

Quick Examples

Contributing

Contributions are very welcome. To learn more, see the contributor's guide.

License

Distributed under the terms of the MIT license, ViewDOM is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

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

viewdom-0.6.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

viewdom-0.6.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file viewdom-0.6.2.tar.gz.

File metadata

  • Download URL: viewdom-0.6.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for viewdom-0.6.2.tar.gz
Algorithm Hash digest
SHA256 486f5c1e2c000fa117a98cc1419ca72a50a47943bfe3052515ae395330d35fe1
MD5 eebdd10c9f43323554611df8d6db8809
BLAKE2b-256 e7ea92b1685d690206fa1e0b0dd0bb70f74085f3dad036a4db4e9c76f6c0de8a

See more details on using hashes here.

File details

Details for the file viewdom-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: viewdom-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for viewdom-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 24160fc9e67dfa03c1f108f08ac22da84b7e41799b3eec22a3bc09077a13cbb2
MD5 07b71fe57f901ebc7947e4836db1f478
BLAKE2b-256 0bcfcf8d967958e62615cf50d2cad13d6a15f40a9bca33efa33a7617614bb093

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page