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

Uploaded Source

Built Distribution

viewdom-0.6.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for viewdom-0.6.5.tar.gz
Algorithm Hash digest
SHA256 f18f77770cc5130638e1eb2097dce27d40b5ad3e136a079c17e4364e41894b30
MD5 1b6d21ecfffd9eac9a03c634fe013a3c
BLAKE2b-256 c40edb4d45a086c1545ecf8e78a53953f51645dca477d38bfd9195371b69bfbb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for viewdom-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f59ddf9c639708a8ef5cc326f98982c4f6c408917a6f9cb7927c02d7a5fdc5f2
MD5 af1e80f7fbc7deb22207cc269f58439b
BLAKE2b-256 0f6229c4f5f0d6164eebd07f901dc9d29842c99778435db0eadcd5f43bb84b7f

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