Skip to main content

Export Claude Code conversations to self-contained HTML with interactive selection.

Project description

claude-conversation-export-html

将 Claude Code 的 .jsonl 会话导出为自包含 HTML

命令名:claude-html-start

安装

pipx install claude-conversation-export-html
claude-html-start --help

快速开始

默认读取 ~/.claude/projects

claude-html-start

非交互导出单个会话:

claude-html-start -i /path/to/session.jsonl --non-interactive -o session.html

非交互导出目录中指定会话:

claude-html-start -i ~/.claude/projects --non-interactive -s 1,3-5 -o export.html

导出全部会话:

claude-html-start -i ~/.claude/projects --non-interactive --all -o export.html

参数

  • -i, --input:输入文件或目录(默认 ~/.claude/projects
  • -o, --output:输出 HTML 路径
  • -s, --select:会话编号选择,如 1,3-5
  • --all:导出全部会话
  • --title:HTML 标题
  • --non-interactive:关闭交互(目录输入需配合 --all--select

交互快捷键

  • ↑/↓j/k:移动
  • n / p:翻页
  • Enter / Space:勾选
  • /:筛选
  • a:勾选当前页
  • c:清空
  • e:导出
  • q:退出

发布(GitHub + PyPI)

仓库已包含:

  • pyproject.toml
  • .github/workflows/ci.yml
  • .github/workflows/publish.yml

发布步骤:

  1. 在 PyPI 创建项目 claude-conversation-export-html
  2. 在 GitHub Actions Secrets 设置 PYPI_API_TOKEN
  3. 更新 pyproject.tomlversion
  4. 打 tag 并推送:
git tag v0.1.1
git push origin main
git push origin v0.1.1

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

claude_conversation_export_html-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for claude_conversation_export_html-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9e3faafcb29e581b39726c0e1dfede90f9317c07765f5c86aba1b3a37ec998c
MD5 c727c664cb37d83977a83f2a7b591127
BLAKE2b-256 2da96582bd2453ec29d6c83319c9e7fe63c929af206420b31a505ffabe23ffb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for claude_conversation_export_html-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b172158077d8f644453479cab49dd6c835335613313b57ddd78f5cc2aae6857
MD5 f65a9c9923a02dfba7e0c3f4f7baca97
BLAKE2b-256 8d17fd49cf7b9211ab81d6e4a343b79544daccb55dcc932fd440ac64e959bd1e

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