公开记录
软件健康报告模式 0.12.0 · 指标 2.10.0 · 2026-07-18 12:43 UTC

testcontainers / testcontainers-python

Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.

PythonApache-2.0★ 2,251 星标⑂ 375 复刻始于 2017年3月在 GitHub 上查看 ↗
类型如何判定

testcontainers/testcontainers-python 的健康指数为 100 分中的 95 分,处于「卓越」区间。 其得分最高的类别是Engineering Quality(92/100),最低的是Security(58/100)。 最近一次更新在 1 天前。 近期的大部分工作由 4 位贡献者完成。

95
总分 / 100
卓越

软件健康指数

指标归入加权类别,统一采用 1–100 量表。总体分先取类别加权平均,再依据公开记录的分布进行校准,使各等级具有百分位含义;当公开证据触发高风险司法辖区政策时,评级会按政策调整,并设置 34(存在风险)的上限。

95
卓越93-100公开记录中的最高层级(约前 5%);基本满足所有检验标准
优秀80-92各方面均表现强劲;仅有少量不足
良好65-79健康;不足之处有限且可控
中等50-64可接受,但存在明显不足;建议进行审查
薄弱35-49多个领域存在实质性薄弱环节
存在风险20-34存在重大薄弱环节;采用时应保持审慎
危急1-19问题严重(项目被弃置、仅有单一维护者、缺乏基本工程规范)
活力社区与采用可持续性与治理工程质量安全AI 就绪度

评分画像

每条轴代表一个类别。形状比平均值更重要——健康的对象会填满整个图形,而“一峰一谷”式画像意味着某一维度的优势正掩盖另一维度的风险。

加权总体分 82 经校准后在公布的指数量表上为 95(记录校准 2026-08-02)。

所有权

2,272 关注者57 个公开仓库始于 2015年7月

该仓库由组织支持——共同承担、可问责的托管责任,可延续于任何单一维护者之后。

软件包生态系统

注册表软件包版本月下载量版本数最近发布标签
PyPItestcontainers4.14.2-71122 天前dockerloggingtest-automationtesting

按类别列示的指标

活力

项目是否仍有生命——是否仍在编写代码,是否仍在发布版本?

91优秀 · 占总体的 21%
评分方式
36/36推送新近度最近一次推送于 1 天前
20.8/36提交节奏52 周中有 30 周有提交
18/18提交量最近一年 143 次提交
10/10OpenSSF Scorecard:Maintained30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
所用输入
commits_last_year143
human_commit_share
days_since_last_push1
active_weeks_last_year30

发布纪律

100卓越
评分方式
27/27有发布版本已发布 51 个发布版本
36/36发布时效最近一次发布版本于 37 天前
27/27发布节奏约每 28.8 天发布一次
0/10OpenSSF Scorecard:Signed-Releases无数据
所用输入
releases_count51
latest_release_tagtestcontainers-v4.15.0-rc4
releases_from_tags
days_since_latest_release37
mean_days_between_releases28.8
已排除计分(无数据或不适用):OpenSSF Scorecard:Signed-Releases。 其余权重已重新归一化。

社区与采用

项目是否拥有用户、下载量与关注度,并具备欢迎贡献者参与的配置?

77良好 · 占总体的 17%
评分方式
54.4/60星标2,251 个星标
21.4/25复刻375 个复刻
6.8/15关注者18 位关注者
所用输入
forks375
stars2,251
watchers18
growth_stateunverified
growth_factor_pct100
growth_unverified_reasonno_history

社区健康

70良好
评分方式
22.5/22.5README
22.5/22.5许可证可识别的许可证(Apache-2.0)
18/18CONTRIBUTING 指南
0/13.5行为准则
0/7.2议题模板
0/6.3PR 模板
所用输入
has_readme
has_license
readme_badges
has_contributing
has_issue_template
has_code_of_conduct
readme_badge_services
has_pull_request_template

可持续性与治理

项目能否在其成员之外延续——巴士系数、响应能力、由谁支持,以及软件包的维护状况?

