扫描源码、提取代码块、大模型分析并生成 README.md
Project description
Devops Analyzer
扫描项目源码 → Tree-sitter 提取代码块 → 大模型分析 → 生成 README.md。
安装
cd /path/to/Devops
conda activate devops
pip install -e .
# 使用智谱 AI 时额外安装
pip install zhipuai
首次使用:配置模型 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.1.tar.gz.
File metadata
- Download URL: devops_analyzer-0.1.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c435781a0b21a29ced721f5602f4718ac4afec19d3dc317041b229745560cddc
|
|
| MD5 |
6bdac2f8298eaa84dba1e62987e71f03
|
|
| BLAKE2b-256 |
3675f48bea13c4383ed35a5a4b359a308dace9fb7d7f196541b8cfa56d551a48
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1.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.1.tar.gz -
Subject digest:
c435781a0b21a29ced721f5602f4718ac4afec19d3dc317041b229745560cddc - Sigstore transparency entry: 1566744671
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 103.3 kB
- 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 |
a91bdc57718dcfcb92e85d155a0e42b18b344b628c21bb2713bd527fcac735f8
|
|
| MD5 |
b6f5a45ca556aef263ebb51cc3cb4b37
|
|
| BLAKE2b-256 |
046fb92d94fd35a354e926a37abca5c0a7da3e5b9daa3c8c9c71a3e635bf60be
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp313-cp313-win_amd64.whl -
Subject digest:
a91bdc57718dcfcb92e85d155a0e42b18b344b628c21bb2713bd527fcac735f8 - Sigstore transparency entry: 1566744848
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 109.2 kB
- 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 |
4a1111ece2173f780ca3166d41cae6bcdf5429434cf4709a9ca89d8b9be397ef
|
|
| MD5 |
69afafee9f500a8cf95b313659633296
|
|
| BLAKE2b-256 |
e800d16fb6d74e0882e1bde8a45113faa241176951290b772596f8a09f63cf7b
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp313-cp313-manylinux_2_34_x86_64.whl -
Subject digest:
4a1111ece2173f780ca3166d41cae6bcdf5429434cf4709a9ca89d8b9be397ef - Sigstore transparency entry: 1566744794
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp313-cp313-macosx_10_15_universal2.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp313-cp313-macosx_10_15_universal2.whl
- Upload date:
- Size: 163.7 kB
- 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 |
164f0d6b52eacad8f75bc370b0d5399f9efc5e0f6ea0fcf9ff38c0e7fba77aa2
|
|
| MD5 |
5c3ae8babf2520e90287a222f2b79c7d
|
|
| BLAKE2b-256 |
8125ea6d339bfb3f13787830ddf2dd1f7780a35010fb2cac0888e57a8d3d97db
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp313-cp313-macosx_10_15_universal2.whl -
Subject digest:
164f0d6b52eacad8f75bc370b0d5399f9efc5e0f6ea0fcf9ff38c0e7fba77aa2 - Sigstore transparency entry: 1566744708
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 103.3 kB
- 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 |
849edfd0bbdbbcfa02203a1ec63702741c062ca15c83f1701943e846c8a92ddb
|
|
| MD5 |
5d87da6d742c2595e710612083ff0fc3
|
|
| BLAKE2b-256 |
13bc1fefb03664bf4708d2e8b38738eb24b8331c373c2ee600d989d7151c68a9
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp312-cp312-win_amd64.whl -
Subject digest:
849edfd0bbdbbcfa02203a1ec63702741c062ca15c83f1701943e846c8a92ddb - Sigstore transparency entry: 1566744754
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 109.1 kB
- 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 |
7706cbe9adbcfac1a37510fa2a4ac4084bfab92e0e21b7cc9b2ec7155de82603
|
|
| MD5 |
1ee7d9b819ad4af8834d4e59969fcb2a
|
|
| BLAKE2b-256 |
1e92c245012ce683832dc5b4d81b0bef88907441ae458c76e8e957b70aa0f188
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
7706cbe9adbcfac1a37510fa2a4ac4084bfab92e0e21b7cc9b2ec7155de82603 - Sigstore transparency entry: 1566744834
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp312-cp312-macosx_10_15_universal2.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp312-cp312-macosx_10_15_universal2.whl
- Upload date:
- Size: 163.7 kB
- 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 |
47397a05fe16894af333a0a727407686a4a12ea92f1cecfea6ada970d0c541e3
|
|
| MD5 |
d5c41d727984c1e54ae6d064fc34f803
|
|
| BLAKE2b-256 |
ac2e056d3792befe34f86a2912ea2002ea3e5c82d6aac034e958ce3652abdf0b
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp312-cp312-macosx_10_15_universal2.whl -
Subject digest:
47397a05fe16894af333a0a727407686a4a12ea92f1cecfea6ada970d0c541e3 - Sigstore transparency entry: 1566744814
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 103.0 kB
- 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 |
3d086d5372ec8642167b3c6f8d57055eae4c80d5d6f858d7e622cb5082c1fdf2
|
|
| MD5 |
240cc8d5e457b48611ec70fa126ec631
|
|
| BLAKE2b-256 |
1d1ade5c60df1321953b55182b060415ff98b3be7f634c7328d8ac0b6c55319f
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp311-cp311-win_amd64.whl -
Subject digest:
3d086d5372ec8642167b3c6f8d57055eae4c80d5d6f858d7e622cb5082c1fdf2 - Sigstore transparency entry: 1566744824
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 108.3 kB
- 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 |
e8708a568b20889d5a483d4e73a10521adc014471538bb5559d15ccf0033767e
|
|
| MD5 |
a34481ade906742082bcd9b587cb1a5a
|
|
| BLAKE2b-256 |
c31a5545054f24ba140dec15a18dc900e00efb09d4b294f33eb9f3f7d0c0b272
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp311-cp311-manylinux_2_34_x86_64.whl -
Subject digest:
e8708a568b20889d5a483d4e73a10521adc014471538bb5559d15ccf0033767e - Sigstore transparency entry: 1566744800
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devops_analyzer-0.1.1-cp311-cp311-macosx_10_15_universal2.whl.
File metadata
- Download URL: devops_analyzer-0.1.1-cp311-cp311-macosx_10_15_universal2.whl
- Upload date:
- Size: 161.9 kB
- 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 |
60f5ba6cd8366881291091d82293527ca94cf5eb8766f8af31212a4daf65369c
|
|
| MD5 |
62fd0b32e1c77e58df56878e0bb7475a
|
|
| BLAKE2b-256 |
7f2b02688e687982d9237bdd8f90d8e84b4d517b07cd50d28e4b359497b54eb6
|
Provenance
The following attestation bundles were made for devops_analyzer-0.1.1-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.1-cp311-cp311-macosx_10_15_universal2.whl -
Subject digest:
60f5ba6cd8366881291091d82293527ca94cf5eb8766f8af31212a4daf65369c - Sigstore transparency entry: 1566744779
- Sigstore integration time:
-
Permalink:
dadaozhichen/OpenDevOps@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/dadaozhichen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dd701479c5c600e86ed7b8ca516fe2b5038c843 -
Trigger Event:
push
-
Statement type: