Skip to main content

AI-powered Code Generation and Refactoring Tool

Project description

AI-powered Documentation and Test Generation Tool

PyPI - Version PyPI - Python Version write-the - docs write-the - test codecov Hits

Write-the is an AI-powered documentation and test generation tool that leverages GPTs 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

Installation

pip install write-the

Features

Write-the offers the following AI-driven features:

  • Write-the Docs: Automatically generate documentation for your codebase, including class and function descriptions, parameter explanations, and examples.
  • Write-the Tests: Create test cases for your code, ensuring thorough test coverage and better code quality.
  • Write-the Convert: Convert code and data from any format into another.
  • Write-the Refactor: Receive refactoring suggestions, reduce code complexity, optimize performance, and fix bugs (TBD).

Requirements

  • Python 3.9 or higher
  • OpenAI API key

Usage

To use write-the you must set an OPENAI_API_KEY environment variable (e.g. export OPENAI_API_KEY=...).

Docs:

write-the docs [OPTIONS] [PATH_TO_SOURCE_CODE]

Mkdocs:

write-the mkdocs [OPTIONS] [PATH_TO_SOURCE_CODE]

Tests:

write-the tests [OPTIONS] [PATH_TO_SOURCE_CODE]

Convert:

write-the convert [OPTIONS] IN_FILE [OUT_FILE]

For detailed information on available options and parameters, refer to the official (write-the generated) documentation.

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 license.

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

write_the-0.9.1.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

write_the-0.9.1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file write_the-0.9.1.tar.gz.

File metadata

  • Download URL: write_the-0.9.1.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for write_the-0.9.1.tar.gz
Algorithm Hash digest
SHA256 7b26f8b60ecd6619406e12fdf54b8f8868c1dce1056528438babee72725b1151
MD5 7321bea1d3bd7147260e4a8d9c64c3e2
BLAKE2b-256 11c7767c39d6f76b858de0728c096719334b809269d52c06b0779931f6e2ded2

See more details on using hashes here.

File details

Details for the file write_the-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: write_the-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for write_the-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32521ef4238ecb5ffa25368c84d4d2bd4059d915fde3a1e071bad2bfc64f661c
MD5 5f0b899ee7905d9bcd6f68c9423c8c58
BLAKE2b-256 22476cb0f1fea95f14cb05b9a2fec72db66f93413bd1030fa05feefd2723cdd4

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