Skip to main content

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

Project description

Code Analyzer

PyPI Version Python Versions License: MIT SARIF Support DeepSeek Integration

   ██████╗ ██████╗ ██████╗ ███████╗    █████╗ ███╗   ██╗ █████╗ ██╗   ██╗   ██╗ ███████╗███████╗██████╗ 
  ██╔════╝██╔═══██╗██╔══██╗██╔════╝   ██╔══██╗████╗  ██║██╔══██╗██║   ╚██╗ ██╔╝ ╚══███╔╝██╔════╝██╔══██╗
  ██║     ██║   ██║██║  ██║█████╗     ███████║██╔██╗ ██║███████║██║    ╚████╔╝    ███╔╝ █████╗  ██████╔╝
  ██║     ██║   ██║██║  ██║██╔══╝     ██╔══██║██║╚██╗██║██╔══██║██║      ██╔╝    ███╔╝  ██╔══╝  ██╔══██╗
  ╚██████╗╚██████╔╝██████╔╝███████╗██╗██║  ██║██║ ╚████║██║  ██║███████╗ ██║    ███████╗███████╗██║  ██║
   ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝╚══════╝ ╚═╝    ╚══════╝╚══════╝╚═╝  ╚═╝

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 zh

✨ 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.4.tar.gz (12.4 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.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_analyzer_b-0.2.4.tar.gz
  • Upload date:
  • Size: 12.4 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.4.tar.gz
Algorithm Hash digest
SHA256 c04b07dd19937bac0bb34a6af2b14f1a81cd07d2a6385c7ce6fae38cc644cf51
MD5 cdcd26108a8c02b20ec7187a2aeb8e3c
BLAKE2b-256 31e66502c4d92635126976db88f774feace9c8ab0dd0bb6c7b351b5fa7781b27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for code_analyzer_b-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5dcf2e9bc020b8c48f845d1568bd020337bd273a6364dd2b86f7fba6eae371cb
MD5 89acb90940bebedd1bba2c800e5cbbb1
BLAKE2b-256 505e4173a7e1de1f17ff35a33dfa0b9590ae053a9ea36acd7a014e4bb1d3e8fe

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