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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: viewdom-0.5.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for viewdom-0.5.1.tar.gz
Algorithm Hash digest
SHA256 bd36237152f78be2d2f55fa32799e9ee4d97fecbd89a076b13724b5d3d2862f7
MD5 229aa679bb2ef1c925f199a55eb63d01
BLAKE2b-256 41ff4807d5234e1c4c3612c6d3337e2a5674c1c470838c4a284d34daf4abac1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viewdom-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for viewdom-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6b8d94eff19f550b0124af8a1079f45edca5e313093d26a85a5b360f01c3cf5
MD5 c604d1edf2449ef2421db3973bfad4a6
BLAKE2b-256 b28f492132cf25aa1ab766769f2335daa10b617193524cfb798281078a92ccb2

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