Autumn(Tag Extras) - Build HTML easily right in your backend
what is this?
This extension is made to cover Autumn's abstraction with another layer of abstraction, taking the bare AbstractTag to create and support most of HTML tags, while maintaining the same level of thread-safety and flexibility.
How to install?
This extension is made available via the autumn-tag-extras python package, in PyPI. To install this extension, run:
pip install autumn-tag-extras
Getting started
You can get started by importing the branch and initializing it, then access and inherit from varies of pre-defined tags.
from typing import Any
from Autumn import new
from AutumnTagExtras import Branch
Base = new()
with Base:
tag = Branch()
class CustomDiv(tag.div):
def __init__(self):
self.dynamic = True
super().__init__()
def before_build(self, **kwargs: Any) -> str | None:
self.tags.append(tag.p(kwargs.get("text", "Hello!")))
page = Base.page.new("page").tag(CustomDiv())
Metadata
Release files for autumn-tag-extras 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| autumn_tag_extras-1.0.0.tar.gz | 8.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autumn_tag_extras-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.2 kB
Release files / autumn_tag_extras-1.0.0.tar.gz
| Download URL | autumn_tag_extras-1.0.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4966aac1187d7e43e99de59075d807e2eaacfb87eb38e3b68c016ff42c3976fe
|
|
BLAKE2b-256 checksum How to use checksums |
45220b1acd158ce7ee62f9173b01e28267023bb47ce90c3c80e6e31b094cac7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / autumn_tag_extras-1.0.0-py3-none-any.whl
| Download URL | autumn_tag_extras-1.0.0-py3-none-any.whl |
|---|---|
| Size | 35.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b54d74183ef497c2fee945431158a3f83d13555d01688a7e5833841efc1e43a
|
|
BLAKE2b-256 checksum How to use checksums |
e99b5b60760511106fc19c953401fa00fcb25a13f3280b653b3fd781e26420a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for autumn-tag-extras 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.