AI Header Generator
AI Header Generator is a Python package that generates headers for your code files using OpenAI's GPT-4. It supports various file types and can be easily customized via a configuration file.
Software Requirements
- Python 3.8 or higher
- Pip (package installer for Python)
- OpenAI API Key
- Git
Installation Instructions
- Clone the repository to your local machine: git clone https://github.com/your-username/your-repo.git
- Navigate to the project directory: cd ai-generated-headers
- Create a virtual environment: python -m venv venv
- Activate the virtual environment: source venv/bin/activate (for Unix-based systems) or venv\Scripts\activate (for Windows)
- Install the project dependencies: pip install -r requirements.txt
- Copy the config.ini.sample file to config.ini: cp config.ini.sample config.ini
- Open config.ini and add your OpenAI API Key.
- You're ready to go!
Usage
To generate headers for your code files, run:
ai-header-generator
To generate a README file based on the generated headers, use the --readme option:
ai-header-generator --readme
To use a custom configuration file, use the --config option:
ai-header-generator --config path/to/your/config.ini
Configuration
The config.ini file contains the following configuration options:
- api_key: Your OpenAI API key. folder_path: The path to the folder containing the code files to be analyzed.
- analysis_file_extension: The file extension of the code files to be analyzed (e.g., .sql).
- template_file: The path to the JSON file containing the template for generating headers.
Modify these options to customize the behavior of the AI Header Generator.
Metadata
Release files for ai-header-generator 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_header_generator-0.2.2.tar.gz | 11.3 kB | Without provenance | Details for ai_header_generator-0.2.2.tar.gz |
Release files / ai_header_generator-0.2.2.tar.gz
| Download URL | ai_header_generator-0.2.2.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6876f8f61dd2406c706eda74e348e6c727f5976af53b0d2a0894e73fd3d9f400
|
|
BLAKE2b-256 checksum How to use checksums |
ae4a4b8f5ad5b90a63131199291f245e53341f636cb42f3b71cabc912c9a4820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Security for ai-header-generator 0.2.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.