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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyccup-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.60-1-MANJARO

File hashes

Hashes for hyccup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d7429cc6515010e29ea5303fd45fb265965540a4309b887436cdd46e9af04861
MD5 58c48445661896166cd95bba68a32bc4
BLAKE2b-256 7899820704d7b600a8317f1e15aa019575a9bdc3196acd5863eb5595309706db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hyccup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.60-1-MANJARO

File hashes

Hashes for hyccup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecd4b9c20ad7dc152127b17320370483aee0f184e3862e87085c2d5eda8a4a40
MD5 dc6e82eee29c875729d5a620da6b0f87
BLAKE2b-256 4ecf3b2828930c1b2f654e44581c31f4f1ecf942d04802687ea6f39b5774dee5

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