89优秀 · 占总体的 23%
评分方式
43.2/54巴士系数4 位贡献者贡献了半数提交
16.2/22.5提交分布头号贡献者编写了 28% 的提交
13.5/13.5贡献者广度100 位贡献者
10/10OpenSSF Scorecard:Contributorsproject has 22 contributing companies or organizations
所用输入
bus_factor4
contributors_sampled100
top_contributor_share0.28
评分方式
28.1/42议题解决67% 的议题已关闭
22.8/30PR 接受已裁定的 PR 中 481/633 已合并
0/13Newcomer PR acceptance30 天内没有首次贡献者的 PR 得到裁决
15/15OpenSSF Scorecard:Code-Reviewall changesets reviewed
所用输入
merged_prs481
open_issues131
closed_issues265
prs_merged_7d
prs_decided_7d
prs_merged_30d
prs_decided_30d
issue_closed_ratio0.669
closed_unmerged_prs152
first_time_authors_30d
first_time_prs_merged_30d
first_time_prs_decided_30d
已排除计分(无数据或不适用):Newcomer PR acceptance。 其余权重已重新归一化。
评分方式
30/30所有权背书组织持有
0/20已验证域名未读取该组织的域名验证状态
24.1/25所有者影响力testcontainers 有 2,272 位关注者
24.8/25既往记录57 个公开仓库,账户约 11 年
所用输入
followers2,272
owner_typeOrganization
is_verified
owner_logintestcontainers
public_repos57
account_age_days4,018
已排除计分(无数据或不适用):已验证域名。 其余权重已重新归一化。
评分方式
25/25已发布且可解析pypi 上有 1 个软件包
35/35发布时效最近一次发布于 122 天前
20/20版本历史71 个已发布版本
20/20未被弃用活跃,未被弃用或撤回
所用输入
packagestestcontainers
ecosystemspypi
any_deprecated
min_days_since_publish122

工程质量

基础的工程与文档实践是否到位?

92优秀 · 占总体的 19%

工程实践

94卓越
评分方式
24/24CI 工作流5 个工作流
24/24存在测试
16/16Linter 配置
9.6/9.6Pre-commit 钩子
0/6.4.editorconfig
20/20OpenSSF Scorecard:CI-Tests30 out of 30 merged PRs checked by a CI test -- score normalized to 10
所用输入
has_ci
has_tests
has_editorconfig
has_linter_config
has_precommit_config

文档

90优秀
评分方式
30/30README
25/25文档目录
15/15文档 / 主页站点https://testcontainers-python.readthedocs.io/en/latest/
10/10仓库描述
10/10主题标签6 个主题标签
0/10Wiki
所用输入
topicspython, python3, testing, testcontainers, selenium, database
has_wiki
homepagehttps://testcontainers-python.readthedocs.io/en/latest/
docs_sitehttps://testcontainers-python.readthedocs.io/en/latest/
has_readme
has_docs_dir
has_description

安全

可见的安全与供应链实践是否稳固,且不存在未解决的高风险司法辖区暴露?

58中等 · 占总体的 16%

安全态势

58中等
评分方式
7.5/7.5Binary-Artifactsno binaries found in the repo
0/7.5Branch-Protection无数据
2.5/2.5CI-Tests30 out of 30 merged PRs checked by a CI test -- score normalized to 10
0/2.5CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
7.5/7.5Code-Reviewall changesets reviewed
2.5/2.5Contributorsproject has 22 contributing companies or organizations
10/10Dangerous-Workflowno dangerous workflow patterns detected
7.5/7.5Dependency-Update-Toolupdate tool detected
0/5Fuzzingproject is not fuzzed
2.5/2.5许可证license file detected
7.5/7.5Maintained30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
5/5Packagingpackaging workflow detected
0/5Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 0
0/5SASTSAST tool is not run on all commits -- score normalized to 0
0/5Security-Policysecurity policy file not detected
0/7.5Signed-Releases无数据
0/7.5Token-Permissionsdetected GitHub workflow tokens with excessive permissions
0/7.5Vulnerabilities11 existing vulnerabilities detected
所用输入
sourceopenssf_scorecard
checks_evaluated16
scorecard_versionv5.5.0
checks_inconclusive2
scorecard_aggregate5.8
已排除计分(无数据或不适用):Branch-Protection, Signed-Releases。 其余权重已重新归一化。

