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

Supported Python: >=3.9 (see requires-python in pyproject.toml).
tree-sitter: 0.21.x for 3.9–3.12; >=0.22 for 3.13+ (PyPI environment markers).

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

# English README (default is Chinese)
devops /path/to/project --lang en

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.9–3.13 预编译 scan_nativetree_sitter_native 并上传 wheel。
因此 pip install devops-analyzer 会优先安装这些 wheel,通常不需要在本机编译 C++

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

pip install devops_analyzer-0.1.7-cp311-cp311-win_amd64.whl

支持的 Python>=3.9(见 pyproject.tomlrequires-python)。
tree-sitter:3.9–3.12 使用 0.21.x;3.13 及以上使用 >=0.22(由 PyPI 环境标记自动选择)。

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

# 生成英文 README(默认中文)
devops /path/to/project --lang en

命令一览

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.7.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.7-cp313-cp313-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

devops_analyzer-0.1.7-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.7-cp311-cp311-macosx_10_15_universal2.whl (20.2 MB view details)

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

devops_analyzer-0.1.7-cp310-cp310-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.10Windows x86-64

devops_analyzer-0.1.7-cp310-cp310-manylinux_2_38_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.38+ x86-64

devops_analyzer-0.1.7-cp310-cp310-macosx_10_15_universal2.whl (20.2 MB view details)

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

devops_analyzer-0.1.7-cp39-cp39-win_amd64.whl (17.3 MB view details)

Uploaded CPython 3.9Windows x86-64

devops_analyzer-0.1.7-cp39-cp39-manylinux_2_38_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.38+ x86-64

devops_analyzer-0.1.7-cp39-cp39-macosx_10_15_universal2.whl (20.2 MB view details)

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

File details

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

File metadata

  • Download URL: devops_analyzer-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 f263c56a9ebf4276db321598689c17ebd07c555a33f048f177fe21a237f89e23
MD5 0e0f13d40bfffa2ab8c3bc5e92bf35bf
BLAKE2b-256 1b47a0818e974423faaeec1f56df3a1ea848beedb847616351f79031719af05a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ded15fccf64583536d35895897dab070467295f134cd3205111be80932b35952
MD5 4cd632c7bbab67f9fad2e91e4a77e117
BLAKE2b-256 080c623da6c7b5ee92cf6ee0a3d2116651f0867e96d48e46a857424eb73a23c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp313-cp313-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 36ca449fc3df86690c363dedde24cb1e80d4090d926b18cdbc8a0a294287a9b2
MD5 b141bee538d17d735010e58a82ff498b
BLAKE2b-256 e7ec95c1e095aa5870096b30420107373778627676b45c0f072595d94d8f0034

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 26f633883d3827c093cc6a21c9d9182b2bf1641a757b737431338ab061c81d8a
MD5 c896cedd36d1d993c88f61b701cdbf34
BLAKE2b-256 7fea10729d07880e7103ba3c6969789cd8da6cc8add9b44d755e00b44d0d03ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e3a0afcd09912833d6cdcb11376641aea2088fbe67817f59e41d28266ef5c19
MD5 8db36428930aa57c4f53944f6d7b03b3
BLAKE2b-256 302270a9759ae009598e59dbd9871b01adcdc0afb4b68a95800d1d2c8ed7467f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 656146fe0aad7f79da0c3836596931e8e03a567601ccab3fd46fb0d6b54eaadf
MD5 e17f534765d6dd13d6c22be1564bc507
BLAKE2b-256 6707b2f010971663bec956f206493b816f68a3ba6c8c3ccc03cd6a3cf3e1dd6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 f4cb80d63749d7b4157a678c8027ff36752f1c4d5ca899ae36471584e2daa3f8
MD5 c8cce807a2d796d6dbd5d461c7fa3ae2
BLAKE2b-256 f0b09a68f28b243285c06b96aa0cb5b55b690f3f95c05983db31c88ffd51b171

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 36702d9cc56d4b8458067009922f78a5f06486f858cd83ff4a38179af8db632c
MD5 f9f8f8a1cb722ec12c73935ccf4cdbcd
BLAKE2b-256 218b0bcfb1bf7d9fb60036ac6edf23caa9b845de0d0a12086c396ea493d16a7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp311-cp311-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 bb3d96a57457e24cd49d978e40ad839e8a2b1db322a14e1203efe4de877864d1
MD5 d309c865720744d4a0042c6898c4c180
BLAKE2b-256 66c88b1fdd052d9d08df7432bd330065e2da2d11d8be30f73661ae05108c8257

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 385febd317d4fc0b04ef57393d86427c9c9cc3d3140cccc97fb9c45ea02742a7
MD5 d8dfc49f42632c38b033b489d61adeae
BLAKE2b-256 db6a978d19ee82514d2842cbcbbcef8e180764ada7987b8b69df928231bb696b

See more details on using hashes here.

Provenance

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

File details

Details for the file devops_analyzer-0.1.7-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2444d58b0e0d347a09707b4c1de5523cdc8ce621f98600a7178f2d7e69ffbab
MD5 b0b651c5d9a10aabd42960c6e4388bc7
BLAKE2b-256 634a5f7ebede7a9024e0415d97aaee5aad27839b4bf173745dac2b0475160e22

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.7-cp310-cp310-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.7-cp310-cp310-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp310-cp310-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 f695e82140a38c1b50a41cfcb0e65f5bac10d29f37ea26e58b6bc682f59618e8
MD5 007eeb50a31634d7ce96804d5c4e78d2
BLAKE2b-256 425592d2b81646eee77c8c271a6a0f728abdb54b7740db02805df8615edcbc74

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.7-cp310-cp310-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.7-cp310-cp310-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp310-cp310-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 580b7f302578d201c02a7f85a1d433c0f44f20d53b397b878e3221f1b69f1d5d
MD5 942fe3361ae4909ad6068b1dd979c42e
BLAKE2b-256 14a687d2d2367d040ca29ed61bc5c93964667cd0c42a3669386de81299786516

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.7-cp310-cp310-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.7-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c49d1fbd94eb9e74788e97531039c3aca1bde16ce3cab78cf7d6694528cc3834
MD5 8e51a6b2b74aacb43df56f117c8a71a6
BLAKE2b-256 0a5a5acbe72bf51b9bab714f33547d7c05a21f568bf3956bb6d73422c8b5aa57

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.7-cp39-cp39-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.7-cp39-cp39-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp39-cp39-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 b7bfd314c3718ef8d488cea065cb12a7ef22fdd8b187df6d38edc52c92a9246e
MD5 0809c3217e4ae5479124d3fa6dd27103
BLAKE2b-256 0e7a45baec88e8e1547137e71b8c2903f53e2d64a54a0428ac7e08ec2e5d38ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for devops_analyzer-0.1.7-cp39-cp39-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.7-cp39-cp39-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for devops_analyzer-0.1.7-cp39-cp39-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 c3c54c8693bb3e1e4182131f298178115b079b4311a0cace96597d6d33d00bcd
MD5 70afe09f010dacc9e9f24f4a711e449e
BLAKE2b-256 894c0b3862c2e6f79166c8c28c0e895df382b71cf317900217ca7e430122304d

See more details on using hashes here.

Provenance

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