Skip to main content

List Docker hub Image Tags.

Project description

ldit

List Docker hub Image Tags.

Requirements

  • python>=3.2
  • requests

Installation

$ pip3 install -U ldit

Usage

  • CLI
ldit [-h] image [image ...]

positional arguments:
  image       image name, eg. fedora, google/debian etc.

optional arguments:
  -h, --help  show this help message and exit
  • As module
from ldit.ldit import list_tags

print(list_tags('image'))

Example

  • CLI
$ ldit google/debian fedora
The image 'google/debian' on Docker Hub got following tag(s):
jessie
wheezy
The image 'fedora' on Docker Hub got following tag(s):
31
rawhide
30
29
latest
26
27
28
branched
25
26-modular
modular
24
heisenbug
20
21
22
23
  • As module
>>> from ldit.ldit import list_tags
>>> print(list_tags('google/debian'))
['jessie', 'wheezy']
>>> print(list_tags('fedora'))
['31', 'rawhide', '30', '29', 'latest', '26', '27', '28', 'branched', '25', '26-modular', 'modular', '24', 'heisenbug', '20', '21', '22', '23']

Project details


Download files

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

Source Distribution

ldit-0.0.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distributions

ldit-0.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

ldit-0.0.1-py2-none-any.whl (3.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page