Skip to main content

builds.sr.ht status REUSE status PyPI - Version

haitchify

Convert HTML into compliant haitch code.

Quickstart

The easiest way to use this tool is with pipx (or the uvx variant).

$ pipx install haitchify

Now that the package is installed, you can call the haitchify program.

There are two ways to use it:

  • provide a file path argument.
  • pass in HTML content via standard input.

When program is called with no arguments, you will be presented with a prompt where you can type in some HTML. When you are done, type <C-d> to exit. However, the more common approach would be to use the pipe operator to pass in the input:

$ echo "<h1>Hello, world</h1>" | haitchify

Which outputs to:

H.h1("Hello, world")

You can also optionally add the --prepend flag which will also add an import to the haitch library to the top of the output.

Demo

asciicast

License

haitchify is distributed under the terms of the AGPLv3 license and adheres to the REUSE Specification.

Metadata

Release files for haitchify 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haitchify 1.0.1
File Size Uploaded
haitchify-1.0.1.tar.gz 24.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for haitchify 1.0.1
File Interpreter ABI Platform
haitchify-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.2 kB

Release files / haitchify-1.0.1.tar.gz

Download URL haitchify-1.0.1.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5b5b6af7bbbadeb82469de2320c205ad5247744144915d0d7cb18acf23099104
BLAKE2b-256 checksum
How to use checksums
b66ac3f7c8e72ed9701a1d732932e832880e75e52d8731b3d97befd074837b13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1

Release files / haitchify-1.0.1-py3-none-any.whl

Download URL haitchify-1.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd16c5600786452156a9437cf83f057c89f0bca5a291ba0d8b346bd5b80a1d2c
BLAKE2b-256 checksum
How to use checksums
d432eb728b45c58414c0bdcfbe67a6746b58faff98c0ef86c898a2025c5dd9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page