Skip to main content

CodeIQ is an advanced AI-powered coding assistant designed to enhance developer productivity by providing intelligent code suggestions and natural language interactions.

Project description

CodeIQ: A Next-Generation AI-Powered Development Assistant

CI CD Black Ruff PyPI - Version PyPI - Python Version PyPI - Downloads PyPI - Format PyPI - Implementation PyPI - License

Overview

CodeIQ is an advanced AI-powered command-line interface (CLI) tool designed to enhance coding efficiency and productivity. Utilizing the sophisticated capabilities of Qwen2.5-Coder-32B-Instruct, CodeIQ offers intelligent code completions, error detection, and automated coding functionalities. This empowers developers to streamline their workflows with precision and ease, making it an invaluable resource for professionals at all levels.

Key Features

  • Contextual Code Completions: Receive accurate, contextually relevant code suggestions to accelerate development with minimal errors.
  • Natural Language Interaction: Engage with CodeIQ using natural language for detailed explanations, debugging tips, and guidance.
  • Multi-Language Support: Seamlessly write and execute code in over 100 programming languages with CodeIQ's comprehensive integration.
  • Personalized Learning: Continuously improve recommendations based on user interactions, providing personalized and immediate insights.

Getting Started

Prerequisites

  • Python: CodeIQ requires Python 3.10 or higher. Ensure you have the correct version installed.
  • Hugging Face Token: Create an account on Hugging Face and obtain an API token.

Installation

To install CodeIQ, execute the following command:

pip install code-iq

Ensure that your Hugging Face token is set as an environment variable:

  • Unix-based Systems (Linux, macOS):

    export HF_TOKEN=hf_your_token_here
    
  • Windows (PowerShell):

    $env:HF_TOKEN = "hf_your_token_here"
    

Usage

Launch CodeIQ with the following command:

code-iq [OPTIONS] COMMAND [ARGS]...

Options

  • --install-completion: Install shell completion for CodeIQ.
  • --show-completion: Display the completion script for the current shell.
  • --help: Display this help message and exit.

Commands

  • ai: Utilize AI-driven functionalities to generate code, obtain explanations, and perform tasks.
  • chat: Enable real-time conversations for troubleshooting, guidance, and inquiries.
  • complete: Receive code completion suggestions based on context and best practices.
  • document: Assist in generating and formatting documentation.
  • enhance: Apply optimizations or improvements to code.
  • review: Conduct thorough code reviews for quality and adherence to standards.
  • scan: Identify vulnerabilities and potential issues within codebases.
  • test: Facilitate the creation and execution of tests.

code-iq ai

Leverage AI functionalities to generate code snippets, obtain suggestions, and perform tasks.

Examples:

code-iq ai "Generate a function to calculate the area of a circle"
code-iq ai -c code.py "Explain the code"
code-iq ai -o output.md "How to install HuggingFace Transformers?"

Usage:

code-iq ai [OPTIONS] PROMPT

Arguments:

  • PROMPT: The prompt or instruction for the AI. [required]

Options:

  • -c, --code FILENAME: Include a code file in the prompt.
  • -o, --output FILENAME: Write the response to this file.
  • -t, --max-tokens INTEGER: Limit the number of tokens in the response. [Default: 2048]
  • --help: Display this help message and exit.

code-iq chat

Engage in real-time conversations for troubleshooting, guidance, or general inquiries.

Examples:

# Start a chat session
code-iq chat

# Export chat history
code-iq chat -e chat_history.json

# Import chat history
code-iq chat -h chat_history.json

# Import chat history and export after session
code-iq chat -h chat_history.json -e chat_history.json

Usage:

code-iq chat [OPTIONS]

Options:

  • -e, --export FILENAME: Export the chat history to this file.
  • -h, --history FILENAME: Import a previous chat history from this file.
  • -t, --max-tokens INTEGER: Limit the number of tokens in the response. [Default: 2048]
  • --help: Display this help message and exit.

code-iq complete

Receive suggestions to complete partially written code based on context and best practices.

Examples:

code-iq complete 'def hello_world():'
code-iq complete -l python 'def hello_world():'
code-iq complete -o code-completions.md 'def hello_world():'

Usage:

code-iq complete [OPTIONS] CODE

Arguments:

  • CODE: The code snippet for which to receive completions. [required]

Options:

  • -l, --lang TEXT: Specify the programming language of the code snippet.
  • -o, --output FILENAME: Write the response to this file.
  • -t, --max-tokens INTEGER: Limit the number of tokens in the response. [Default: 128]
  • --help: Display this help message and exit.

code-iq document

Generate and manage code documentation, including comments, README files, and technical documentation.

Examples:

code-iq document code.py
code-iq document code.py -o code-docs.md

Usage:

code-iq document [OPTIONS] CODE

Arguments:

  • CODE: The code file for which to generate documentation. [required]

Options:

  • -o, --output FILENAME: Write the response to this file.
  • -t, --max-tokens INTEGER: Limit the number of tokens in the response. [Default: 2048]
  • --help: Display this help message and exit.

code-iq enhance

Apply improvements or optimizations to existing code, including refactoring and performance tuning.

Examples:

code-iq enhance code.py
code-iq enhance code.py -o code-enhancements.md

Usage:

code-iq enhance [OPTIONS] CODE

Arguments:

  • CODE: The code file to enhance. [required]

Options:

  • -o, --output FILENAME: Write the response to this file.
  • -t, --max-tokens INTEGER: Limit the number of tokens in the response. [Default: 2048]
  • --help: Display this help message and exit.

code-iq review

Analyze code for potential issues and adherence to coding standards.

Examples:

code-iq review code.py
code-iq review code.py -o code-review.md

Usage:

code-iq review [OPTIONS] CODE

Arguments:

  • CODE: The code file to review. [required]

Options:

  • -o, --output FILENAME: Write the response to this file.
  • -t, --max-tokens INTEGER: Limit the number of tokens in the response. [Default: 2048]
  • --help: Display this help message and exit.

code-iq scan

Identify vulnerabilities, bugs, or areas for improvement within codebases.

Examples:

code-iq scan code.py
code-iq scan code.py -o code-scan.md

Usage:

code-iq scan [OPTIONS] CODE

Arguments:

  • CODE: The code file to scan. [required]

Options:

  • -o, --output FILENAME: Write the response to this file.
  • -t, --max-tokens INTEGER: Limit the number

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code_iq-1.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code_iq-1.0.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file code_iq-1.0.1.tar.gz.

File metadata

  • Download URL: code_iq-1.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure

File hashes

Hashes for code_iq-1.0.1.tar.gz
Algorithm Hash digest
SHA256 feaf5ec14c4d95a85171d9701210153ca11c183c9fbc8a0128d583ef01674255
MD5 f52d770951053259d9c149d3bc27ae97
BLAKE2b-256 31721601ac5a554a0b8d5ebfb937488d6af1724fad9cb4c446d6cb8886167ab1

See more details on using hashes here.

File details

Details for the file code_iq-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: code_iq-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure

File hashes

Hashes for code_iq-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6ecfd1eee545374955bbb1224b58cd6cf9967a854a221f65a40dd8e16ab4672
MD5 92dcce45b8df27d5cbffad735f3f6149
BLAKE2b-256 4ff66339e8cee8d59ddf730191abcf171bb64bca1dfd98e3074e487d73245b78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page