Skip to main content

A port of Clojure Hiccup for Hy

Project description

Hyccup

PyPi Python Version Tests

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.core [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.core 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.0.0a2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

hyccup-1.0.0a2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file hyccup-1.0.0a2.tar.gz.

File metadata

  • Download URL: hyccup-1.0.0a2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.1 Linux/5.13.6-190.current

File hashes

Hashes for hyccup-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 032ef8ec2a8b0f2ff73bab877b704e5d46d999b9a5bb18b177c91fe5e4cb7a08
MD5 eeb7a25a6d258d0432c01ec59cecd5e3
BLAKE2b-256 2cea0740ee86399258afed853d4d21c38f3f985f93c4e03283d86f525e6c5423

See more details on using hashes here.

File details

Details for the file hyccup-1.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: hyccup-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.1 Linux/5.13.6-190.current

File hashes

Hashes for hyccup-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 22d367fa829046783277642770534ecb5f0264ea0f5e2a9b56c5cfa8ee05cba2
MD5 f866e654f25dec93b8b573815dc9b612
BLAKE2b-256 4d686d338dd16ddc049973df71a85b8c6e8e3d8f092f8b20686bc6f17ac751c6

See more details on using hashes here.

Supported by

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