AI 就绪度

该仓库在多大程度上具备与 AI 编码代理协同开发与维护的条件?权重刻意设小(4%):代理工具链是一项真实的维护信号,但完全不具备的仓库仍可达到 100/100。

62中等 · 占总体的 4%
评分方式
0/45代理指令没有 CLAUDE.md / AGENTS.md / 编辑器规则
0/15机器可读文档(llms.txt)
0/40可读的提交历史无数据
所用输入
has_llms_txt
llms_txt_url
legible_history_share
agent_instruction_files
agent_instruction_max_bytes
已排除计分(无数据或不适用):可读的提交历史。 其余权重已重新归一化。
评分方式
18/18一条命令的引导启动Makefile
22/22自动化测试
11/11Lint / 格式化配置
11/11静态类型检查src/testcontainers/py.typed
10/10可复现环境devcontainer, Dockerfile, lockfile
0/10已体现的代理实践无数据
5/8自动化维护已配置依赖自动化,但在抽样提交中未观察到
0/10OpenSSF Scorecard:Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 0
所用输入
has_nix
has_tests
lockfilesuv.lock
has_dockerfile
typed_language
bootstrap_filesMakefile
has_devcontainer
has_linter_config
typecheck_configssrc/testcontainers/py.typed
agent_commit_share
toolchain_manifests
dependency_bot_commit_share0
已排除计分(无数据或不适用):已体现的代理实践。 其余权重已重新归一化。
评分方式
27/45可类型检查的代码Python,已配置类型检查(src/testcontainers/py.typed)
55/55可控的文件大小采样的 267 个源文件中有 0 个超过 60KB
所用输入
primary_languagePython
largest_source_bytes33,253
source_files_sampled267
oversized_source_files0
评分方式
0/40API 模式(OpenAPI/GraphQL/proto)不适用于此类软件
0/20MCP 服务器不适用于此类软件
40/40可运行示例sample, samples
所用输入
example_dirssample, samples
has_mcp_signal
api_schema_files
interfaces_expected_of
已排除计分(无数据或不适用):API 模式(OpenAPI/GraphQL/proto), MCP 服务器。 其余权重已重新归一化。

关键数据

2,251GitHub 星标
100贡献者
143最近 12 个月提交数
1距最近推送天数
51发布版本数
4巴士系数(bus factor)
131开放议题
PyPI软件包生态系统数

更多细节

OpenSSF Scorecard 5.8 / 10
5.8综合

来自开源项目 OpenSSF Scorecard 的独立、工具无关的安全评估。每项检查奖励的是安全实践本身,而非特定供应商的工具。Scorecard 无法判定的检查项标记为 不适用,并从安全评分中剔除(绝不按零分计)。Scorecard v5.5.0 · 2026-07-18 12:42 UTC

10Binary-Artifactsno binaries found in the repo
不适用Branch-Protectioninternal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
10CI-Tests30 out of 30 merged PRs checked by a CI test -- score normalized to 10
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
10Code-Reviewall changesets reviewed
10Contributorsproject has 22 contributing companies or organizations
10Dangerous-Workflowno dangerous workflow patterns detected
10Dependency-Update-Toolupdate tool detected
0Fuzzingproject is not fuzzed
10Licenselicense file detected
10Maintained30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
10Packagingpackaging workflow detected
0Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 0
0SASTSAST tool is not run on all commits -- score normalized to 0
0Security-Policysecurity policy file not detected
不适用Signed-Releasesno releases found
0Token-Permissionsdetected GitHub workflow tokens with excessive permissions
0Vulnerabilities11 existing vulnerabilities detected
直接依赖 5
注册表软件包版本约束清单文件
PyPIdockerpyproject.toml
PyPIurllib3pyproject.toml
PyPIwraptpyproject.toml
PyPItyping-extensionspyproject.toml
PyPIpython-dotenvpyproject.toml
全部依赖 252

