Skip to main content

gpt2md

A simple tool to convert your ChatGPT conversation to Markdown files.

gpt2md allows you to convert your conversations on ChatGPT to local Markdown files. This is done by extracting the conversation data from the conversations.json file when you download your profile data from OpenAI's website. gpt2md converts the data from this file into readable files you can easily store locally. This gives you the ability to store your data in a manner like it's presented to you on the ChatGPT website.

Installation

Use the package manager pip to install gpt2md.

pip install gpt2md

Usage

You can use gpt2md as a library in Python or as a command-line tool.

In order for gpt2md to convert your data into Markdown files, you need to provide a file with your conversation history with ChatGPT. This file (among some others) can be downloaded from the ChatGPT website

  1. Log in to the ChatGPT website.
  2. Click on your profile avatar.
  3. Click on Settings > Data controls.
  4. Under the Export data section, click on Export.
  5. In the info box, click Confirm export.
  6. You should receive an e-mail containing a link to your archive (in ZIP-format).
  7. Once extracted, look for the conversations.json file. This is the input file you need to provide to gpt2md.

Usage in Python

from gpt2md import Gpt2md

parser = Gpt2md(input_file="conversations.json", output="conversations", verbose=True)
parser.parse()

Usage via the CLI

gpt2md -v conversations.json -o conversations

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

gpt2md is licensed under the MIT license.

Metadata

Release files for gpt2md 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpt2md 0.1
File Size Uploaded
gpt2md-0.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpt2md 0.1
File Interpreter ABI Platform
gpt2md-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / gpt2md-0.1.tar.gz

Download URL gpt2md-0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
12766d3eacb2b3f344dc35b1d3a91272f71c59ff094947e639e7a1ef251231b0
BLAKE2b-256 checksum
How to use checksums
8a39574d20d18519a20fca55374b4de9bd5b22205ddc882c4ff9c9a3d54b165b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / gpt2md-0.1-py3-none-any.whl

Download URL gpt2md-0.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85738ff13f92516edd255e3e31625e1b9453c3b34f9eecbf696f43c7bf392913
BLAKE2b-256 checksum
How to use checksums
d13be637cf61064ddc9b70da64cbaf59d1ad1b7d1e8f8edc71df3f337c120f5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page