Skip to main content

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 sfhtml binary. Install via cargo install sfhtml or 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.3.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

sfhtml-0.3.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file sfhtml-0.3.0.tar.gz.

File metadata

  • Download URL: sfhtml-0.3.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

Hashes for sfhtml-0.3.0.tar.gz
Algorithm Hash digest
SHA256 01bcd2a2044ea34bdac4260b0b3983308de8a48247ad2cf1e49d9fcdfc7d9a4e
MD5 a1b61d9428edb87ef71516c4aac1ce45
BLAKE2b-256 5ac0af8e445825fd86af05612d1a9116a2e5e4d287278c92cd0a68090b3bf724

See more details on using hashes here.

File details

Details for the file sfhtml-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sfhtml-0.3.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

Hashes for sfhtml-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b2f4110d19c4701fe352a9ecc46ac4060a22b932fc0a1d80e9d93cb970615ef
MD5 cd36fd9947536d92cec01bdb08e0c706
BLAKE2b-256 64d685ec8f2d410b9c0e2b49f57727f9344b7346a78e67bf8c897b40f6177a84

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