Skip to main content

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


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.5.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

kraken_html-0.1.5-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file kraken-html-0.1.5.tar.gz.

File metadata

  • Download URL: kraken-html-0.1.5.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

Hashes for kraken-html-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8e1ca4f6021a713c22851088b308b7cb885099386649503aff266aa221467fb2
MD5 c7c92f8643acf5c22c774e4f012ef0d0
BLAKE2b-256 ff0c7cb6a72793001967fe5baf29a1663d8b32a503dc78b29374ba70d28bc793

See more details on using hashes here.

File details

Details for the file kraken_html-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: kraken_html-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 43.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for kraken_html-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5695919fe6775a075a6bd8e4f1e9d29be9fa89d5f30f1a868dd3624ab523c906
MD5 f7ff08570d9288b9339d5792fd94da66
BLAKE2b-256 41e4b4a20bc1a0644d8d31fa30981ceb2585b666e32579d4481c897ac13b297b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page