Registry / devops / db-contrib-tool

db-contrib-tool

JSON →
library2.3.0pypypiunverified

MongoDB's official tool for contributors to manage community contributions (CLI). Current version: 2.3.0, requires Python >=3.9, <3.14. Release cadence: irregular, major changes with each MongoDB release cycle.

pip install db-contrib-tool
INSTALL
IMPORT
SIG · DB-CONTRIB-TOOL
D
db-contrib-tool
devopspythonv2.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DbContribTool
from db_contrib_tool import DbContribTool
from db_contrib_tool import DbContribTool

Initialize the tool with GitHub credentials (optional) and run CLI command programmatically.

import os from db_contrib_tool import DbContribTool username = os.environ.get('GITHUB_USERNAME', '') token = os.environ.get('GITHUB_TOKEN', '') tool = DbContribTool(github_user=username, github_token=token) tool.run(['--help'])
Debug
Known issues
breakingIn v2.0+, the configuration file format changed from YAML with 'tasks' key to a flat structure. Old configs will cause 'KeyError'.
fix
Update config: remove 'tasks' wrapper; use 'commands' as top-level key if needed.
affects: >=2.0.0
gotchaThe tool requires GitHub API token environment variables (GITHUB_USERNAME and GITHUB_TOKEN) for many subcommands. Missing them will result in silent fallback to unauthenticated requests (rate limited).
fix
Set environment variables: export GITHUB_USERNAME='your-username' and GITHUB_TOKEN='your-token'
affects: >=2.0.0
deprecatedThe 'db-fix' subcommand was deprecated in v2.3.0 and will be removed in v3.0. Use 'db-fix-ng' instead.
fix
Replace 'db-fix' with 'db-fix-ng' in commands.
affects: >=2.3.0
Upgrade
Version history
2.3.0latest on PyPI · released Jun 1, 2026
Audit
Dependencies
clickrequiredCLI framework used by default for command parsing
pyyamlrequiredConfiguration file parsing (YAML)
requestsrequiredHTTP requests to GitHub API and MongoDB Jira
Agent activity
5 hits · last 30 days
node
4
Resources
db-contrib-tool — pip install db-contrib-tool · libregistry