Skip to main content

Command line tool to convert HTML to FastHTML FT components

Project description

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 http://www.gnu.org/licenses/ for more details.

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

html2ft-1.2.tar.gz (3.3 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.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: html2ft-1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for html2ft-1.2.tar.gz
Algorithm Hash digest
SHA256 eba5f583019f101c69e2bae23136bb816d2259f2b10ee7510e343b04b3175496
MD5 ddaa7c2d3a945a8a96921da8708d3d0b
BLAKE2b-256 1f9073d23e5d97b8b551601b704a6f785c44f7e6663a18231554c59629f98790

See more details on using hashes here.

File details

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

File metadata

  • Download URL: html2ft-1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for html2ft-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf073fd0955d4b4dca9c37ff2dd108e68116ad26c8a7efdc95a48fe6cc05388b
MD5 83d7c1e2fa1c9eff9abb6ea79653a005
BLAKE2b-256 1a54b5ca61369bf96a7ec22156722d9e44f96a3559caee6e869977c4d119faa8

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 Pingdom Monitoring Sentry Error logging StatusPage Status page