Metadata-Version: 2.4
Name: sfhtml
Version: 0.2.0
Summary: Single-File HTML AI-Skill CLI — Python wrapper
Author-email: anyrust <ggen652@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/anyrust/sfhtml
Project-URL: Repository, https://github.com/anyrust/sfhtml
Keywords: html,single-file,ai,cli,editor
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Text Processing :: Markup :: HTML
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# sfhtml (Python)

Python wrapper for [sfhtml](https://github.com/anyrust/sfhtml) — Single-File HTML AI-Skill CLI.

## Install

```bash
pip install sfhtml
```

> **Requires** the `sfhtml` binary. Install via `cargo install sfhtml` or download from [GitHub Releases](https://github.com/anyrust/sfhtml/releases).

## Usage

### As a Python library

```python
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)

```bash
sfhtml scan . --recursive --json
sfhtml header app.html
sfhtml page screenshot --output shot.png
```

## License

MIT
