
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Adhoc is a command-line tool designed to automatically document changes in your codebase. By integrating with language models, it generates detailed explanations of code modifications and compiles them into professional documentation formats such as LaTeX, Markdown, or Word. This tool streamlines the documentation process, making it effortless for developers to maintain up-to-date records of their code evolution.
To install Adhoc, you can use pip:
pip install adhoc-python
Ensure you have the necessary dependencies listed in the requirements.txt
file.
Adhoc provides a set of commands to initialize your project, commit changes, generate documentation, and configure settings. Below is an explanation of each command and how to use it.
Before using Adhoc, you need to initialize your project:
adhoc init --model "your ollama model"
What it does:
.Adhoc
directory in your project root to store configurations and databases.After making changes to your codebase, use the following command to commit those changes and generate explanations:
adhoc commit -m "Your commit message"
Options:
-m, --message
: (Optional) A commit message describing the changes.What it does:
To create documentation of your codebase and its changes, run:
adhoc generate
What it does:
documentation.tex
, documentation.md
, or documentation.docx
) is created in your project directory.Customize Adhoc settings using the adhoc config
command:
adhoc config -d md -u "Your Name"
Options:
-d, --document-format
: Sets the output document format. Accepts md
for Markdown, tex
for LaTeX, or word
for Word documents.-u, --username
: Sets the author name to be used in the documentation.What it does:
config.json
in the .Adhoc
directory) with your preferences.Example:
adhoc config -d word -u "Shreyas"
Dependencies:
jinja2
requests
watchdog
python-docx
(for Word document generation)Additional dependencies are listed in requirements.txt
.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
"Life is an ad hoc affair. It has to be improvised all the time because of the hard fact that everything we do changes what is. This is distressing to people who would like to see things beautifully planned out and settled once and for all. That cannot be."
― Jane Jacobs
Happy coding!
FAQs
Auto Document Codebase Changes in LaTeX, Markdown, or Word
We found that adhoc-python 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.