icodes


Nameicodes JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/a115/iCODES
SummaryLLM-powered Git archeology tool (a.k.a. Intelligent Commit Ontology Distiller and Enhanced Search)
upload_time2024-04-14 11:45:18
maintainerNone
docs_urlNone
authorJordan Dimov
requires_python<4.0,>=3.11
licenseCC0-1.0
keywords git llm archeology commit search
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # iCODES: LLM-powered Git archeology
## a.k.a. Intelligent Commit Ontology Distiller and Enhanced Search

iCODES is an innovative tool that leverages LLM techniques to analyse and index Git commit histories in context. By intelligently summarizing commit intents and enabling powerful semantic search, iCODES empowers developers to understand and navigate codebases more efficiently. 

## Features

* Intelligent commit analysis powered by large language models
* Semantic search (coming soon) to find relevant commits and code changes
* Flexible search options to filter by author, file path, and date range
* Commit timeline visualisation
* Insight extraction to identify trends and patterns in code evolution
* CLI and web-based UI (comming soon)

## Installation

iCODES requires Python 3.11 or higher. 

    pip install icodes

Since the only supported LLM backend right now is OpenAI, you will need to export your OpenAI API key to the environment variable `OPENAI_API_KEY`. You can also set the `DEFAULT_MODEL` environment variable to the GPT model you wish to use (default value is "gpt-3.5-turbo" for a reasonable price / quality ratio.)

### Alternative installation 

Or clone the repo:

    git clone https://github.com/a115/iCODES.git

It is recommended to use Poetry for dependency management. To install the dependencies, run: 

    poetry install

If this method is used, prefix all commands with `poetry run python icodes.py` (instead of `icodes`) to run the iCODES commands.

## Usage

### Inspecting a Repository

To inspect a repository with iCODES, run:

    icodes inspect-repo /path/to/repo [--branch-name BRANCH_NAME]

Replace /path/to/repo with the path to the Git repository you want to analyze. You can optionally specify a branch name using the --branch-name flag. If no branch is provided, iCODES will use the current branch for the repository.

iCODES will analyze the latest commit on the specified branch and log the changes.


### Building an Index

To build an index for a Git repository with iCODES, run the following command:

    icodes build-index <path-to-repo>

This will generate an indexed database of commit insights. 

### Searching Commits

iCODES provides a powerful search interface to find relevant commits based on various criteria. To search the indexed commit data, use the following command:

    icodes search <query> [--author AUTHOR] [--file FILE] [--start-date START_DATE] [--end-date END_DATE]

- `<query>`: The search query string to match against commit messages and details.
- `--author AUTHOR`: Filter commits by the specified author.
- `--file FILE`: Filter commits that modified the specified file path.
- `--start-date START_DATE`: Filter commits after the specified date (YYYY-MM-DD).
- `--end-date END_DATE`: Filter commits before the specified date (YYYY-MM-DD).

Example usage:

    icodes search "bug fix" --author "John Doe" --file "src/main.py" --start-date "2023-01-01" --end-date "2023-12-31"

This command will search for commits containing the phrase "bug fix" authored by "John Doe", modifying the file "src/main.py", between the dates "2023-01-01" and "2023-12-31".


## Contributing

