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.4.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: viewdom-0.6.4.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for viewdom-0.6.4.tar.gz
Algorithm Hash digest
SHA256 3e783b7e426c570248bcb5d7401a673c6e46c5252f769286c6a2b41321d668aa
MD5 ee27da7530e3102ffd8487684adc727f
BLAKE2b-256 e3d8bfafe21da7819fb8e767c3335d73290d459a22ef65154928d2890e4b23e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viewdom-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for viewdom-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62c6a28ac8f158744d241add375a486bf94710652de48c95728044af463a68cf
MD5 2df29828295da9d63c587652975d54c1
BLAKE2b-256 8af57e0fe7b5d5e73e4cc7b03102d46f979dbbb3ec0bfca2b22299995c8ee6af

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