Skip to main content

A port of Clojure Hiccup for Hy

Project description

Hyccup

PyPi Python Version CI CD

Hyccup is a port of Hiccup for Hy, a Lisp embed in Python.

It allows you to represent HTML into data structure and to dump it.

=> (import hyccup [html])
=> (html ["div" {"class" "my-class" "id" "my-id"} "Hello Hyccup"])
"<div class=\"my-class\" id=\"my-id\">Hello Hyccup</div>"

Hyccup can also be used in Python:

>>> from hyccup import html
>>> html(['div', {'class': 'my-class', 'id': 'my-id'}, 'Hello Hyccup'])
'<div class="my-class" id="my-id">Hello Hyccup</div>'

More information in the documentation.

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

hyccup-1.1.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

hyccup-1.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file hyccup-1.1.0.tar.gz.

File metadata

  • Download URL: hyccup-1.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.15.94-1-MANJARO

File hashes

Hashes for hyccup-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3c3c97afc0eef31f3a305219af816e3b55d33657abc7ff94e6a9a6270db40c3e
MD5 771eea1654cb714e4a67a3ce1d05c4d8
BLAKE2b-256 cdf7b00673649eaf91b373793c1777893150910d5ce612289b87a1b9bdd06de2

See more details on using hashes here.

File details

Details for the file hyccup-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hyccup-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.15.94-1-MANJARO

File hashes

Hashes for hyccup-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e08876ce580ec2ba93a0aaccf29d0df02c76ec7f84db8fe7935cc124226483
MD5 db039311982f502753818c83b40d7681
BLAKE2b-256 5b524692f8eeb34a35d27f9e44547e75cc0b7c0fb9d2f42471eee73abd7a1640

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