git-credentials
Simple library to interact with Git Credentials
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release January 2022, last commit August 2022) with no maintenance signal. While it has low install friction and permissive licensing, the lack of updates means it may break with newer Python versions, Git releases, or edge cases. For credential management, prefer actively maintained alternatives or direct use of Git's credential system via subprocess calls with proper error handling.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Git must be installed and available in PATH; the package is a thin wrapper around the `git credential` command.
- Low install friction with no runtime dependencies.
- However, the package is abandoned—last release was 2022-01-31 and last commit 2022-08-03—so expect no maintenance, bug fixes, or updates for newer Python versions or Git changes.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2022-01-31 (1656 days) · last repo commit 2022-08-03 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 163,581 downloads/mo, #10,567 on PyPI
Alternatives
Verify before relying
from git_credentials import GitCredentials, GitCredentialDescription
cred = GitCredentials("/path/to/repo")
response = cred.fill(GitCredentialDescription(
protocol="https",
host="example.com",
path="/"
))
print(response.username, response.password)- Whether the package works reliably with modern Git versions and recent Python releases (3.10+) given the 2022 abandonment.
- Whether the package handles all edge cases in credential storage across different Git credential helper backends.
What it is and what it does
git-credentials is a lightweight Python wrapper around Git's built-in `git credential` command, allowing you to query, approve, and reject credentials programmatically. It provides a simple interface to interact with Git's credential storage system—whether that's the OS keychain, a credential helper, or plaintext storage—without needing to shell out to Git directly or parse its output yourself.
The package has no external dependencies beyond Git itself and is designed for scenarios where you need to retrieve stored credentials, validate them in code, and optionally store new ones back into Git's credential system. It's useful in automation scripts, CI/CD pipelines, or tools that need to authenticate with Git repositories but want to leverage Git's existing credential infrastructure rather than managing secrets independently.
Use it for
- Retrieve stored Git credentials in a Python script to authenticate with a private repository.
- Validate credentials programmatically and tell Git whether they worked, updating its cache accordingly.
- Build automation tools that need Git credentials without hardcoding them or managing a separate secrets store.
- Implement custom credential workflows that integrate with Git's native credential helpers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release January 2022, last commit August 2022) with no maintenance signal. While it has low install friction and permissive licensing, the lack of updates means it may break with newer Python versions, Git releases, or edge cases. For credential management, prefer actively maintained alternatives or direct use of Git's credential system via subprocess calls with proper error handling.
Install
git-credentials on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2022-01-31 and last commit 2022-08-03—so expect no maintenance, bug fixes, or updates for newer Python versions or Git changes.
Git must be installed and available in PATH; the package is a thin wrapper around the `git credential` command.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
from git_credentials import GitCredentials, GitCredentialDescription
cred = GitCredentials("/path/to/repo")
response = cred.fill(GitCredentialDescription(
protocol="https",
host="example.com",
path="/"
))
print(response.username, response.password)
Verify before relying
- Whether the package works reliably with modern Git versions and recent Python releases (3.10+) given the 2022 abandonment.
- Whether the package handles all edge cases in credential storage across different Git credential helper backends.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,656 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 163,581 / month, #10,567 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: git_credentials-1.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “git credential management”
- git-credentialsWraps the `git credential` command to retrieve, store, and manage Git…
- bc-detect-secretsDetects secrets (API keys, tokens, credentials) in code repositories…
- detect-secretsDetects secrets (API keys, tokens, credentials) in code repositories…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also docker-pycreds · alibabacloud-credentials-api · alibabacloud-credentials · jupyterlab-git · truffleHog · credstash · robocorp-vault · boto3-assume · tinynetrc · gimme-aws-creds