Logedit

Latest version: v0.1.1

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.1

Added
- Added check for GPT-4 availability, falling back to GPT-3.5-turbo if not available.
- Improved terminal styling with the `termcolor` package for better readability.

Changed
- Fixed issues with fetching diff messages using threads by fetching them in series before spawning threads for summaries.
- Reversed the order of entries in the CHANGELOG.md file for better organization.

Fixed
- Implemented fixes for uploading to pipy.org, including updates to .gitignore, MANIFEST.in, and setup.py files.

0.1.0

Added
- Implemented parallel processing of commit summaries using `ThreadPoolExecutor` to improve speed.
- Added backoff and retries to improve reliability during commit summarization.
- Integrated TikToken to limit the number of tokens passed to GPT-3.5, ensuring a maximum of 2048 tokens.

Changed
- Moved messages into a separate JSON file for easier management of prompt text.
- Updated file handling to use context managers for proper file closing and avoiding resource leaks.

Fixed
- Added error handling for missing `OPENAI_API_KEY` environment variable, raising a `ValueError` if not set.

0.0.1

Added
- Initial release of the Logedit package.
- Implemented core functionality for retrieving commit history between two version tags.
- Added capability to use OpenAI's GPT-3.5-turbo to summarize each commit.
- Functionality to feed the tail of the current `CHANGELOG.md` file, the new version, and the commit summaries to GPT-3.5-turbo (or GPT-4 if specified), and generate a changelog entry in the same format as the existing `CHANGELOG.md`.
- Introduced `--version`, `--changelog`, and `--append` arguments to specify version, path to changelog file, and whether to append the new entry to the original changelog file, respectively.
- Added feature to automatically append the new changelog entry to the specified changelog file if `--append` is provided.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.