Skip to main content

HTMLRun CLI — 把单文件 HTML 发布成可分享的在线链接

Project description

HTMLRun CLI

把本地 HTML 文件发布到 HTMLRun,生成可分享的在线链接。

安装

pip install htmlrun-cli

使用

先在 https://html.run/web/tokens 创建 publish token:

htmlrun login --token h_xxxxxxxx
htmlrun publish report.html

再次发布同一路径文件会追加新版本,并保持原链接不变。

命令

命令 说明
htmlrun login --token h_xxx [--base-url URL] 保存 token 和服务地址
htmlrun logout 清除本地 token
htmlrun whoami 查看当前服务地址与 token 状态
htmlrun publish FILE [-m 备注] [--new] [--no-inline] 发布 HTML 文件

环境变量

变量 作用
HTMLRUN_TOKEN publish token
HTMLRUN_BASE_URL 服务地址,默认 https://html.run
HTMLRUN_CONFIG_DIR 配置目录,默认 ~/.htmlrun

开发发布

pip install -e ".[dev]"
python -m build
python -m twine upload dist/*

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

htmlrun_cli-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

htmlrun_cli-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file htmlrun_cli-0.1.0.tar.gz.

File metadata

  • Download URL: htmlrun_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for htmlrun_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1034613d38fea3efdd261481f347ea819f010b6ef452927ac359640e3c88e5f4
MD5 08a2a9b9f486bcef548f3ce4169dde7e
BLAKE2b-256 4b9c1eaf965c0d8406c42523fe97b429460564caf36415e3266cf271cabba8f2

See more details on using hashes here.

File details

Details for the file htmlrun_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: htmlrun_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for htmlrun_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a799c63876f2a6885eaa11facdec330b6fcfe8705894c455b7bf961597aa751e
MD5 c1405a50b894806102d72ec208f245de
BLAKE2b-256 c70b231f30f257847c12fe6eb72296fb2abb169d7d44a8b65c37c44abb768830

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