Skip to main content

Convert and browse Grok Chat export JSON as Markdown, HTML, CSV, SQLite, and JSON.

Project description

Grok Export Viewer

PyPI License Python

Convert, browse, and search your Grok Chat export (prod-grok-backend.json) offline into Markdown, HTML (with live search), CSV, SQLite, or JSON.

Installation

pip install grok-export-viewer

Usage

# Place your JSON file in data/
grok-export-viewer -s data/prod-grok-backend.json -f html
open data/html/index.html  # macOS (use xdg-open on Linux, start on Windows)

# Other formats: md, csv, json, sqlite
grok-export-viewer -s data/prod-grok-backend.json -f csv

Sample Input JSON

Below is an example structure for prod-grok-backend.json:

{
  "conversations": [
    {
      "conversation": { "title": "Sample Chat" },
      "responses": [
        { "response": { "sender": "user", "message": "Hello" } },
        { "response": { "sender": "grok", "message": "Hi!" } }
      ]
    }
  ]
}

Features

  • Convert Grok JSON exports to multiple formats.
  • HTML output includes a searchable index.
  • Lightweight and offline processing.
  • Supports Python 3.8+.

Development

git clone https://github.com/your-username/grok-export-viewer.git
cd grok-export-viewer
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e ".[test]"
python -m pytest

Contributing

See CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for release history.

License

MIT License. See LICENSE for details.

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

grok_export_viewer-0.1.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

grok_export_viewer-0.1.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file grok_export_viewer-0.1.3.tar.gz.

File metadata

  • Download URL: grok_export_viewer-0.1.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for grok_export_viewer-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6f8eae9f2957a1864d03fe4ec689682b58bb69dbbb8dd16ef43b8f75a9b17e22
MD5 7cc05354ee553a67b6c7dffe37b3131b
BLAKE2b-256 4ec2a6af26fb84371a0cfb616b20958abf493f069df258d3d676c51487d0fc79

See more details on using hashes here.

File details

Details for the file grok_export_viewer-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for grok_export_viewer-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c12bdae9995a4cd7bedb252dc4b432de40509dd9aaca85b3d7958837411c60c9
MD5 688008f2990213a66a355b04b015e1ee
BLAKE2b-256 a33b7c337e185e323d96864b7aea7a5b8b63bc7f5795492b28c922d4e66e6432

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