Skip to main content

A Python library for creating and manipulating HTML elements.

Project description

Domilite

PyPI - Version PyPI - Python Version Tests Docs

Domilite is a lightweight (0-dependency) Python library for creating and manipulating HTML elements.

It takes inspiration from dominate, a great library for creating HTML elements in Python. Domilite aims to simplify the interface from dominate, providing a smaller set of APIs while maintaining general compatibility with the library.

Create HTML elements from code, and render them formatted:

from domilite import tags

html = tags.html(tags.head(tags.title('welcome')))
html.add(tags.body(tags.h1('welcome to domilite', id='title')))
html[1].classes.add('style-from-code')
print(html)

This produces

<html>
  <head><title>welcome</title></head>
  <body class="style-from-code">
    <h1 id="title">welcome to domilite</h1>
  </body>
</html>

You can find the docs at https://domilite.readthedocs.io/en/latest/

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

domilite-0.1.3.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

domilite-0.1.3-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file domilite-0.1.3.tar.gz.

File metadata

  • Download URL: domilite-0.1.3.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for domilite-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b38cab68477b399645cf165b25ef1ede797fafe1a0054feb72c73293a5828e8b
MD5 da5ad330e0eeec737f62c671f742b48d
BLAKE2b-256 eb3e314a82fb327f16e71c01f9463eb86f7feff01da0a5a8d6848eb916476089

See more details on using hashes here.

Provenance

The following attestation bundles were made for domilite-0.1.3.tar.gz:

Publisher: pypi_package.yml on alexrudy/domilite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file domilite-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: domilite-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for domilite-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cf5d36d3c9bcc22bcebd548981b7248dc07fe75c67f9ac4f1676d397b94b8681
MD5 3f5fc9830139e9e8b544a7987f08a62a
BLAKE2b-256 d9a5b909c37428382b46e25e04f802dfb6294b1a1b9e4de62d4bb2593e7500fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for domilite-0.1.3-py3-none-any.whl:

Publisher: pypi_package.yml on alexrudy/domilite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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