Skip to main content

AutoDocify CLI

Overview

AutoDocify CLI is a command-line tool designed to automate the generation of various project documentation, including READMEs, technical documentation, Swagger specifications, and test files. Leveraging AI, it streamlines your documentation workflow, saving you valuable time and effort. It currently supports Gemini, OpenAI, and Bard as language models (LLMs).

[TOC]

Installation Instructions

Prerequisites:

  • Python 3.8 or higher
  • pip (Python package installer)

Installation:

  1. Clone the repository:

    git clone <REPOSITORY_URL>
    cd <PROJECT_NAME>
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Configuration (Optional): Set your AI API keys and backend URLs in the .env file. An example .env file (.env.example) is provided. You need to replace the placeholder values with your actual keys.

Usage Guide

The AutoDocify CLI offers several commands to generate different types of documentation. All commands accept a base_dir argument to specify the project directory. If not provided, it defaults to the current working directory. The llm argument allows you to specify the LLM to use ("gemini", "openai", or "bard").

Basic Usage:

autodocify <command> [options]

Available Commands:

  • greet: A simple greeting command.
  • generate-readme: Generates a README.md file.
  • generate-tests: Generates test files (currently supports Python's pytest).
  • generate-docs: Generates technical documentation.
  • generate-swagger: Generates Swagger documentation (JSON or YAML).

Examples:

  • Generate a README using Gemini:

    autodocify generate-readme --llm gemini --output-file README_gemini.md
    
  • Generate tests using Bard in a specific directory:

    autodocify generate-tests --base-dir /path/to/my/project --llm bard
    
  • Generate Swagger documentation as YAML:

    autodocify generate-swagger --format yaml --output-file swagger.yaml
    

Configuration

AutoDocify uses a .env file for configuration. You can customize settings like the backend URL and AI API keys. Refer to the .env.example file for the structure and available options. Remember to rename .env.example to .env after setting your configurations.

Technical Details

  • Programming Language: Python
  • Framework: Typer (for CLI), Rich (for console output)
  • Libraries: requests, pydantic-settings, google.generativeai (for Gemini), OpenAI Python library (for OpenAI), potentially others depending on LLM support.
  • Architecture: The CLI interacts with an AI backend service (currently a placeholder, but the structure supports different LLMs) to generate the documentation.

Contribution Guidelines

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and ensure they are well-documented and tested.
  4. Commit your changes with clear commit messages.
  5. Submit a pull request. Please follow our coding standards and ensure your code passes all tests.

License

This project is licensed under the <LICENSE_NAME> License - see the LICENSE file for details.

FAQs

  • Q: What AI models are supported?

    • A: Currently, Gemini, OpenAI, and Bard are supported. Support for more LLMs may be added in future releases.
  • Q: How can I customize the generated documentation?

    • A: You can customize the output by modifying the prompts templates found in the prompt_templates directory, adjusting settings in the .env file, or adding arguments to the CLI commands.
  • Q: What if the AI generation fails?

    • A: The CLI includes robust error handling. It will display informative error messages, which often provide hints to help debug the problem. Contact support if you're unable to resolve the issue.

Support

For support or bug reports, please open an issue on the GitHub repository. For urgent issues, contact <YOUR_EMAIL>

Metadata

Release files for autodocify-cli 0.5.0

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

Source distribution (sdist)

Source distribution for autodocify-cli 0.5.0
File Size Uploaded Provenance
autodocify_cli-0.5.0.tar.gz 19.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for autodocify-cli 0.5.0
File Interpreter ABI Platform
autodocify_cli-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.8 kB

Release files / autodocify_cli-0.5.0.tar.gz

Download URL autodocify_cli-0.5.0.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
753d96ec89e8ca91b874f38ead6fc4a2367176294bf80f11dd786cf60bbb02a7
BLAKE2b-256 checksum
How to use checksums
0c99c11921a720ac5ebd422b95ec0f903867ef215c26e0d635d5d5b6edbc8807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.13.1 Linux/6.8.0-1020-azure

Release files / autodocify_cli-0.5.0-py3-none-any.whl

Download URL autodocify_cli-0.5.0-py3-none-any.whl
Size 27.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
651d79b18c3d89943fddbb4b51f8b60c81c7abf1cd6503814e2f5efef80b110d
BLAKE2b-256 checksum
How to use checksums
5b72411212e779d826f6c6bf5db8f21e3f9995c1bf464d90eab224e9194d5f5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.13.1 Linux/6.8.0-1020-azure

Security for autodocify-cli 0.5.0

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