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 <项目路径>

首次使用:配置模型 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.4.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.4-cp313-cp313-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.13Windows x86-64

devops_analyzer-0.1.4-cp313-cp313-manylinux_2_34_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.12Windows x86-64

devops_analyzer-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.11Windows x86-64

devops_analyzer-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

devops_analyzer-0.1.4-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.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

Hashes for devops_analyzer-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a075a59a337c5e14b69c724f7d6cd1beaef07f76fcfb815fe1c5c6c8209a44f8
MD5 b2c98e265367a7a913fb88fb54f4a715
BLAKE2b-256 d6c203963ceccf0d7a3971ebad66498ef90fa1685044fb8ff2a6f09d8e5afc2a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a5ea332cc6ba67d54c88f2b43a05a7f7e894900a3560dd651f32ee8e1c8ac74c
MD5 9c13313df0340a49ea97f5008e704ff8
BLAKE2b-256 d49c998b56c0738b63e5341779d37b7a42791b302556df56b3c439c4d8b41760

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.4-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.4-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0906ed5c34547c3dc1bfe1e85beb512d275d76912cd496047b9fdde16fd37b2b
MD5 16bc7d72e756115c8f2318b147cd9e8f
BLAKE2b-256 36350b6a0f0d7692d672bcdcfd1f89a37ae3d43f1dc461ff0a496e9a4b21fc11

See more details on using hashes here.

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

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.4-cp313-cp313-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 7a656c0fdb36bdcae37e1c0706d7e1741f32a852eaf46cb641dcbe7a72eee87c
MD5 58f02a56909e8e245bc5f47d0d3b692e
BLAKE2b-256 59e298cce6af9953fd0a42793ddfdc4f43d16c41d923deecad11f5960c297498

See more details on using hashes here.

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

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.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d04e410b5b5f81af4e7d8e7a7319e649cfa3649c5df5845975008bfc611f0ba
MD5 204208ad82fa9a6086cf80e0608c7aff
BLAKE2b-256 75af8f0c16be3276cdd904898e4333f0e180580dec7ae11539a5ac33c5b53468

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.4-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.4-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d0c4158c6787c447cee3f89a8a64e5cce446be3e57ae95daf7f5efe788004e59
MD5 22c0e0f5188377c3209d5089ea460a91
BLAKE2b-256 0a40199be5ad988c40d6ed680ea6a6e5c1f16284f320e211fc3ccf8f1827d9f9

See more details on using hashes here.

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

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.4-cp312-cp312-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 0651feb1f03fc284191a53a2bbd090fc6aeac005683ee12adf72a60e7152ac75
MD5 3cbf3048e81b29d77642a8914bd3cffc
BLAKE2b-256 3f15be22179f953e4a0324694c2b45cbb7fe4e6906f5b790026ae1a431a40a1c

See more details on using hashes here.

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

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.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff65be3e59024903b21a02b314003cfee8d49334dc3ccb3549be64f13a373352
MD5 091933e8c34901c2d01608b9bacc7afa
BLAKE2b-256 c273ebe9882a6f636d1029244ed817327841d58a327f19261ca17c6405883f06

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.4-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.4-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0b896c694b52a71e3082471d9431657b2b6b64021a793557b4203453582604c9
MD5 86888afa1ec335f658a3622b54df651c
BLAKE2b-256 913ff0a236f3a2d04880d6c01d605d2a27b82193c7e4493a6326543129421849

See more details on using hashes here.

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

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.4-cp311-cp311-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.4-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 efc591f43d44452b52bf76e060db7137039227cf4e1c201e19b90a1a2ab17c8d
MD5 d5922f99753946724da995d4ae940099
BLAKE2b-256 227c8459e583cc6e7d15b87b98db4d0b056462fe6221c9c498fa7900542300ad

See more details on using hashes here.

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

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