Skip to main content

gpt-do

This is a handy-dandy CLI for when you don't know wtf to do.

Instead of furiously grepping through man pages, simply use do (or ddo if on bash/zsh), and have GPT-3 do all the magic for you.

Check out the blog post here.

Demo

Click to play:

asciicast

Installation

We recommend using pipx:

$ pipx install gpt-do
$ which do
~/.local/bin/do

However you can also use brew:

$ brew install yasyf/do/do
$ which do
/opt/homebrew/bin/do

Or pip:

$ pip install gpt-do
$ which do
~/.asdf/installs/python/3.11.0/bin/do

Usage

n.b. If you're on bash or zsh, do is a reserved keyword, so you'll have to use the alias ddo.

n.b. The default model used is GPT-3. Please ensure you have sufficient credits in your OpenAI account to use it.

$ export OPENAI_API_KEY=xxx # stick this in your bash_profile
$ do amend the message of my last commit to "It works!"
This command will amend the message of the last commit to 'It works!'.
git commit --amend -m 'It works!'
Do you want to continue? [y/N]: y
[main 3e6a2f6] It works!!
 Date: Thu Dec 22 01:15:40 2022 -0800
 5 files changed, 1088 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 .gitmodules
 create mode 100644 README.md
 create mode 100644 poetry.lock
 create mode 100644 pyproject.toml

Metadata

Release files for gpt-do 0.1.16

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

Source distribution (sdist)

Source distribution for gpt-do 0.1.16
File Size Uploaded Provenance
gpt_do-0.1.16.tar.gz 14.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gpt-do 0.1.16
File Interpreter ABI Platform
gpt_do-0.1.16-py3-none-any.whl Python 3 none any Details

Total release size: 31.4 kB

Release files / gpt_do-0.1.16.tar.gz

Download URL gpt_do-0.1.16.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e8c6b563fdcff67b048ae9a233500fcff870c9d547df86c9afc1966cda2f751
BLAKE2b-256 checksum
How to use checksums
f7db4ad300d9d405017d7eab313ac18a563d52a84dd59d9c075e63d4cee8eff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.9.16 Darwin/21.6.0

Release files / gpt_do-0.1.16-py3-none-any.whl

Download URL gpt_do-0.1.16-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
817f4100663a525a56561265c6ed44207d073141d41c9bfdcffd46a981dddc0f
BLAKE2b-256 checksum
How to use checksums
020585efa1ba4e1ccb1d047d2d196e969441c28b81620237e03d65474909bf87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.9.16 Darwin/21.6.0

Security for gpt-do 0.1.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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