Skip to main content

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

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt2md-0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

gpt2md-0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file gpt2md-0.1.tar.gz.

File metadata

  • Download URL: gpt2md-0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for gpt2md-0.1.tar.gz
Algorithm Hash digest
SHA256 12766d3eacb2b3f344dc35b1d3a91272f71c59ff094947e639e7a1ef251231b0
MD5 21a791baee08d5027b4b0846d4f420c6
BLAKE2b-256 8a39574d20d18519a20fca55374b4de9bd5b22205ddc882c4ff9c9a3d54b165b

See more details on using hashes here.

File details

Details for the file gpt2md-0.1-py3-none-any.whl.

File metadata

  • Download URL: gpt2md-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for gpt2md-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85738ff13f92516edd255e3e31625e1b9453c3b34f9eecbf696f43c7bf392913
MD5 c6a17839cf777dc49b988bbb3a3ecd02
BLAKE2b-256 d13be637cf61064ddc9b70da64cbaf59d1ad1b7d1e8f8edc71df3f337c120f5d

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