Skip to main content

扫描源码、提取代码块、大模型分析并生成 README.md

Project description

Devops Analyzer

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

安装

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

从 PyPI 安装的 wheel 已包含编译好的 scan_nativetree_sitter_native,可直接 devops config / devops <项目路径>

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

Windows 说明

安装方式 要求
pip install devops-analyzer(PyPI wheel) 推荐
pip install -e .(源码) GitMicrosoft C++ Build Tools下载),用于编译本项目的 C++ 扩展

首次使用:配置模型 API

必须先配置你自己的 API Key,再分析项目:

devops config

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

查看当前配置(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.5.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.5-cp313-cp313-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.13Windows x86-64

devops_analyzer-0.1.5-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.5-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.5-cp312-cp312-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.12Windows x86-64

devops_analyzer-0.1.5-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.5-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.5-cp311-cp311-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.11Windows x86-64

devops_analyzer-0.1.5-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.5-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.5.tar.gz.

File metadata

  • Download URL: devops_analyzer-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 403110891af0ef8a55b955a8493408e718003849970c89b6e312955d4fe2398c
MD5 10a0cb5d5fb50a791893ffde875e17e5
BLAKE2b-256 ddcbcefdf9ec9429e0cab1df7d784f6e0fd012394f47608fc805808a4b3f6991

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5.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.5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c668bae0425ab57af7e45d9542c5a9d35a0d2eaf2046d274b274a2239ffa2912
MD5 c87abc7882c5b9aaf51daeabbfb922cc
BLAKE2b-256 fd30fbeada5feea6fc9596a6adf22058d5374256d226a63f235022bcb9ed2863

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp313-cp313-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp313-cp313-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 2a4823b0632ab85ac5b868ce676c4e3cef77d2ac209ee768bc5ae302103d59d4
MD5 e4cbddfbe63c2b66d1fa3d78b1782a24
BLAKE2b-256 1323aa21a9812b789bd5ef68911d443f9457730dcf2472b8a478a71d5bfc4991

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp313-cp313-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 8ddc8478321e6166478d03d311bc533f854aa8a4c6a09bdb8294220fe0328a06
MD5 1cca2fda7cf9add99ae62fa4060fe36f
BLAKE2b-256 d6e44936934f8e2d03caf06e42a66f99c377d6a98dba655480a9f55a368177f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 592ef32d134284f0728a45d86e3159da8bcb09e4588eaed63a5b08dcbd103846
MD5 d0a3b62b09698a8cc5abda4fdb7e3c4c
BLAKE2b-256 66c9ff12a45b085312d7cdf36de2465381004240af90526291bd7fc43c1dcbbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp312-cp312-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 ecea0e7ddce7d0dbdb6b451871ffe5a9db5532a824461275a0cb02da31834c5a
MD5 ab7e44e0530a343720aa179a23779efb
BLAKE2b-256 7f9451d2df9157fdd743a9b9be754e3b3d5fcf5765e6c1a62725e2c07dd2366e

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp312-cp312-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 cf97857a51abed64a1755829098422147d9599a42f4ec55c3c53405d19073052
MD5 23d07b9293c40a0fd25911596722407c
BLAKE2b-256 101b1161495244d0b174e89d418803370ed6713177d476930f9d7f75c447743f

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 81d312caa120fa97d039e7bee27e87cd93236b38701fb7a75d88f83e5ff15f2e
MD5 55b0acfa6946e851943bf31ddc2eb712
BLAKE2b-256 0e3eb0e5d7e6b0bc33cea4fab8b3da6da8fb496b3db019c171fe9c16867592ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp311-cp311-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp311-cp311-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 dfd1825660f64b9aad09991d13b09f1cff6f0330a49bb58bbb274516194d1b12
MD5 a7351847c43bfdfc0e69c731dc9ec80f
BLAKE2b-256 e634189557c73d6a8f493970e8f48af75f32dcfb1d5b72a9c3bd0d07626cf534

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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.5-cp311-cp311-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.5-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 f04c0650766d4e4ecbc23cb952b5c7060a22edf6b1661b00f8f243e6c30d035c
MD5 16722f9e9078c35d1e51784fb7e601dd
BLAKE2b-256 243f80100093c2172edecfbf289210bd3ce39f471093dab33486d1546697f30a

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.5-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