docker-pycreds
Python bindings for the docker credentials store API
What it is and what it does
docker-pycreds is a Python wrapper around Docker's credential storage API, enabling programmatic access to store, retrieve, list, and erase Docker credentials. It depends on six for Python 2/3 compatibility and requires the docker-credential helper executable to be present on the system.
The package is designed for scenarios where you need to interact with Docker credentials from Python code rather than through the Docker CLI. It wraps the underlying credential store that Docker itself uses. However, the project is no longer maintained—the last release was 2018-11-29 and the repository shows no recent activity, which raises concerns about compatibility with modern Docker versions and Python releases.
Use it for:
- Automate credential management in Docker-based deployment scripts or CI/CD pipelines
- Build tools that need to authenticate with Docker registries without storing credentials in plaintext
- Integrate Docker credential retrieval into custom Python applications that orchestrate containers
- Manage multiple Docker registry credentials programmatically across different environments
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to interact with Docker's credential storage API, allowing you to store, retrieve, and manage Docker credentials programmatically.
No, unless you are maintaining legacy code that already depends on it. The package is abandoned (last release 2018-11-29, no commits since 2022-06-28), offers no active maintenance or security updates, and its compatibility with modern Python and Docker versions is unverified. For new projects, consider alternatives.
Install
docker-pycreds on PyPI
pip
pip install docker-pycredsuv
uv add docker-pycredspoetry
poetry add docker-pycredsInstalling docker-pycreds
Before you install
Low install friction with a single lightweight dependency (six). However, the package is abandoned—last release was 2018-11-29 and last commit 2022-06-28—so it receives no active maintenance or security updates.
License in practice
Licensed under Apache License 2.0 (permissive), which allows broad use, modification, and distribution with minimal restrictions.
Quickstart
pip install docker-pycreds
import docker-pycreds
store = docker-pycreds.Store('secretservice')
store.store(server='https://index.docker.io/v1/', username='user', secret='pass')
print(store.get('https://index.docker.io/v1/'))
The docker-credential executable for your platform must be installed on the system; the package provides Python bindings only and does not provide the credential helper itself.
Verify before relying
- Compatibility with modern Python versions (classifiers list only up to 3.6; current support unclear)
- Whether the package works with current Docker credential store implementations
- Active security status given the 2018 release date and no recent updates
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — six |
| Maintenance | abandoned — 2,815 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,538,192/month — #1,385 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: docker_pycreds-0.4.0-py2.py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
credstashCredStash stores and retrieves secrets using…
permissive · top 15,000 on PyPI
git-credentialsWraps the `git credential` command to retrieve,…
permissive · top 15,000 on PyPI
docker-pyA Python client library that lets you control…
permissive · top 5,000 on PyPI
onepasswordWrapper around the 1Password CLI that lets you…
permissive · top 15,000 on PyPI
azure-keyvault-secretsSecurely store, retrieve, and manage secrets…
permissive · top 1,000 on PyPI
tinynetrcRead, parse, and write .netrc credential files…
permissive · top 15,000 on PyPI
alibabacloud-credentialsManages authentication credentials for Alibaba…
permissive · top 5,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
alibabacloud-credentials-apiProvides credential management interfaces and…
permissive · top 5,000 on PyPI
python-pamPython wrapper for Linux PAM (Pluggable…
permissive · top 5,000 on PyPI