Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Client for Docker Registry V1 and V2

Project Description

A Python REST client for the Docker Registry

It’s useful for automating image tagging and untagging


The API provides several classes: DockerRegistryClient, Repository, and Image.

DockerRegistryClient has the following methods:

  • namespaces() -> a list of all namespaces in the registry
  • repository(repository_name, namespace) -> the corresponding repository object
  • repositories() -> all repositories in the registry

Repository has the following methods:

  • tags() -> a list of all tags in the repository
  • data(tag) -> json data associated with tag
  • image(tag) -> the image associated with tag
  • untag(tag) -> remove tag from the repository
  • tag(tag, image_id) -> apply tag to image_id

Image has the following methods:

  • get_layer() -> binary layer data for image
  • get_json() -> json metadata for image
  • get_data(field) -> single field from json data
  • ancestry() -> ids for image ancestors


0.5.2 (2017-06-16)

  • Fix for “AttributeError: ‘list’ object has no attribute ‘keys’” (Issue #41)
  • Added usage docs inside README.rst (Issue #39) (Issue #45)
  • Remove error logging when exception raised. (Issue #37)

0.5.1 (2017-01-12)

  • Fixes to release process with zest

0.5.0 (2017-01-12)

  • First version of docker-registry-client with changelog
  • Support get and push manifest on protocol v2, schema v1. (Issue #33)

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(11.7 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Jun 16, 2017
(8.0 kB) Copy SHA256 Hash SHA256
Source None Jun 16, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting