Skip to main content

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

Project description

PyPI README.md

This version is concise and designed to help users quickly install and start using the tool from PyPI.

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.0, use pip:

pip install code-analyzer==0.2.0

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_analyzer_b-0.2.0.tar.gz
  • Upload date:
  • Size: 12.4 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.0.tar.gz
Algorithm Hash digest
SHA256 4a55314be09e02ac4039ee07c3ab6fa51a6370aee6b9b271e661cfe0b190dbe9
MD5 1dd092196069f59623df4f0a39d6332d
BLAKE2b-256 0e9b610f32ad31583dda191488f11bbe31b3d219ff41f564a355f08907595ebd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for code_analyzer_b-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8477e7740d01fa11d599141101a8e9b306715bd59cb1ab501d9b351fd5e0fb62
MD5 3d26e8668e40659052b1c407db38adc8
BLAKE2b-256 432880d261c26e6fe0211c6667203cbc4b146e9adf0b50b8a2c7a3cc0a39a491

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