Single-File HTML AI-Skill CLI — Python wrapper
Project description
sfhtml (Python)
Python wrapper for sfhtml — Single-File HTML AI-Skill CLI.
Install
pip install sfhtml
Requires the
sfhtmlbinary. Install viacargo install sfhtmlor download from GitHub Releases.
Usage
As a Python library
import sfhtml
# Scan for HTML files
files = sfhtml.scan("./my-project")
# Read file header
header = sfhtml.header("app.html")
# Apply a diff
result = sfhtml.apply("app.html", "patch.diff", backup=True)
# Validate
report = sfhtml.validate("app.html")
# Browser interaction
sfhtml.debug_start("app.html")
sfhtml.page_click("#submit-btn")
logs = sfhtml.page_console()
sfhtml.debug_stop()
# Run any sfhtml command
result = sfhtml.run("anchor-list", "app.html")
As a CLI (same as the Rust binary)
sfhtml scan . --recursive --json
sfhtml header app.html
sfhtml page screenshot --output shot.png
License
MIT
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
sfhtml-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sfhtml-0.1.0.tar.gz.
File metadata
- Download URL: sfhtml-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
031e0e7e6783f577918be769e91b58a6d23f19a03c973a3da1585b070f67f486
|
|
| MD5 |
d5f5982ee79c008d092aed97bd225070
|
|
| BLAKE2b-256 |
8ba0dc248a098d7ae231f5b7f151f55658d3a7434454ec66a0408fcfa8a2e372
|
File details
Details for the file sfhtml-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sfhtml-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
719983ba361b2cdb3db23488bdaaa53f131b0ccce4dba11289a0f63eb2e6a8ca
|
|
| MD5 |
f3289c502046f3f13817bb0b0c230231
|
|
| BLAKE2b-256 |
811ae1a196d10e2542bfb2ed6601889d1fe5325aa0520c6544718a3296a08f16
|