Skip to main content

Transcribe Claude Code JSONL logs to human-readable text

Project description

claude-transcriber

Transcribe Claude Code JSONL logs to human-readable text.

Installation

pip install claude-transcriber

CLI Usage

# Transcribe a session log
claude-transcriber ~/.claude/projects/-Users-you-code-myproject/SESSION_ID.jsonl

# Save to file
claude-transcriber session.jsonl -o transcript.txt

# From stdin
cat session.jsonl | claude-transcriber

Library Usage

from claude_transcriber import Transcriber, transcribe_file

# Transcribe a whole file
text = transcribe_file("session.jsonl")

# Or record by record
t = Transcriber()
for record in records:
    result = t.transcribe(record)
    if result:
        print(result)

Output Format

The output matches Claude Code's /export format:

  • prefix for assistant messages
  • prefix for user messages
  • Tool calls shown as ⏺ ToolName(args...)
  • Tool output shown with continuation markers

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

claude_transcriber-0.3.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

claude_transcriber-0.3.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file claude_transcriber-0.3.2.tar.gz.

File metadata

  • Download URL: claude_transcriber-0.3.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for claude_transcriber-0.3.2.tar.gz
Algorithm Hash digest
SHA256 69d38a06cca8dc2e0d568f35cdf1b2991b056e8490a2e1da6219c0b479ae7a0d
MD5 15ae5c79e4daf3b8d2b54193960b1ad6
BLAKE2b-256 f9778bd5019b324cd5c619e274c954d50df9cc6e2839ce3fd98b9bfd34491d55

See more details on using hashes here.

File details

Details for the file claude_transcriber-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_transcriber-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3449c599d66260994beb6f37e0616a17cb0ed236596f2d91c0845a165b14d3b8
MD5 27a5c190b82e380654b346e45e886711
BLAKE2b-256 984fc9a872a9a25a5edb348d92da08d946bcae5740c7453ca2587f0b213187c5

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