Skip to main content

Scan source code, extract blocks, analyze with LLMs, and generate README.md

Project description

Devops Analyzer

English · 中文


English

Scan project source → Tree-sitter code blocks → LLM analysis → README.md.

Install

# Recommended: PyPI prebuilt wheel (native extensions built in Release CI; no MSVC on Windows)
pip install devops-analyzer

# Or from source (fetches tree-sitter grammars and compiles locally; needs git + C++ toolchain)
git clone https://github.com/dadaozhichen/OpenDevOps.git
cd OpenDevOps
pip install -e .

# Optional: Zhipu AI
pip install zhipuai

On tag push, GitHub Actions prebuilds scan_native and tree_sitter_native on Linux / macOS / Windows for Python 3.11–3.13 and uploads wheels.
pip install devops-analyzer prefers those wheels, so you usually do not need to compile C++ locally.

Prebuilt .whl files are also on GitHub Releases:

pip install devops_analyzer-0.1.5-cp313-cp313-win_amd64.whl

Python 3.13 installs tree-sitter>=0.22 (prebuilt wheels on Windows, etc.). Python 3.12 and below use tree-sitter 0.21.x.

Windows

Method Requirements
pip install devops-analyzer (PyPI / Release wheel) Recommended; no MSVC
pip install -e . or pip install . (sdist / source) Git, Microsoft C++ Build Tools (download)

If pip builds from source (e.g. no wheel for your Python version), force binaries only:

pip install devops-analyzer --only-binary devops-analyzer

First run: configure model API

Configure your API key before analyzing a project:

devops config

Follow the prompts for provider, API key, and model. Config is stored in ~/.devops/config.json (user-readable only).

Show current config (masked API key):

devops config --show

Supported providers

Provider provider Default model Notes
OpenAI openai gpt-4o-mini Official or custom base URL
Zhipu AI zhipuai glm-4-flash pip install zhipuai
DeepSeek deepseek deepseek-chat OpenAI-compatible API
Moonshot moonshot moonshot-v1-8k OpenAI-compatible API

Environment variables (lower priority than config file):

export DEVOPS_PROVIDER=openai
export DEVOPS_API_KEY=sk-...
export DEVOPS_MODEL=gpt-4o-mini
export DEVOPS_BASE_URL=https://api.openai.com/v1   # optional

Analyze a project

devops /path/to/your/project

# explicit subcommand
devops analyze /path/to/your/project

# custom output file
devops /path/to/project -o README.md

# override model without editing config
devops /path/to/project --provider deepseek --model deepseek-chat

Commands

devops config              # interactive API setup
devops config --show       # show config
devops <project-path>      # analyze and write README.md
devops analyze <project-path>
devops --help
devops --version

中文

扫描项目源码 → Tree-sitter 提取代码块 → 大模型分析 → 生成 README.md

安装

# 推荐:安装 PyPI 预编译 wheel(Release CI 已编译原生扩展,Windows 一般无需 MSVC)
pip install devops-analyzer

# 或从源码安装(会自动拉取 tree-sitter grammar 并本地编译,需 git + C++ 编译器)
git clone https://github.com/dadaozhichen/OpenDevOps.git
cd OpenDevOps
pip install -e .

# 使用智谱 AI 时额外安装
pip install zhipuai

打 tag 发布时,GitHub Actions 会在 Linux / macOS / Windows 上为 Python 3.11–3.13 预编译 scan_nativetree_sitter_native 并上传 wheel。
因此 pip install devops-analyzer 会优先安装这些 wheel,通常不需要在本机编译 C++

也可从 GitHub Releases 下载对应平台的 .whl 手动安装:

pip install devops_analyzer-0.1.5-cp313-cp313-win_amd64.whl

Python 3.13 会自动安装 tree-sitter>=0.22(Windows 等平台有预编译 wheel);3.12 及以下使用 tree-sitter 0.21.x

Windows

安装方式 要求
pip install devops-analyzer(PyPI / Release 预编译 wheel) 推荐,无需安装 MSVC
pip install -e .pip install .(sdist / 源码) GitMicrosoft C++ Build Tools下载

若 pip 误从源码包编译(例如没有对应 Python 版本的 wheel),可强制只装二进制包:

pip install devops-analyzer --only-binary devops-analyzer

首次使用:配置模型 API

分析项目前请先配置 API Key:

devops config

按提示选择提供商、输入 API Key 和模型名称。配置保存在 ~/.devops/config.json(仅当前用户可读)。

查看当前配置(API Key 脱敏显示):

devops config --show

支持的模型提供商

提供商 provider 默认模型 说明
OpenAI openai gpt-4o-mini 官方或自定义 Base URL
智谱 AI zhipuai glm-4-flash pip install zhipuai
DeepSeek deepseek deepseek-chat OpenAI 兼容协议
Moonshot moonshot moonshot-v1-8k OpenAI 兼容协议

也可用环境变量覆盖(优先级低于配置文件):

export DEVOPS_PROVIDER=openai
export DEVOPS_API_KEY=sk-...
export DEVOPS_MODEL=gpt-4o-mini
export DEVOPS_BASE_URL=https://api.openai.com/v1   # 可选

分析项目

devops /path/to/your/project

# 或显式子命令
devops analyze /path/to/your/project

# 指定输出文件
devops /path/to/project -o README.md

# 临时覆盖模型(不改配置文件)
devops /path/to/project --provider deepseek --model deepseek-chat

命令一览

