skillfed

docker-pycreds

Python bindings for the docker credentials store API

docker-pycreds v0.4.0 11.5M downloads/30d#1,385 on PyPI7
Permissive license Apache License 2.0 Abandoned released

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-pycreds

uv

uv add docker-pycreds

poetry

poetry add docker-pycreds

Installing 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

Development Status :: 4 - BetaEnvironment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Utilities

Tags

docker credentials store pythondocker credential management apistore docker login credentialsdocker-credential bindingsaccess docker secrets programmatically
dockercredentialsabandoned

More Utilities packages