Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminates the need to learn another template language, and lets you take advantage of the more powerful features of Python. Dominate can also use keyword arguments to append attributes onto your tags. Most of the attributes are a direct copy from the HTML spec with a few variations. Through the use of the += operator and the .add() method you can easily create more advanced structures. By default, render() tries to make all output human readable, with one HTML element per line and two spaces of indentation.

Features

  • You can add child elements using Python's with statement
  • Dominate is great for creating reusable widgets for parts of your page
  • The basic HTML tag structure is created for you
  • The dominate.svg module contains SVG tags similar to how dominate.tags contains HTML tags
  • dominate supports iterables to help streamline your code
  • Dominate can also use keyword arguments to append attributes onto your tags

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML, Libraries

License

GNU Library or Lesser General Public License version 3.0 (LGPLv3)

Follow Dominate

Dominate Web Site

Other Useful Business Software
Powerful App Monitoring Without Surprise Bills Icon
Powerful App Monitoring Without Surprise Bills

AppSignal starts at $23/month with all features included. No overages, no hidden fees. 30-day free trial.

Tired of monitoring tools that punish you for scaling? AppSignal offers transparent, predictable pricing with every feature unlocked on every plan. Track errors, monitor performance, detect anomalies, and manage logs across Ruby, Python, Node.js, and more. Trusted by developers since 2012 with free dev-to-dev support. No credit card required to start your 30-day trial.
Try AppSignal Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Dominate!

Additional Project Details

Programming Language

Python

Related Categories

Python HTML XHTML, Python Libraries

Registered

2023-04-26