HTMLRun CLI
把本地 HTML 文件发布到 HTMLRun,生成可分享的在线链接。
安装
PyPI: https://pypi.org/project/htmlrun-cli/
pip install htmlrun-cli
使用
先在 https://html.run 创建 publish token:
htmlrun login --token h_xxxxxxxx
htmlrun publish report.html
login 会向服务端校验 token,无效时不写入本地配置并以非 0 退出码结束,所以脚本里可以
直接用它的退出码判断是否登录成功。
再次发布同一路径文件会追加新版本,并保持原链接不变。
命令
| 命令 | 说明 |
|---|---|
htmlrun login --token h_xxx [--base-url URL] |
校验 token 并保存 token 和服务地址 |
htmlrun logout |
清除本地 token |
htmlrun whoami [--remote] |
查看服务地址与 token 状态;--remote 联网查服务端 |
htmlrun publish FILE [-m 备注] [--new] [--no-inline] |
发布 HTML 文件 |
环境变量
| 变量 | 作用 |
|---|---|
HTMLRUN_TOKEN |
publish token |
HTMLRUN_BASE_URL |
服务地址,默认 https://html.run |
HTMLRUN_CONFIG_DIR |
配置目录,默认 ~/.htmlrun |
首次 login 会在配置文件里生成一个随机 client_id,用于在"已绑定设备"列表里区分机器。
它是随机 UUID,不采集硬件信息,也不参与鉴权。logout 不会清除它,这样同一台机器重新
登录仍算同一台设备。
Metadata
Release files for htmlrun-cli 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| htmlrun_cli-0.4.1.tar.gz | 15.1 kB | Without provenance | Details for htmlrun_cli-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| htmlrun_cli-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for htmlrun_cli-0.4.1-py3-none-any.whl |
Total release size: 31.0 kB
Release files / htmlrun_cli-0.4.1.tar.gz
| Download URL | htmlrun_cli-0.4.1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
874e462e3087aca347545365ae531465d14b8cd0efc5036d92660126f000adbe
|
|
BLAKE2b-256 checksum How to use checksums |
b3ae86d8e4b9ae22d7c7ff7a720be3911b7d766621d7522287d16d254163fc5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / htmlrun_cli-0.4.1-py3-none-any.whl
| Download URL | htmlrun_cli-0.4.1-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7217eb9ed2f908750362f679b010fd3c48226b7f92db7650eed2acef38be6277
|
|
BLAKE2b-256 checksum How to use checksums |
d0bef64995684312a396b87d0c8898c61af49b88752a5a5714369b9b204b0ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for htmlrun-cli 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.