devops config              # 交互式配置 API
devops config --show       # 查看配置
devops <项目路径>          # 分析并生成 README.md
devops analyze <项目路径>
devops --help
devops --version

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

devops_analyzer-0.1.6.tar.gz (13.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

devops_analyzer-0.1.6-cp313-cp313-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.13Windows x86-64

devops_analyzer-0.1.6-cp313-cp313-manylinux_2_38_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.38+ x86-64

devops_analyzer-0.1.6-cp313-cp313-macosx_10_15_universal2.whl (20.2 MB view details)

Uploaded CPython 3.13macOS 10.15+ universal2 (ARM64, x86-64)

devops_analyzer-0.1.6-cp312-cp312-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.12Windows x86-64

devops_analyzer-0.1.6-cp312-cp312-manylinux_2_38_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ x86-64

devops_analyzer-0.1.6-cp312-cp312-macosx_10_15_universal2.whl (20.2 MB view details)

Uploaded CPython 3.12macOS 10.15+ universal2 (ARM64, x86-64)

devops_analyzer-0.1.6-cp311-cp311-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.11Windows x86-64

devops_analyzer-0.1.6-cp311-cp311-manylinux_2_38_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.38+ x86-64

devops_analyzer-0.1.6-cp311-cp311-macosx_10_15_universal2.whl (20.2 MB view details)

Uploaded CPython 3.11macOS 10.15+ universal2 (ARM64, x86-64)

File details

Details for the file devops_analyzer-0.1.6.tar.gz.

File metadata

  • Download URL: devops_analyzer-0.1.6.tar.gz
  • Upload date:
  • Size: 13.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devops_analyzer-0.1.6.tar.gz
Algorithm Hash digest
SHA256 66f9bea0cc3f40f465961ab9785246fa4fa0529d78f8e60600555abf03dbde37
MD5 f6ea99da212ea68e3536d9fee3337485
BLAKE2b-256 2706680f07b8d9146074f637ae723a4c012c04d2721a3e02dab7c4247f619830

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6.tar.gz:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e04d5825e098bff4930059b88bae22dc286f4f1899cf9fdb76a1900f9bc32f50
MD5 0a3db28110e7c32330974d2319141341
BLAKE2b-256 3b3ba3b1a767918cba3e4330f2adf4522da5d49d682746e32945e250c68ce2c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp313-cp313-win_amd64.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp313-cp313-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp313-cp313-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 c7b70e9005a8e2067bdc0ba2dc8697d04ad0ef427a910f6e8d07fae322e8e37f
MD5 0e75ce9a7d63bd0f4af8180a68e20bd6
BLAKE2b-256 a71af571022e34e086d5605eabd524fb92b3763cd486c485f6c26351e4bf134b

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp313-cp313-manylinux_2_38_x86_64.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp313-cp313-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 0c2afc4398c1e7165335a135a30561feb521b48367940e00328a8748d22751fb
MD5 300f2e085e9a1f4e0b6e40449b37edf7
BLAKE2b-256 15b93aaf2288e9ead4d60d5832b4110b345552e6b6751fbd9a6e1b5c78ad0ca5

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp313-cp313-macosx_10_15_universal2.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8ba9f35a083a2bef27d89b9621b16ab377c2f8784cf9b159cf63844a23e9f00a
MD5 2def9137eb33eaa865dce467e0dd60c1
BLAKE2b-256 caac4c1cb7e0bde693c5a4fd9dd962b3c116623e3456550524e3b8997bc6de25

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp312-cp312-win_amd64.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp312-cp312-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 2e274e94741070ce24ac08cbc102b1d3f99a354856bd23827e08732e6df19771
MD5 38a88d63d414d1188bc25c0693bca201
BLAKE2b-256 e61c90937ea242f1f154f1b119b9cf14add6e2b230928e123c31ee27c49ce936

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp312-cp312-manylinux_2_38_x86_64.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp312-cp312-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 0fe1217b1829a17a9e9002e7c3619596d5c847ba729301c4656b29a1ac0088de
MD5 e796dd779b2944df192a14f71ba4555a
BLAKE2b-256 2e4471ffb9bf01b0aa8c7fbeec4e9db5655c258af3f070168ec65ed76d8ed7bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp312-cp312-macosx_10_15_universal2.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 64486725a3e063a925cbe7f4221c8da8f56aa38a0af03d78b0a91a6ab78f37ed
MD5 2d7801b14562d9009318036d6781b87e
BLAKE2b-256 92204a8cd47a1722d2591c6f435425897255d9dbc779ecf12c1c3ebc6109322c

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp311-cp311-win_amd64.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp311-cp311-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp311-cp311-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 c92d14ecea91067de13614d070e7ee51202561d2f67cdcc5eea4cb7aeea205f0
MD5 08ca3c6a39ef43225e4bbd955f008014
BLAKE2b-256 066b8ff2f390acaa4e979779764f1ba5c68e3fc4f434610288a8d40df1da5a35

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp311-cp311-manylinux_2_38_x86_64.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devops_analyzer-0.1.6-cp311-cp311-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.6-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 c5d28d1ef2c7d551d2ae861f45bd47dcbceaf52dd2ff0cb59e2e8f33438a1f78
MD5 3692d369804777e61d32c7caf208ab84
BLAKE2b-256 598ec3b97c95957247d024fb6301d42dd088bed379e6bb3ea528c4a5d82288a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.6-cp311-cp311-macosx_10_15_universal2.whl:

Publisher: release.yml on dadaozhichen/OpenDevOps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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