We welcome contributions to iCODES!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/a115/iCODES",
    "name": "icodes",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": "git, llm, archeology, commit, search",
    "author": "Jordan Dimov",
    "author_email": "jdimov@a115.co.uk",
    "download_url": "https://files.pythonhosted.org/packages/35/14/1844fdb149050214ceb1f347a4689a7cf638d89f1d5e4f3e8fbfd0c0406b/icodes-0.1.3.tar.gz",
    "platform": null,
    "description": "# iCODES: LLM-powered Git archeology\n## a.k.a. Intelligent Commit Ontology Distiller and Enhanced Search\n\niCODES is an innovative tool that leverages LLM techniques to analyse and index Git commit histories in context. By intelligently summarizing commit intents and enabling powerful semantic search, iCODES empowers developers to understand and navigate codebases more efficiently. \n\n## Features\n\n* Intelligent commit analysis powered by large language models\n* Semantic search (coming soon) to find relevant commits and code changes\n* Flexible search options to filter by author, file path, and date range\n* Commit timeline visualisation\n* Insight extraction to identify trends and patterns in code evolution\n* CLI and web-based UI (comming soon)\n\n## Installation\n\niCODES requires Python 3.11 or higher. \n\n    pip install icodes\n\nSince the only supported LLM backend right now is OpenAI, you will need to export your OpenAI API key to the environment variable `OPENAI_API_KEY`. You can also set the `DEFAULT_MODEL` environment variable to the GPT model you wish to use (default value is \"gpt-3.5-turbo\" for a reasonable price / quality ratio.)\n\n### Alternative installation \n\nOr clone the repo:\n\n    git clone https://github.com/a115/iCODES.git\n\nIt is recommended to use Poetry for dependency management. To install the dependencies, run: \n\n    poetry install\n\nIf this method is used, prefix all commands with `poetry run python icodes.py` (instead of `icodes`) to run the iCODES commands.\n\n## Usage\n\n### Inspecting a Repository\n\nTo inspect a repository with iCODES, run:\n\n    icodes inspect-repo /path/to/repo [--branch-name BRANCH_NAME]\n\nReplace /path/to/repo with the path to the Git repository you want to analyze. You can optionally specify a branch name using the --branch-name flag. If no branch is provided, iCODES will use the current branch for the repository.\n\niCODES will analyze the latest commit on the specified branch and log the changes.\n\n\n### Building an Index\n\nTo build an index for a Git repository with iCODES, run the following command:\n\n    icodes build-index <path-to-repo>\n\nThis will generate an indexed database of commit insights. \n\n### Searching Commits\n\niCODES provides a powerful search interface to find relevant commits based on various criteria. To search the indexed commit data, use the following command:\n\n    icodes search <query> [--author AUTHOR] [--file FILE] [--start-date START_DATE] [--end-date END_DATE]\n\n- `<query>`: The search query string to match against commit messages and details.\n- `--author AUTHOR`: Filter commits by the specified author.\n- `--file FILE`: Filter commits that modified the specified file path.\n- `--start-date START_DATE`: Filter commits after the specified date (YYYY-MM-DD).\n- `--end-date END_DATE`: Filter commits before the specified date (YYYY-MM-DD).\n\nExample usage:\n\n    icodes search \"bug fix\" --author \"John Doe\" --file \"src/main.py\" --start-date \"2023-01-01\" --end-date \"2023-12-31\"\n\nThis command will search for commits containing the phrase \"bug fix\" authored by \"John Doe\", modifying the file \"src/main.py\", between the dates \"2023-01-01\" and \"2023-12-31\".\n\n\n## Contributing\n\nWe welcome contributions to iCODES!\n",
    "bugtrack_url": null,
    "license": "CC0-1.0",
    "summary": "LLM-powered Git archeology tool (a.k.a. Intelligent Commit Ontology Distiller and Enhanced Search)",
    "version": "0.1.3",
    "project_urls": {
        "Documentation": "https://github.com/a115/iCODES",
        "Homepage": "https://github.com/a115/iCODES",
        "Repository": "https://github.com/a115/iCODES"
    },
    "split_keywords": [
        "git",
        " llm",
        " archeology",
        " commit",
        " search"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b311aa1fd43b3bd8455ec4599f0019dccb736a4c18500d18de23b10917c3e865",
                "md5": "58289024477357c09c6948e6a44e6fc9",
                "sha256": "688e7060dc70f228491b48ffc2a071f806210f63d6f276e71dfaa2bff0386e9f"
            },
            "downloads": -1,
            "filename": "icodes-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "58289024477357c09c6948e6a44e6fc9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 11111,
            "upload_time": "2024-04-14T11:45:16",
            "upload_time_iso_8601": "2024-04-14T11:45:16.927849Z",
            "url": "https://files.pythonhosted.org/packages/b3/11/aa1fd43b3bd8455ec4599f0019dccb736a4c18500d18de23b10917c3e865/icodes-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "35141844fdb149050214ceb1f347a4689a7cf638d89f1d5e4f3e8fbfd0c0406b",
                "md5": "229c334c5bdb94df846040fce4dc6f96",
                "sha256": "2719be8846c0067fd32b58d2b3efb295931238296b263cef11fbad4daccbd5af"
            },
            "downloads": -1,
            "filename": "icodes-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "229c334c5bdb94df846040fce4dc6f96",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 9239,
            "upload_time": "2024-04-14T11:45:18",
            "upload_time_iso_8601": "2024-04-14T11:45:18.693697Z",
            "url": "https://files.pythonhosted.org/packages/35/14/1844fdb149050214ceb1f347a4689a7cf638d89f1d5e4f3e8fbfd0c0406b/icodes-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-14 11:45:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "a115",
    "github_project": "iCODES",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "icodes"
}
        
Elapsed time: 0.27570s