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 AUR

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. Arch Linux users can install html2ft from the AUR and skip this section.

The easiest way to install html2ft is to use uv tool (or pipx or pipxu) which installs html2ft from PyPi. 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.0.tar.gz (3.2 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.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for html2ft-1.0.tar.gz
Algorithm Hash digest
SHA256 5154b48ae56ab19063249203d977d132be726eff70e0f41d1403aab403a521b1
MD5 335b4c873637d98de40f478701167d27
BLAKE2b-256 76d3c320075270bee845497377eb35fa49237e58a49792b2f4599782eaecb20e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for html2ft-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f0a24d296fedbca7663c5ee63f3a06cc32074f2ccfe41fb5d6e21ab2058726
MD5 c17bc062efb6a03b00f9d79639bec0e6
BLAKE2b-256 cc0f0605e5507e74d0b8a5af0f362b2c04ba1ddbaa93c919ea49c61eba2d7f31

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