
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
AutoDocify is a command-line interface (CLI) tool designed to automate the generation of project documentation and placeholder test files. Leveraging the power of Large Language Models (LLMs), AutoDocify streamlines your development workflow by creating professional READMEs, basic technical documentation, and a starting point for your testing strategy
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]
Prerequisites:
pip
(Python package installer)Installation:
Clone the repository:
git clone <REPOSITORY_URL>
cd <PROJECT_NAME>
Install dependencies:
pip install -r requirements.txt
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.
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
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.
requests
, pydantic-settings
, google.generativeai
(for Gemini), OpenAI Python library (for OpenAI), potentially others depending on LLM support.This project is licensed under the <LICENSE_NAME> License - see the LICENSE file for details.
Q: What AI models are supported?
Q: How can I customize the generated documentation?
prompt_templates
directory, adjusting settings in the .env
file, or adding arguments to the CLI commands.Q: What if the AI generation fails?
For support or bug reports, please open an issue on the GitHub repository. For urgent issues, contact <YOUR_EMAIL>
FAQs
AutoDocify is a command-line interface (CLI) tool designed to automate the generation of project documentation and placeholder test files. Leveraging the power of Large Language Models (LLMs), AutoDocify streamlines your development workflow by creating professional READMEs, basic technical documentation, and a starting point for your testing strategy
We found that autodocify-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.