Pydom

Latest version: v0.4.0

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.0

Breaking changes
- All types related to transformers are moved from the `pydom.context` module to `pydom.rendering`
- The `selected` attribute in `HTMLOptionElement` is now boolean

Fixed
* Minor fix in tailwind tutorial by elazarcoh in https://github.com/xpodev/pydom/pull/28

**Full Changelog**: https://github.com/xpodev/pydom/compare/0.3.1...0.4.0

0.3.1

🎉 New documentation at [pydom.dev](https://pydom.dev) 🎉

Added
* Future dependencies
* Documentation 🎉
* HTMX tests

Fixed
* FalsyTransformer issue
* Typing issues

Removed
* Features from context

New Contributors
* binyamin555 made their first contribution in https://github.com/xpodev/pydom/pull/22

**Full Changelog**: https://github.com/xpodev/pydom/compare/0.3.0...0.3.1

0.3.0

Breaking changes

- `StyleObject` from `pydom.styling` is renamed to `StyleSheet`
- `class_name` is replaced with `classes` to be the default property for the `class` attribute in html.
- Package is now `pydom` on pypi! (Huge thanks to [Jos Handriks](https://pypi.org/user/Jos.Hendriks/) for giving us the name)

Class name migration guide
You can use the following code to the context to keep using `class_name` instead of `classes`
python
from pydom import get_context
from pydom.context.standard.transformers.class_transformer import ClassTransformer

class_transformer = next(t for t in get_context().prop_transformers if isinstance(t, ClassTransformer))
if class_transformer:
class_transformer.prop_name = "class_name"


Added
- `before` and `after` when adding post render transformers
- `Page` is now exported from the root module

**Full Changelog**: https://github.com/xpodev/pydom/compare/0.2.3...0.3.0

0.2.5

Deprecate `python-dom`

0.2.3

What's Changed
* Add `py.typed` file to the package (Fixes 6)


**Full Changelog**: https://github.com/xpodev/pydom/compare/0.2.2...0.2.3

0.2.2

What's Changed
* Add support for lists as children of components and elements
* Add trailing slash to self-closing elements (`<br />` instead of `<br>` etc.)


**Full Changelog**: https://github.com/xpodev/pydom/compare/0.2.1...0.2.2

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.