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

Uploaded Source

Built Distribution

hyccup-1.0.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyccup-1.0.1.tar.gz
  • Upload date:
  • Size: 10.1 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.1.tar.gz
Algorithm Hash digest
SHA256 614c1090190dde1bdc8c60ae481c68e91cd3ce294b6f3f4133579e91e208f9d5
MD5 17709e04bd3891a91400afd198589944
BLAKE2b-256 d8c0bdcdde2f148a7b564999f6533f4c4494a079e187a92ab3e123b058da3922

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hyccup-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2396b20bf37222fffa8f7d7ab186e9b47c71d1d46db248c2c0d3b293153ac239
MD5 8686675d421a91bd1b082940dcd51f75
BLAKE2b-256 e8c4f008ac1ec666d1a50fa4b578bde89d38ad96a68cfaed7d0f001d9dcda18f

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