Skip to main content

AI 代码质量守门人 / AI code quality gatekeeper — 167 standards, 7 deep scanners, adaptive Quality Gate, FixPR

Project description

PassShore Engine

中文:AI 代码质量的守门人。167 条标准 + 7 个深度扫描器 + 自适应质量门禁。
English: AI code quality gatekeeper. 167 standards + 7 deep scanners + adaptive Quality Gate.


📖 中文说明

这是什么?

PassShore Engine 是 PassShore 的质量检测核心引擎。它把 AI 生成的代码和人类编写的代码放在同一个质量标尺下衡量——用行业标准工具(bandit、radon、ruff)而非自创规则。

核心能力

模块 功能
167 条标准 覆盖安全、架构、API、数据、权限、性能、合规、等保、DSMM
7 个深度扫描器 依赖漏洞、BOLA/BFLA、OpenAPI、GraphQL、协议合规、Secrets、SAST
Quality Gate 自适应阈值门禁,按项目成熟度(骨架→成长→稳定→成熟)自动调整
FixPR 自动修复代码问题并生成 PR
技术债评估 基于行业基准的量化技术债计算

安装

pip install passshore-engine

需要 Python ≥ 3.11。

快速使用

# 全量分析
from passshore_engine.analyzers.industry_analyzer import run_full
result = run_full("/path/to/your/project")
print(f"质量评分: {result['quality_score']}")
print(f"安全问题: {result['summary']['security_issues']}")

# 合规检查 + 质量门禁
from passshore_engine import ComplianceChecker
import asyncio
checker = ComplianceChecker(project_id="my_project")
results = asyncio.run(checker.check_target("http://localhost:8000"))

许可证

MIT


📖 English

What is this?

PassShore Engine is the core quality inspection engine for PassShore. It measures AI-generated and human-written code against the same quality standards — using real industry-standard tools (bandit, radon, ruff) rather than custom rules.

Key Features

Module Purpose
167 Standards Security, architecture, API, data, permission, performance, compliance
7 Deep Scanners Dependency vulns, BOLA/BFLA, OpenAPI, GraphQL, protocol, secrets, SAST
Quality Gate Adaptive thresholds — auto-tunes by project maturity (Skeleton → Growth → Stable → Mature)
FixPR Auto-fix code issues and generate PRs
Tech Debt Quantified tech-debt assessment against industry baselines

Installation

pip install passshore-engine

Requires Python ≥ 3.11.

Quick Start

# Full analysis
from passshore_engine.analyzers.industry_analyzer import run_full
result = run_full("/path/to/your/project")
print(f"Quality score: {result['quality_score']}")

# Compliance check + Quality Gate
from passshore_engine import ComplianceChecker
import asyncio
checker = ComplianceChecker(project_id="my_project")
results = asyncio.run(checker.check_target("http://localhost:8000"))

License

MIT

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

passshore_engine-0.1.2.tar.gz (252.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

passshore_engine-0.1.2-py3-none-any.whl (319.9 kB view details)

Uploaded Python 3

File details

Details for the file passshore_engine-0.1.2.tar.gz.

File metadata

  • Download URL: passshore_engine-0.1.2.tar.gz
  • Upload date:
  • Size: 252.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for passshore_engine-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e0bbbae879961dc3f8e217ed221baa28700c0b8c953960178e34444281d75e6f
MD5 73f04e645481f85f916b958312861afd
BLAKE2b-256 a3bb3770e59fa99a96ebb37487cc8f26cfdb18dac0010288747347600d75d2f6

See more details on using hashes here.

File details

Details for the file passshore_engine-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for passshore_engine-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f4a3bb27c06dba5f6d6222685448137b72bf2edf258e8f4dc7fb4688ccb1b4f
MD5 4022b6b3fa44833ed9938cab4bf5b590
BLAKE2b-256 a645b96fc0a08d1dca97d5bf374c3bb1de0962f35b5bf06935246d9d2a7aec89

See more details on using hashes here.

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