Skip to main content

Auto-generate documentation for code.

Project description

Timeline of Events: https://irantimelines.com/
Read wiki: https://en.wikipedia.org/wiki/Mahsa_Amini_protests
Or watch YouTube: https://www.youtube.com/watch?v=wZpkmUx4RFc

But, please don't scroll passed this.
Innocent lives need your voice.

Start by following #MahsaAmini on Twitter.

DocGPT

DocGPT (docgpt) is a CLI tool that automatically generates documentation for code.

Supported Languages: Python

:point_right: All the in-code documentation of docgpt project are generated with docgpt! So meta! :point_left:

Installation

pip install docgpt

API Key

DocGPT depends on the GPT3 model, hence the name, trained and served by OpenAI.
Register for an account and get your API key here: https://openai.com/api/
Check OpenAI's Pricing and use it responsibly (roughly speaking, auto-documenting 4 pages of code with docgpt costs $0.05 USD).

Set the OPENAI_API_KEY environment variable, or specify via --api_key flag. The key will get cached in ~/.docgpt for future use.

Usage

# conventional use
docgpt <source.py> --target <target.py>

# piped
cat <source.py> | docgpt --target <target.py>

# overwrite
docgpt <source.py> --overwrite

To see available options try docgpt --help

Contributing

DocGPT is GNU GPL licensed and we intend to keep it purely open-source. We welcome contributions to docgpt. Your forks and pull-requests are always welcome.

To open a feature request or report a bug, please open an issue here.

Cause

DocGPT is open-sourced as part of the global action in solidarity with Iranians who are courageously demonstrating peacefully for their human rights.

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

docgpt-0.1.1.tar.gz (230.2 kB view details)

Uploaded Source

Built Distribution

docgpt-0.1.1-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file docgpt-0.1.1.tar.gz.

File metadata

  • Download URL: docgpt-0.1.1.tar.gz
  • Upload date:
  • Size: 230.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for docgpt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6f9ae8f21b65b537157c573219799b793d6416de7a55b07c2c20b97db3f52e81
MD5 3ceeadd19579b04aef627f266ed00601
BLAKE2b-256 7990c212b9e9fbef7369287e58f96cd265efc3defc8f07c0b903d7ad1f655999

See more details on using hashes here.

File details

Details for the file docgpt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: docgpt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for docgpt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad76a332f08823339c9a2ade4259179df6cc7aced12a4e1f5b1a131deab7173d
MD5 15c6ede67b2179f4db447db6b3784edd
BLAKE2b-256 b535f5d2161521320db2cc08c454a5ef37b944c77ebf4b9b52d6242daa04267c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page