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.

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.1.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.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: html2ft-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 79acd4177a70cef391307a0f5cf7367776b904d6252223e0b23c33870bf2ea7e
MD5 2d84e912271566bffb71e62f36015e29
BLAKE2b-256 89d71e9f5c670fa7a2af3483055f30d3ef39b1923796e1b48d2960b71f84881a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for html2ft-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79934e8b21839c9393cdea3367c57944df7a4ef0ef0b9479995e35ec16d1f913
MD5 c18ff8f02221cc151c36d6edc6c4df68
BLAKE2b-256 23a102671882a9eac18402683fe069436e03a897137814c4ab520df52f7ee350

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