扫描源码、提取代码块、大模型分析并生成 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_native 与 tree_sitter_native,可直接 devops config / devops <项目路径>。
首次使用:配置模型 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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devops_analyzer-0.1.4.tar.gz.
File metadata
- Download URL: devops_analyzer-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a075a59a337c5e14b69c724f7d6cd1beaef07f76fcfb815fe1c5c6c8209a44f8
|
|
| MD5 |
b2c98e265367a7a913fb88fb54f4a715
|
|
| BLAKE2b-256 |
d6c203963ceccf0d7a3971ebad66498ef90fa1685044fb8ff2a6f09d8e5afc2a
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4.tar.gz:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4.tar.gz -
Subject digest:
a075a59a337c5e14b69c724f7d6cd1beaef07f76fcfb815fe1c5c6c8209a44f8 - Sigstore transparency entry: 1573874631
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 17.3 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5ea332cc6ba67d54c88f2b43a05a7f7e894900a3560dd651f32ee8e1c8ac74c
|
|
| MD5 |
9c13313df0340a49ea97f5008e704ff8
|
|
| BLAKE2b-256 |
d49c998b56c0738b63e5341779d37b7a42791b302556df56b3c439c4d8b41760
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp313-cp313-win_amd64.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp313-cp313-win_amd64.whl -
Subject digest:
a5ea332cc6ba67d54c88f2b43a05a7f7e894900a3560dd651f32ee8e1c8ac74c - Sigstore transparency entry: 1573874697
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0906ed5c34547c3dc1bfe1e85beb512d275d76912cd496047b9fdde16fd37b2b
|
|
| MD5 |
16bc7d72e756115c8f2318b147cd9e8f
|
|
| BLAKE2b-256 |
36350b6a0f0d7692d672bcdcfd1f89a37ae3d43f1dc461ff0a496e9a4b21fc11
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp313-cp313-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp313-cp313-manylinux_2_34_x86_64.whl -
Subject digest:
0906ed5c34547c3dc1bfe1e85beb512d275d76912cd496047b9fdde16fd37b2b - Sigstore transparency entry: 1573874758
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp313-cp313-macosx_10_15_universal2.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp313-cp313-macosx_10_15_universal2.whl
- Upload date:
- Size: 20.2 MB
- Tags: CPython 3.13, macOS 10.15+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a656c0fdb36bdcae37e1c0706d7e1741f32a852eaf46cb641dcbe7a72eee87c
|
|
| MD5 |
58f02a56909e8e245bc5f47d0d3b692e
|
|
| BLAKE2b-256 |
59e298cce6af9953fd0a42793ddfdc4f43d16c41d923deecad11f5960c297498
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp313-cp313-macosx_10_15_universal2.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp313-cp313-macosx_10_15_universal2.whl -
Subject digest:
7a656c0fdb36bdcae37e1c0706d7e1741f32a852eaf46cb641dcbe7a72eee87c - Sigstore transparency entry: 1573874779
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 17.3 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d04e410b5b5f81af4e7d8e7a7319e649cfa3649c5df5845975008bfc611f0ba
|
|
| MD5 |
204208ad82fa9a6086cf80e0608c7aff
|
|
| BLAKE2b-256 |
75af8f0c16be3276cdd904898e4333f0e180580dec7ae11539a5ac33c5b53468
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp312-cp312-win_amd64.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp312-cp312-win_amd64.whl -
Subject digest:
0d04e410b5b5f81af4e7d8e7a7319e649cfa3649c5df5845975008bfc611f0ba - Sigstore transparency entry: 1573874711
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0c4158c6787c447cee3f89a8a64e5cce446be3e57ae95daf7f5efe788004e59
|
|
| MD5 |
22c0e0f5188377c3209d5089ea460a91
|
|
| BLAKE2b-256 |
0a40199be5ad988c40d6ed680ea6a6e5c1f16284f320e211fc3ccf8f1827d9f9
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
d0c4158c6787c447cee3f89a8a64e5cce446be3e57ae95daf7f5efe788004e59 - Sigstore transparency entry: 1573874661
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp312-cp312-macosx_10_15_universal2.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp312-cp312-macosx_10_15_universal2.whl
- Upload date:
- Size: 20.2 MB
- Tags: CPython 3.12, macOS 10.15+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0651feb1f03fc284191a53a2bbd090fc6aeac005683ee12adf72a60e7152ac75
|
|
| MD5 |
3cbf3048e81b29d77642a8914bd3cffc
|
|
| BLAKE2b-256 |
3f15be22179f953e4a0324694c2b45cbb7fe4e6906f5b790026ae1a431a40a1c
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp312-cp312-macosx_10_15_universal2.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp312-cp312-macosx_10_15_universal2.whl -
Subject digest:
0651feb1f03fc284191a53a2bbd090fc6aeac005683ee12adf72a60e7152ac75 - Sigstore transparency entry: 1573874676
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 17.3 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff65be3e59024903b21a02b314003cfee8d49334dc3ccb3549be64f13a373352
|
|
| MD5 |
091933e8c34901c2d01608b9bacc7afa
|
|
| BLAKE2b-256 |
c273ebe9882a6f636d1029244ed817327841d58a327f19261ca17c6405883f06
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp311-cp311-win_amd64.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp311-cp311-win_amd64.whl -
Subject digest:
ff65be3e59024903b21a02b314003cfee8d49334dc3ccb3549be64f13a373352 - Sigstore transparency entry: 1573874740
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b896c694b52a71e3082471d9431657b2b6b64021a793557b4203453582604c9
|
|
| MD5 |
86888afa1ec335f658a3622b54df651c
|
|
| BLAKE2b-256 |
913ff0a236f3a2d04880d6c01d605d2a27b82193c7e4493a6326543129421849
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl -
Subject digest:
0b896c694b52a71e3082471d9431657b2b6b64021a793557b4203453582604c9 - Sigstore transparency entry: 1573874641
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.4-cp311-cp311-macosx_10_15_universal2.whl.
File metadata
- Download URL: devops_analyzer-0.1.4-cp311-cp311-macosx_10_15_universal2.whl
- Upload date:
- Size: 20.2 MB
- Tags: CPython 3.11, macOS 10.15+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efc591f43d44452b52bf76e060db7137039227cf4e1c201e19b90a1a2ab17c8d
|
|
| MD5 |
d5922f99753946724da995d4ae940099
|
|
| BLAKE2b-256 |
227c8459e583cc6e7d15b87b98db4d0b056462fe6221c9c498fa7900542300ad
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.4-cp311-cp311-macosx_10_15_universal2.whl:
Publisher:
release.yml on dadaozhichen/OpenDevOps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devops_analyzer-0.1.4-cp311-cp311-macosx_10_15_universal2.whl -
Subject digest:
efc591f43d44452b52bf76e060db7137039227cf4e1c201e19b90a1a2ab17c8d - Sigstore transparency entry: 1573874768
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f089efb7389657e533f4dd629b0e0a0982a3a54b -
Trigger Event:
push
-
Statement type: