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.0a4.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

hyccup-1.0.0a4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyccup-1.0.0a4.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.14.21-210.current

File hashes

Hashes for hyccup-1.0.0a4.tar.gz
Algorithm Hash digest
SHA256 fec0e055398fa09f0390d53daa7d6ecd8ea9e30fd81ada03518747c7fd53dc22
MD5 c2ea4c30bf13bf453d25a045c2da48c9
BLAKE2b-256 5c5c9b08a9301faac6e4a67b3e7a3296ea95a9eb9444c7a6d40ba025ab55e62c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hyccup-1.0.0a4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.14.21-210.current

File hashes

Hashes for hyccup-1.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 157d5f2f0c7a0d360069154e4b888ef0236859a4d418914ce64a911caa5f9e69
MD5 b4b583c615d20a561ffcb0813f8c60ba
BLAKE2b-256 45b4b457a918e10a8d23f2418071997286cf996354491969723733a00145a5f4

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