Catalog PyPI
PACKAGE EXPLORERView in registry

addcom

PyPI

a CLI tool for adding comments to your source code files

Versions collected1
Direct dependencies4From release 1.0.3
Last observed20 Oct, 19:16 UTC

README

Version 1.0.3 documentation

ADDCOM

addcom is a CLI source code documenter tool which provides coders with an easy way to add comments to their source code files. Give it a relative/absolute path to your file and it will analyze its contents and add comments using a Large Language Model's chat completion.

addcom

See a demo of the functionality on YouTube: addcom-demo

Setup Instructions

Prerequisites

Make sure Python is installed on your system (you can download it here: https://www.python.org/downloads/).

1. Install the tool using pip

pip install addcom

2. Default: Create an account and generate the API key here: https://console.groq.com/

By default, addcom uses the Groq API endpoint for chat completion. However, you can specify a custom endpoint using the --base-url or -u flag option. (If you do this, make sure to obtain an appropriate API key and specify the model supported by the chosen provider using the --model/ -m option).

3. Set the API key

There are 3 ways to set your API key:

  • You can expose the API key to the terminal:

    Command Prompt

    set GROQ_API_KEY=your_api_key_here
    

    PowerShell

    $env:ADDCOM_API_KEY="your_api_key_here"
    

    Bash

    $env:ADDCOM_API_KEY="your_api_key_here"
    
  • You can provide the key using the --api-key/ -a option flag:

    addcom [OPTIONS] FILE_PATH(S) -a "your_api_key"
    
  • You can set the API key in the TOML file.

4. Run addcom.

addcom [OPTIONS] FILE_PATH(S)...

Configuration via TOML file

You can specify your preferred settings for the CLI tool by creating and editing a TOML configuration file. It will allow you to customize the default options to tailor the tool's behaviour to your needs. Learn more about TOML on the official website.

Important!: This will only work if you put addcom_config.toml in your home directory.

The supported arguments as of now are:

  • model - specify the LLM to be used.
  • stream - allow continous printing of model outputs as they are generated (can be set to "true" or "false").
  • api_key - specify the api_key to be used for the API.
  • context - path to the context file (provide the LLM with the commented file to base the comment style off of)

Windows Path Handling: When specifying the location of the context file, using standard Windows path single backslashes () can cause parsing errors, as tomllib treats those as escape characters. Windows users should specify paths with double backslashes (e.g., context = "examples\commented.py" instead of context = "examples\commented.py").

A sample configuration file config.toml.example is provided in the repository.

Usage

Arguments

You can add comments to one or multiple source code files. Just type addcom and specify the file paths.

 addcom examples/sample.py examples/test.py

Options

OptionShortcutTypeDefault
--helpFLAGShow help messageN/A
--version-vFLAGSee the current tool versionN/A
--context-cPATHPath to example file to provide context for the LLMNone
--output-oPATHSpecify an ouput filename to save the commented codeNone
--stream-sFLAGStream the response live as it updatesNone
--api-key-aTEXTProvide API key for authenticationNone
--base-url-uTEXTSpecify base URL for the APINone
--model -oTEXTSpecify a LLM to use for comment generationNone

Notes

Providing CLI options will override the default TOML settings.

--output / -o - If multiple files are specified, the commented source code from all files will be combined and saved into a single output file.

--api-key / -a - As mentioned above, there are 3 ways to provide the API key to the tool, passing the API key using this option will override the API key that was exposed to the terminal/the API key set in the TOML.

--model/ -m - You can find models compatible with the default API endpoint here: https://console.groq.com/docs/models

--base-url / u - If you decide to use a custom API endpoint, make sure to obtain an API key and specify a Large Language Model supported by the API of your choice.

Example: using OpenRouter API as base URL

 addcom -u https://openrouter.ai/api/v1 -a "your_api_key" -m meta-llama/llama-3.1-8b-instruct:free examples/test.py

Downloads & popularity

1downloads
1-day window · source-reported counts18 Oct 2026
94.50
2026-07-23: 4 · observed 2026-10-20T22:00:18.4681849Z · period 2026-07-23–2026-07-232026-07-24: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-07-24–2026-07-242026-07-27: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-07-27–2026-07-272026-07-28: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-07-28–2026-07-282026-08-01: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-02–2026-08-022026-08-03: 6 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-03–2026-08-032026-08-09: 3 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-09–2026-08-092026-08-13: 2 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-13–2026-08-132026-08-14: 5 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-14–2026-08-142026-08-17: 2 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-17–2026-08-172026-08-20: 2 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-20–2026-08-202026-08-22: 2 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-22–2026-08-222026-08-23: 5 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-23–2026-08-232026-08-24: 9 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-24–2026-08-242026-08-25: 4 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-25–2026-08-252026-08-26: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-26–2026-08-262026-08-31: 4 · observed 2026-10-20T22:00:18.4681849Z · period 2026-08-31–2026-08-312026-09-01: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-01–2026-09-012026-09-02: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-02–2026-09-022026-09-07: 7 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-07–2026-09-072026-09-12: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-12–2026-09-122026-09-22: 2 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-22–2026-09-222026-09-24: 5 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-24–2026-09-242026-09-26: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-26–2026-09-262026-09-27: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-27–2026-09-272026-09-28: 9 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-28–2026-09-282026-09-29: 4 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-29–2026-09-292026-09-30: 7 · observed 2026-10-20T22:00:18.4681849Z · period 2026-09-30–2026-09-302026-10-02: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-02–2026-10-022026-10-05: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-05–2026-10-052026-10-06: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-06–2026-10-062026-10-07: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-07–2026-10-072026-10-08: 4 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-08–2026-10-082026-10-09: 6 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-09–2026-10-092026-10-10: 2 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-10–2026-10-102026-10-13: 2 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-13–2026-10-132026-10-15: 3 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-15–2026-10-152026-10-17: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-17–2026-10-172026-10-18: 1 · observed 2026-10-20T22:00:18.4681849Z · period 2026-10-18–2026-10-18
23 Jul18 Oct

pypistats · 40 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-18 – 2026-10-1812026-10-20T22:00:18.4681849Z
2026-10-17 – 2026-10-1712026-10-20T22:00:18.4681849Z
2026-10-15 – 2026-10-1532026-10-20T22:00:18.4681849Z
2026-10-13 – 2026-10-1322026-10-20T22:00:18.4681849Z
2026-10-10 – 2026-10-1022026-10-20T22:00:18.4681849Z
2026-10-09 – 2026-10-0962026-10-20T22:00:18.4681849Z
2026-10-08 – 2026-10-0842026-10-20T22:00:18.4681849Z
2026-10-07 – 2026-10-0712026-10-20T22:00:18.4681849Z
2026-10-06 – 2026-10-0612026-10-20T22:00:18.4681849Z
2026-10-05 – 2026-10-0512026-10-20T22:00:18.4681849Z
2026-10-02 – 2026-10-0212026-10-20T22:00:18.4681849Z
2026-09-30 – 2026-09-3072026-10-20T22:00:18.4681849Z
2026-09-29 – 2026-09-2942026-10-20T22:00:18.4681849Z
2026-09-28 – 2026-09-2892026-10-20T22:00:18.4681849Z
2026-09-27 – 2026-09-2712026-10-20T22:00:18.4681849Z
2026-09-26 – 2026-09-2612026-10-20T22:00:18.4681849Z
2026-09-24 – 2026-09-2452026-10-20T22:00:18.4681849Z
2026-09-22 – 2026-09-2222026-10-20T22:00:18.4681849Z
2026-09-12 – 2026-09-1212026-10-20T22:00:18.4681849Z
2026-09-07 – 2026-09-0772026-10-20T22:00:18.4681849Z
2026-09-02 – 2026-09-0212026-10-20T22:00:18.4681849Z
2026-09-01 – 2026-09-0112026-10-20T22:00:18.4681849Z
2026-08-31 – 2026-08-3142026-10-20T22:00:18.4681849Z
2026-08-26 – 2026-08-2612026-10-20T22:00:18.4681849Z
2026-08-25 – 2026-08-2542026-10-20T22:00:18.4681849Z
2026-08-24 – 2026-08-2492026-10-20T22:00:18.4681849Z
2026-08-23 – 2026-08-2352026-10-20T22:00:18.4681849Z
2026-08-22 – 2026-08-2222026-10-20T22:00:18.4681849Z
2026-08-20 – 2026-08-2022026-10-20T22:00:18.4681849Z
2026-08-17 – 2026-08-1722026-10-20T22:00:18.4681849Z
2026-08-14 – 2026-08-1452026-10-20T22:00:18.4681849Z
2026-08-13 – 2026-08-1322026-10-20T22:00:18.4681849Z
2026-08-09 – 2026-08-0932026-10-20T22:00:18.4681849Z
2026-08-03 – 2026-08-0362026-10-20T22:00:18.4681849Z
2026-08-02 – 2026-08-0212026-10-20T22:00:18.4681849Z
2026-08-01 – 2026-08-0112026-10-20T22:00:18.4681849Z
2026-07-28 – 2026-07-2812026-10-20T22:00:18.4681849Z
2026-07-27 – 2026-07-2712026-10-20T22:00:18.4681849Z
2026-07-24 – 2026-07-2412026-10-20T22:00:18.4681849Z
2026-07-23 – 2026-07-2342026-10-20T22:00:18.4681849Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.323 Nov 20244

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
arilloid/addcom

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:252ed8c4212be8fb541b2f8e1a1abbef77109fbc8f06eb7728e463d6a920dc91