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 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🐙
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| code_analyzer_b-0.2.4.tar.gz | 12.4 kB | Without provenance | Details for code_analyzer_b-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| code_analyzer_b-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for code_analyzer_b-0.2.4-py3-none-any.whl |
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
|
Security for code-analyzer-b 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.