|Build Status| |pypi|
A Python REST client for the Docker Registry
It's useful for automating image tagging and untagging
.. |Build Status| image:: https://travis-ci.org/yodle/docker-registry-client.svg?branch=master :target: https://travis-ci.org/yodle/docker-registry-client :alt: Build status
.. |pypi| image:: https://img.shields.io/pypi/v/docker-registry-client.svg :target: https://pypi.python.org/pypi/docker-registry-client :alt: Latest version released on PyPI
The API provides several classes: DockerRegistryClient
, Repository
, and Image
.
DockerRegistryClient
has the following methods:
namespaces()
-> a list of all namespaces in the registryrepository(repository_name, namespace)
-> the corresponding repository objectrepositories()
-> all repositories in the registryRepository
has the following methods:
tags()
-> a list of all tags in the repositorydata(tag)
-> json data associated with tag
image(tag)
-> the image associated with tag
untag(tag)
-> remove tag
from the repositorytag(tag, image_id)
-> apply tag
to image_id
Image
has the following methods:
get_layer()
-> binary layer data for imageget_json()
-> json metadata for imageget_data(field)
-> single field from json dataancestry()
-> ids for image ancestorspython-dxf <https://pypi.python.org/pypi/python-dxf>
_ (only supports V2)