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.x


Installation

To install Code Analyzer version 0.2.x, use pip:

pip install code-analyzer==0.2.x

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.3.tar.gz (12.1 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.3-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for code_analyzer_b-0.2.3.tar.gz
Algorithm Hash digest
SHA256 068b8552cdf94dfdaeb4be4dac05fa8c76d0d3558f153002c4c3326afa46ee1e
MD5 44353df1f597b76759475e5431bae947
BLAKE2b-256 c5104ce1f90b17db2adc62b5ac499f884bc86c9d040942683edc4bd9999aad7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for code_analyzer_b-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ea7f6746fb69274165ab9e4b11064b69aa4672b9ba3300305e1f85b787f97664
MD5 f548bc1d6d631d00e53ac5685f2ddf7d
BLAKE2b-256 46f44f1b5297331893dd9a7f99c254da5d915b623046a8b2d97d8709307c0fec

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