来自 GitHub 依赖图的完整解析依赖集合:5 个直接依赖与 247 个间接(传递)软件包。仓库提交锁文件时,传递闭包才是完整的。

注册表软件包版本关系
PyPIdocker7.2.0直接
PyPIpython-dotenv1.2.2直接
PyPItyping-extensions4.15.0直接
PyPIurllib32.7.0直接
PyPIwrapt2.2.2直接
PyPIaiofiles25.1.0间接
PyPIaiohappyeyeballs2.6.2间接
PyPIaiohttp3.14.0间接
PyPIaiosignal1.4.0间接
PyPIalabaster1.0.0间接
PyPIannotated-types0.7.0间接
PyPIanyio4.14.1间接
PyPIargon2-cffi25.1.0间接
PyPIargon2-cffi-bindings25.1.0间接
PyPIasn1crypto1.5.1间接
PyPIast-serialize0.5.0间接
PyPIasync-timeout5.0.1间接
PyPIattrs26.1.0间接
PyPIauthlib1.7.2间接
PyPIazure-core1.41.0间接
PyPIazure-cosmos4.16.1间接
PyPIazure-storage-blob12.30.0间接
PyPIbabel2.18.0间接
PyPIbackports-asyncio-runner1.2.0间接
PyPIbackports-tarfile1.2.0间接
PyPIbackrefs7.0间接
PyPIbcrypt5.0.0间接
PyPIboto31.43.36间接
PyPIboto3-stubs-lite1.43.36间接
PyPIbotocore1.43.36间接
PyPIbotocore-stubs1.43.14间接
PyPIbracex2.6间接
PyPIcachetools7.1.4间接
PyPIcassandra-driver3.30.0间接
PyPIcertifi2026.5.20间接
PyPIcffi2.0.0间接
PyPIcfgv3.5.0间接
PyPIcharset-normalizer3.4.7间接
PyPIchromadb-client1.5.9间接
PyPIclick8.4.1间接
PyPIclickhouse-driver0.2.10间接
PyPIcolorama0.4.6间接
PyPIcoverage7.14.1间接
PyPIcrate2.1.2间接
PyPIcryptography49.0.0间接
PyPIdeprecated1.3.1间接
PyPIdeprecation2.1.0间接
PyPIdistlib0.4.1间接
PyPIdnspython2.8.0间接
PyPIdocutils0.21.2间接
PyPIdocutils0.22.4间接
PyPIdurationpy0.10间接
PyPIevents0.5间接
PyPIexceptiongroup1.3.1间接
PyPIexecnet2.1.2间接
PyPIfilelock3.29.0间接
PyPIfrozenlist1.8.0间接
PyPIgeojson3.3.0间接
PyPIgeomet1.1.0间接
PyPIghp-import2.1.0间接
PyPIgoogle-api-core2.30.3间接
PyPIgoogle-auth2.53.0间接
PyPIgoogle-cloud-core2.6.0间接
PyPIgoogle-cloud-datastore2.25.0间接
PyPIgoogle-cloud-pubsub2.39.0间接
PyPIgoogleapis-common-protos1.75.0间接
PyPIgreenlet3.5.1间接
PyPIgrpc-google-iam-v10.14.4间接
PyPIgrpcio1.78.0间接
PyPIgrpcio-status1.78.0间接
PyPIh110.16.0间接
PyPIh24.3.0间接
PyPIhpack4.1.0间接
PyPIhttpcore1.0.9间接
PyPIhttpx0.28.1间接
PyPIhvac2.4.0间接
PyPIhyperframe6.1.0间接
PyPIibm-db3.2.9间接
PyPIibm-db-sa0.4.4间接
PyPIid1.6.1间接
PyPIidentify2.6.19间接
PyPIidna3.18间接
PyPIimagesize2.0.0间接
PyPIimportlib-metadata9.0.0间接
PyPIinfluxdb5.3.2间接
PyPIinfluxdb-client1.50.0间接
PyPIiniconfig2.3.0间接
PyPIinvoke3.0.3间接
PyPIisodate0.7.2间接
PyPIjaraco-classes3.4.0间接
PyPIjaraco-context6.1.2间接
PyPIjaraco-functools4.5.0间接
PyPIjeepney0.9.0间接
PyPIjinja23.1.6间接
PyPIjmespath1.1.0间接
PyPIjoserfc1.7.0间接
PyPIjsonschema4.26.0间接
PyPIjsonschema-specifications2025.9.1间接
PyPIjwcrypto1.5.7间接
PyPIkafka-python-ng2.2.3间接
PyPIkeyring25.7.0间接
PyPIkubernetes36.0.3间接
PyPIlibrt0.11.0间接
PyPIlz44.4.5间接
PyPImarkdown3.10.2间接
PyPImarkdown-it-py4.2.0间接
PyPImarkupsafe3.0.3间接
PyPImdurl0.1.2间接
PyPImergedeep1.3.4间接
PyPIminio7.2.20间接
PyPImkdocs1.6.1间接
PyPImkdocs-codeinclude-plugin0.2.1间接
PyPImkdocs-get-deps0.2.2间接
PyPImkdocs-include-markdown-plugin7.3.0间接
PyPImkdocs-markdownextradata-plugin0.2.6间接
PyPImkdocs-material9.7.6间接
PyPImkdocs-material-extensions1.3.1间接
PyPImore-itertools11.1.0间接
PyPImsgpack1.1.2间接
PyPImultidict6.7.1间接
PyPImypy2.1.0间接
PyPImypy-extensions1.1.0间接
PyPInats-py2.15.0间接
PyPIneo4j6.2.0间接
PyPInh30.3.5间接
PyPInodeenv1.10.0间接
PyPInumpy2.2.6间接
PyPInumpy2.4.6间接
PyPIoauthlib3.3.1间接
PyPIopenfga-sdk0.10.4间接
PyPIopensearch-protobufs1.2.0间接
PyPIopensearch-py3.2.0间接
PyPIopentelemetry-api1.42.1间接
PyPIopentelemetry-exporter-otlp-proto-common1.42.1间接
PyPIopentelemetry-exporter-otlp-proto-grpc1.42.1间接
PyPIopentelemetry-proto1.42.1间接
PyPIopentelemetry-sdk1.42.1间接
PyPIopentelemetry-semantic-conventions0.63b1间接
PyPIoracledb4.0.1间接
PyPIorjson3.11.9间接
PyPIoutcome1.3.0.post0间接
PyPIoverrides7.7.0间接
PyPIpackaging26.2间接
PyPIpaginate0.5.7间接
PyPIpaho-mqtt2.1.0间接
PyPIpandas2.3.3间接
PyPIpandas3.0.3间接
PyPIparamiko5.0.0间接
PyPIpathspec1.1.1间接
PyPIpg80001.31.5间接
PyPIpika1.4.1间接
PyPIplatformdirs4.10.0间接
PyPIpluggy1.6.0间接
PyPIportalocker3.2.0间接
PyPIpre-commit4.6.0间接
PyPIpropcache0.5.2间接
PyPIproto-plus1.28.0间接
PyPIprotobuf6.33.6间接
PyPIpsycopg3.3.4间接
PyPIpsycopg2-binary2.9.11间接
PyPIpyasn10.6.3间接
PyPIpyasn1-modules0.4.2间接
PyPIpybase641.4.3间接
PyPIpycparser3.0间接
PyPIpycryptodome3.23.0间接
PyPIpydantic2.13.4间接
PyPIpydantic-core2.46.4间接
PyPIpydantic-settings2.14.1间接
PyPIpygments2.20.0间接
PyPIpyjwt2.13.0间接
PyPIpymdown-extensions10.21.3间接
PyPIpymilvus3.0.0间接
PyPIpymongo4.17.0间接
PyPIpymssql2.3.13间接
PyPIpymysql1.2.0间接
PyPIpynacl1.6.2间接
PyPIpysocks1.7.1间接
PyPIpytest9.0.3间接
PyPIpytest-asyncio1.4.0间接
PyPIpytest-cov7.1.0间接
PyPIpytest-mock3.15.1间接
PyPIpytest-xdist3.8.0间接
PyPIpython-arango8.3.3间接
PyPIpython-dateutil2.9.0.post0间接
PyPIpython-discovery1.4.0间接
PyPIpython-keycloak7.1.1间接
PyPIpytz2026.2间接
PyPIpywin32311间接
PyPIpywin32-ctypes0.2.3间接
PyPIpyyaml6.0.3间接
PyPIpyyaml-env-tag1.1间接
PyPIqdrant-client1.18.0间接
PyPIreactivex4.1.0间接
PyPIreadme-renderer44.0间接
PyPIredis8.0.1间接
PyPIreferencing0.37.0间接
PyPIrequests2.34.2间接
PyPIrequests-oauthlib2.0.0间接
PyPIrequests-toolbelt1.0.0间接
PyPIrfc39862.0.0间接
PyPIrich15.0.0间接
PyPIroman-numerals4.1.0间接
PyPIrpds-py0.30.0间接
PyPIrpds-py2026.5.1间接
PyPIruff0.15.20间接
PyPIs3transfer0.19.0间接
PyPIscramp1.4.8间接
PyPIsecretstorage3.5.0间接
PyPIselenium4.45.0间接
PyPIsetuptools82.0.1间接
PyPIsix1.17.0间接
PyPIsniffio1.3.1间接
PyPIsnowballstemmer3.1.1间接
PyPIsortedcontainers2.4.0间接
PyPIsphinx8.1.3间接
PyPIsphinx9.0.4间接
PyPIsphinx9.1.0间接
PyPIsphinxcontrib-applehelp2.0.0间接
PyPIsphinxcontrib-devhelp2.0.0间接
PyPIsphinxcontrib-htmlhelp2.1.0间接
PyPIsphinxcontrib-jsmath1.0.1间接
PyPIsphinxcontrib-qthelp2.0.0间接
PyPIsphinxcontrib-serializinghtml2.0.0间接
PyPIsqlalchemy2.0.51间接
PyPIsqlalchemy-cockroachdb2.0.4间接
PyPIsqlalchemy-cratedb0.42.0间接
PyPItenacity9.1.4间接
PyPItestcontainers4.15.0rc4间接
PyPItomli2.4.1间接
PyPItrino0.337.0间接
PyPItrio0.33.0间接
PyPItrio-websocket0.12.2间接
PyPItwine6.2.0间接
PyPItypes-awscrt0.33.0间接
PyPItypes-docker7.1.0.20260518间接
PyPItypes-paramiko5.0.0.20260617间接
PyPItypes-requests2.33.0.20260518间接
PyPItypes-s3transfer0.16.0间接
PyPItyping-inspection0.4.2间接
PyPItzdata2026.2间接
PyPItzlocal5.3.1间接
PyPIvalidators0.35.0间接
PyPIverlib20.3.2间接
PyPIvirtualenv21.4.2间接
PyPIwatchdog6.0.0间接
PyPIwcmatch10.1间接
PyPIweaviate-client4.22.0间接
PyPIwebsocket-client1.9.0间接
PyPIwsproto1.3.2间接
PyPIyarl1.24.2间接
PyPIzipp4.1.0间接
PyPIzstandard0.25.0间接
原始 JSON 报告 机器可读

反馈

发现这份报告有不准确之处,或有想法要分享?错误的测量、未识别的工具、建议、疑问——都欢迎提出。每条消息都会被阅读并得到回复。

登录过程中消息不会丢失。

评分是信号,而非担保。 评分反映的是 GitHub 上公开可见的实践——不是代码审计,也不是安全保证。

缺失数据将被剔除并重新归一化权重,绝不按零分计。方法论已版本化并公开:指标 v2.10.0、模式 v0.12.0—— 完整方法论 · 指标知识库.

单项结果在整体记录中的位置: 汇总统计PyPI.