https://github.com/Wytamma/write-the
AI-powered Documentation and Test Generation Tool
https://github.com/Wytamma/write-the
ai cli docs gtp tests workflow
Last synced: 5 days ago
JSON representation
AI-powered Documentation and Test Generation Tool
- Host: GitHub
- URL: https://github.com/Wytamma/write-the
- Owner: Wytamma
- License: mit
- Created: 2023-04-15T14:15:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-06-26T05:11:17.000Z (12 months ago)
- Last Synced: 2026-04-15T10:08:33.311Z (2 months ago)
- Topics: ai, cli, docs, gtp, tests, workflow
- Language: Python
- Homepage: http://write-the.wytamma.com
- Size: 4.55 MB
- Stars: 121
- Watchers: 3
- Forks: 15
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-ai-devtools - write-the - powered Python tool that auto-generates documentation and tests from code, and assists with refactoring. | CLI ยท Library ยท Local | [Docs](https://github.com/Wytamma/write-the#readme) / [Repo](https://github.com/Wytamma/write-the) | (Browse The Shelves / Documentation agents)
README

AI-powered python code documentation and test generation tool
[](https://pypi.org/project/write-the)
[](https://pypi.org/project/write-the)
[](https://write-the.wytamma.com/)
[](https://github.com/Wytamma/write-the/actions/workflows/tests.yml)
[](https://app.codecov.io/gh/Wytamma/write-the/tree/master)
Write-the is an AI-powered documentation and test generation tool that leverages Generative Pre-trained Transformers (GPTs) / Large Language Models (LLMs) to automatically write tests, generate documentation, and refactor code. It is designed to streamline the development process, improve code quality, and increase productivity.

## Real-world examples
- [`write-the docs` to write the docs for the `write-the docs` command ๐ค](https://github.com/Wytamma/write-the/blob/5d7a5a22d082be6ee870c694ef2d24e6d1610758/write_the/commands/docs/docs.py#L26)
- [`write-the mkdocs` to build the documentation site for `write-the` ๐ค](https://write-the.wytamma.com/)
- [`write-the tests` to write tests for `write-the docs` ๐ค](https://github.com/Wytamma/write-the/commit/6b6c8a08d7991e07e4972281c471f7842c04dda0)
- [`write-the docs` and `write-the mkdocs` to build documenation for `autoresearcher` ๐ค](https://github.com/eimenhmdt/autoresearcher/pull/17)
- [`write-the docs` and `write-the mkdocs` to build documenation for `CUPCAKEAGI` ๐ค](https://github.com/AkshitIreddy/CUPCAKEAGI/pull/4)
## Installation
```console
pip install write-the
```
`write-the` should ideally be installed in an isolated enviroment with a tool like [`pipx`](https://github.com/pypa/pipx).
```console
pipx install write-the
```
## Features
Write-the offers the following AI-driven features:
- [Write-the Docs](https://write-the.wytamma.com/commands/docs/): Automatically generate documentation for your codebase, including class and function descriptions, parameter explanations, and examples.
- [Write-the Tests](https://write-the.wytamma.com/commands/tests/): Create test cases for your code, ensuring thorough test coverage and better code quality.
- [Write-the Convert](https://write-the.wytamma.com/commands/convert/): Convert code and data from any format into another.
In addition write-the can also [manage OpenAI models](https://write-the.wytamma.com/commands/model/) and [scaffold MkDocs websites](https://write-the.wytamma.com/commands/mkdocs/).
## Requirements
- Python 3.9 or higher
- OpenAI API key
To use `write-the` you must set an `OPENAI_API_KEY` environment variable (e.g. `export OPENAI_API_KEY=...`).
See [https://platform.openai.com/api-keys](https://platform.openai.com/api-keys) for details.
## Documentation
For detailed information on available options and parameters, refer to the official (`write-the` generated) [documentation](https://write-the.wytamma.com/).
## Roadmap
The main goal for write-the is to develop a generic module system to document, test, and optimise code in any language in a reliable and repatable way.
For a detailed project roadmap, including planned features, improvements, and milestones, please see our Project Timeline (TBD).
## Contributing
We welcome contributions from the community. If you would like to contribute to Write-The, please follow these steps:
- Fork the repository and create a new branch for your feature or bugfix.
- Develop your changes and ensure that your code follows the project's coding standards.
- Create a pull request with a clear description of your changes and any relevant documentation.
- For more information on contributing, please see our Contributing Guide.
## License
`write-the` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.