A tool to generate readme
Project description
LMIG Generate README
Description
LMIG Generate README is a tool designed to automate the creation of comprehensive README files for projects. It analyzes the project's structure and content, using Liberty GPT AI to generate a professional README file, enhancing documentation and improving project understanding.
Key Features
- Automatically clones the specified GitHub repository.
- Extracts project tree structure and relevant file contents.
- Communicates with Liberty GPT AI to generate a detailed README file.
- Writes the generated README back into the repository.
- Supports a wide range of file types for content extraction.
- Handles potential file size and depth limitations with fallback mechanisms.
Technology Stack
- Python: Main programming language.
- Liberty GPT AI: For intelligent README generation.
- Bash: For environment control and scripting.
- Python Libraries:
requests: For API calls.python-decouple: For managing environment variables.setuptools,wheel: For packaging.
Installation
Prerequisites
- Python version >= 3.6
- Git installed on your machine.
- Bash shell, especially if you're on Windows, use something like Git Bash.
- Access token for Liberty GPT AI.
Setup
-
Clone this repository:
git clone https://github.com/lmigtech/generate-readme.git cd generate-readme
-
Create a
.envfile in the root directory and add your API token:USER_ACCESS_TOKEN='YOUR_ACCESS_TOKEN'
-
Install required Python packages using pip:
pip install -r requirements.txt
-
Ensure environment variables are loaded; for bash:
source .env
Usage
Run the main script to generate a README:
python -m generate_readme.main
You can customize the output directory for analysis files or decide whether to back up existing README files through command prompts.
Project Structure
lmig_generate_readme/
├── bin
│ └── runMain
├── generate_readme
│ ├── __init__.py
│ ├── main.py
│ └── request.py
├── lmig_generate_readme.egg-info
│ ├── dependency_links.txt
│ ├── entry_points.txt
│ ├── PKG-INFO
│ ├── SOURCES.txt
│ └── top_level.txt
├── .gitignore
├── git_push.sh
├── LICENSE
├── MANIFEST.in
├── pyproject.toml
├── README.md
├── README.md.backup
├── requirements.txt
└── setup.py
Configuration
Ensure the .env file is correctly configured with the USER_ACCESS_TOKEN. Adjustments to the code may be necessary if your development environment requires further customization.
Contributing
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE file for details.
By utilizing this repository, you agree to adhere to our guidelines and licensing agreements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lmig_generate_readme-1.0.2-py3-none-any.whl.
File metadata
- Download URL: lmig_generate_readme-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a875d07fbc66bdc1d69cd78ec1350cbaf9a26c1fab8dd31b1671f9e76814f2a
|
|
| MD5 |
bc8a1f153490f436e9dc32ab2549fa77
|
|
| BLAKE2b-256 |
2d9a039fd50dfa9d3f779c95b04a2744074b0c066610f89118da5cd1d33e0ada
|