Skip to main content

Extended Docker Hub API Client

Project description

PyDockerHub

Package provides some extended functionalities to PyDockerHub API. It doesn't cover all use cases, but rather focuses on managing images and builds during apps development.

Installation

You can install pydockerhub with your favourite package managers:

pip:

pip install pydockerhub

poetry:

poetry add pydockerhub

Extra Tricks

Official PyDockerHub API doesn't let you create or delete repositories, but you can do this through the website. PyDockerHub simply adds some HTTP Headers to introduce itself as a user using web browser, rather than a program. It's not any kind of violation AFAIK but keep in mind, that this workaround might be disabled in the future.

Credentials

You have basically two options when it comes to authenticating against DockerHub.

Username and Password

The same you have used to create an account on DockerHub.

{
  "username": "pinochcio",
  "password": "NoMoreLies"
}

Username and Access Token

To obtain an access_token you have to generate it in your account settings section here. By defining a proper scope you can generate Access Token without compromising your password when inviting collaborators. Then, you just use a token as a password:

{
  "username": "pinochcio",
  "password": "dckr_pat_9QNXBGGtZt7(...)"
}

Usage

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

pydockerhub-1.0.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

pydockerhub-1.0.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file pydockerhub-1.0.0.tar.gz.

File metadata

  • Download URL: pydockerhub-1.0.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.1.0

File hashes

Hashes for pydockerhub-1.0.0.tar.gz
Algorithm Hash digest
SHA256 94e6ca61fcda51ef20489468574a438756049cc4ecc110b946e41915970fb7ad
MD5 98d1e9c2e441d4f054e8efe6b0ed7d8e
BLAKE2b-256 e14144f98046c5d00e8c487de0a28cf0e046c23072da6fe74fc61573f7d081c1

See more details on using hashes here.

File details

Details for the file pydockerhub-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pydockerhub-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.1.0

File hashes

Hashes for pydockerhub-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65edce4e765ff2834b81893b49f75619325016f39088deccf73bb66b06744264
MD5 e18c3bdcce0d1076fe2d56b86cb86f7b
BLAKE2b-256 d6fd1b8e1c0c54c8933c73e8a3d6ce1cc4145b6702e5c019986af2517417dd70

See more details on using hashes here.

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