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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html2ft-1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

html2ft-1.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file html2ft-1.3.tar.gz.

File metadata

  • Download URL: html2ft-1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for html2ft-1.3.tar.gz
Algorithm Hash digest
SHA256 62b93a1ccd069cd9a5d66e9ba9e95c869ccf1172d4af39e15aa84465ca23b0f2
MD5 798d1dd290fd287f175c003a8284e1c0
BLAKE2b-256 5cc23e53ee80b3ade8d95daf85492a56f8937e45d71d19d4887f53a84d073607

See more details on using hashes here.

File details

Details for the file html2ft-1.3-py3-none-any.whl.

File metadata

  • Download URL: html2ft-1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for html2ft-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23a40bf1bc37e2bb62d3d4a4ee1dbe625f71fbfa4dd1a6cb935b2af57f7af68f
MD5 17a0524436bd42546061440fa77a12ac
BLAKE2b-256 1064f9289d86ab991fe346bcb7f498b9c25bf1e5694c7b27e56de89e6f20f862

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page