kraken-html
Project description
kraken_html
How to use
from kraken_html import kraken_html as m
Quick start
Records
Converts a record into a HTML record, where url are transformed as a links for example
HTML record format
from kraken_html import kraken_html as m
record = {...}
html_record = m.html_record.html_record(record)
HTML record list
from kraken_html import kraken_html as m
records = [{...}, {...}]
records_list = m.html_record.to_list(records)
HTML record form
from kraken_html import kraken_html as m
record = {...}
record_form = m.html_record.to_json(record)
Pages
Pages are full website pages that includes navigation, heaters and footers.
from kraken_html import kraken_html as m
page_content = 'some content...'
webpage = m.pages.blank(page_content)
Sections
Sections are components of pages, building blocks to build full pages
Hero
Image with key benefit
record = {
"headline": "Headline 1",
"text": "Some text"
}
theme = 'dark'
page_content = m.section.hero(record, theme)
webpage = m.pages.blank(page_content)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kraken-html-0.1.4.tar.gz
(25.8 kB
view details)
Built Distribution
File details
Details for the file kraken-html-0.1.4.tar.gz
.
File metadata
- Download URL: kraken-html-0.1.4.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79c44df669593df6230b1eeacb1c72d057b12f4b21bfd7066144d87d675532c6 |
|
MD5 | a82994fbfbd9ecf66f61542627bcc36d |
|
BLAKE2b-256 | ba626972ee4bbfb779dd77da4d2676a0e913fbdf5d6306eb79f57b77be298266 |
File details
Details for the file kraken_html-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: kraken_html-0.1.4-py3-none-any.whl
- Upload date:
- Size: 43.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc00b359be3b3a54331b9b9b61e1bba0da253326cf199dfb512bc840e6febf0 |
|
MD5 | 8f217935e0dfb52c49a4708b9f1a694b |
|
BLAKE2b-256 | a739ee83ad5729938437e25323963df2f8fac7e0b0b18e58fdd59662cf566883 |