CodeQA
CodeQA is a powerful command-line tool designed to help developers understand and navigate their codebase more efficiently. By asking questions directly about your project, you can gain insights and deepen your understanding of the codebase without the need for extensive manual exploration. CodeQA is built on top of LangChain, leveraging its capabilities to provide accurate and insightful responses.
Besides code, CodeQA is engineered to be universally applicable across various text documents. It enables you to effortlessly navigate through:
- PDF documents
- Markdown files
- And any other form of text-based documents.
Getting Started
Follow these steps to install and set up CodeQA:
-
Install CodeQA: Use pip to install CodeQA. Run the following command in your terminal:
pip install code-qa
-
Set up OpenAI Token: CodeQA uses OpenAI's API to generate responses. You need to add your OpenAI token to your virtual environment. Replace
YOUR_TOKENwith your actual OpenAI token:export OPENAI_TOKEN=YOUR_TOKEN
-
Navigate to your project folder: Use the
cdcommand to navigate to your project's directory:cd PATH/TO/MY/PROJECT
-
Initialize CodeQA Index: This will generate a
.code_qafolder within your project. The folder contains your project embeddings stored as parquet files. Run the following command:code_qa init
Usage
With CodeQA, you can ask questions directly about your code. For example, if you want to know how to test a particular part of your code, you can ask:
code_qa query "How can I test this?"
Ignoring Files
If there are certain files or directories that you want CodeQA to ignore, you can specify them in a .codeqaignore
file. This file follows the same syntax and rules as the .gitignore file. Simply create a .codeqaignore file in your
project's root directory and list the files or directories you want to ignore.
License
CodeQA is licensed under the Apache License Version 2.0. For more details, see the LICENSE file.
Metadata
Release files for code-qa 0.3.1
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 |
|---|---|---|---|---|
| code_qa-0.3.1.tar.gz | 7.7 kB | Without provenance | Details for code_qa-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| code_qa-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for code_qa-0.3.1-py3-none-any.whl |
Total release size: 16.1 kB
Release files / code_qa-0.3.1.tar.gz
| Download URL | code_qa-0.3.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c1ae8117b6fa2ea9bb48e7a5cd95eb18530c48e4988b8575ad1b4d469c796ec
|
|
BLAKE2b-256 checksum How to use checksums |
72543c29ab722ae6e40756c2bcc6f8a705cf1eda22dbcec5d4cb6b77ab335a10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.12 Darwin/22.3.0
|
Release files / code_qa-0.3.1-py3-none-any.whl
| Download URL | code_qa-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d00d060afe6e7cc9c91790b9b704028193c2efdc2efc4b4705906fa98022738
|
|
BLAKE2b-256 checksum How to use checksums |
51cb8fa1788b5c96889b554f850a8d57ac24bb66095380e6cc02c1f4e358a21d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.12 Darwin/22.3.0
|
Security for code-qa 0.3.1
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.