Skip to main content

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🐙

Release files for code-analyzer-b 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for code-analyzer-b 0.2.4
File Size Uploaded
code_analyzer_b-0.2.4.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for code-analyzer-b 0.2.4
File Interpreter ABI Platform
code_analyzer_b-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size:25.1 kB

Release files / code_analyzer_b-0.2.4.tar.gz

Download URL code_analyzer_b-0.2.4.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c04b07dd19937bac0bb34a6af2b14f1a81cd07d2a6385c7ce6fae38cc644cf51
BLAKE2b-256 checksum
How to use checksums
31e66502c4d92635126976db88f774feace9c8ab0dd0bb6c7b351b5fa7781b27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / code_analyzer_b-0.2.4-py3-none-any.whl

Download URL code_analyzer_b-0.2.4-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5dcf2e9bc020b8c48f845d1568bd020337bd273a6364dd2b86f7fba6eae371cb
BLAKE2b-256 checksum
How to use checksums
505e4173a7e1de1f17ff35a33dfa0b9590ae053a9ea36acd7a014e4bb1d3e8fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page