Skip to main content

A tool to analyze code repositories for security vulnerabilities using DeepSeek AI

Project description

Code Analyzer

Code Analyzer is a powerful command-line tool for analyzing code repositories for security vulnerabilities and bugs. It leverages the DeepSeek API to provide AI-powered insights into your codebase, helping you identify and address potential issues efficiently.

Version: 0.2.0


Installation

To install Code Analyzer version 0.2.1, use pip:

pip install code-analyzer==0.2.1

After installation, set up your DeepSeek API key:

code_analyzer setup

Follow the prompts to enter your API key. You can obtain a key from DeepSeek.


Usage

Analyzing a GitHub Repository

To analyze a public GitHub repository:

code_analyzer analyze https://github.com/user/repo

For private repositories, use the --git-token option with a GitHub access token:

code_analyzer analyze https://github.com/user/private-repo --git-token YOUR_TOKEN

Analyzing a Local Directory

To analyze a local directory:

code_analyzer analyze /path/to/local/repo

Or, to analyze the current directory:

code_analyzer analyze .

Options

  • -o, --output FILE: Save the report to a file (supports .txt, .md, .html, .json, .sarif).
  • -f, --format FORMAT: Specify the output format (txt, md, html, json, sarif).
  • --verbose: Enable detailed output for debugging.
  • --no-details: Exclude detailed findings from the report.
  • --lang LANG: Set the report language (en, uz, zh, ru).
  • --no-stream: Suppress console output and save directly to the output file.

Example with options:

code_analyzer analyze . --output report.sarif --format sarif --no-stream --lang uz

Features

  • AI-Powered Analysis: Utilizes DeepSeek's API for intelligent code analysis.
  • Multi-Language Support: Reports available in English, Uzbek, Chinese, and Russian.
  • CI/CD Integration: Easily integrates with GitHub Actions for automated code scanning.
  • Flexible Output: Supports multiple report formats, including SARIF for GitHub code scanning.
  • Local and Remote Analysis: Analyze both local directories and remote GitHub repositories.

For more information, visit the GitHub repository.

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_analyzer_b-0.2.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

code_analyzer_b-0.2.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file code_analyzer_b-0.2.1.tar.gz.

File metadata

  • Download URL: code_analyzer_b-0.2.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for code_analyzer_b-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b1b92a9687b21eb4900ef1cfe3fd4140d9906a977dce27526bcd873b6893cb6b
MD5 f910250c6a7aef52ea81bb4ec7af46d0
BLAKE2b-256 170b53ce709e1c3321270d30563d3ca64ce8720718a12945f413b809fa52ad78

See more details on using hashes here.

File details

Details for the file code_analyzer_b-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for code_analyzer_b-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ccb866065fbf9b2fd88c6a8d5441a5907e2b030d86ff06b4c2442779c670a73
MD5 cd964f8d630befe96638bbdd46327100
BLAKE2b-256 cb5b1797211fa9c7df4e74dddce916cfb803b057d924eb074e17bfce435f01a6

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