Skip to main content

HTML2FT - Command line tool to convert HTML to FastHTML Python FT components

PyPi

html2ft is a command line tool to convert HTML to FastHTML Python FT components. It is a command line implementation of the online HTML to FastHTML converter.

The latest documentation and code is available at https://github.com/bulletmark/html2ft.

Usage

Type html2ft -h to view the usage summary:

usage: html2ft [-h] [-a] [infile]

Command line tool to convert HTML to FastHTML Python FT components. Output is
written to stdout.

positional arguments:
  infile             input file (default is stdin)

options:
  -h, --help         show this help message and exit
  -a, --attrs-first  output attributes first instead of children first

Installation and Upgrade

Python 3.10 or later is required. You can run htmt2ft most easily using uvx. Just make sure uv is installed and then run the following command which will install html2ft from PyPi "on the fly" and will then run it immediately:

$ uvx html2ft [myfile.html]

Or install html2ft formally on your system using using uv tool (or pipx or pipxu). To install:

$ uv tool install html2ft

To upgrade:

$ uv tool upgrade html2ft

To uninstall:

$ uv tool uninstall html2ft

License

Copyright (C) 2025 Mark Blakeney. This program is distributed under the terms of the GNU General Public License. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at https://en.wikipedia.org/wiki/GNU_General_Public_License for more details.

Metadata

Release files for html2ft 1.3

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

Source distribution (sdist)

Source distribution for html2ft 1.3
File Size Uploaded
html2ft-1.3.tar.gz 3.5 kB Details

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / html2ft-1.3.tar.gz

Download URL html2ft-1.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
62b93a1ccd069cd9a5d66e9ba9e95c869ccf1172d4af39e15aa84465ca23b0f2
BLAKE2b-256 checksum
How to use checksums
5cc23e53ee80b3ade8d95daf85492a56f8937e45d71d19d4887f53a84d073607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / html2ft-1.3-py3-none-any.whl

Download URL html2ft-1.3-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23a40bf1bc37e2bb62d3d4a4ee1dbe625f71fbfa4dd1a6cb935b2af57f7af68f
BLAKE2b-256 checksum
How to use checksums
1064f9289d86ab991fe346bcb7f498b9c25bf1e5694c7b27e56de89e6f20f862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2

2 release files

1.1

2 release files

1.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