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(...)"
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pydockerhub-1.2.1.tar.gz
.
File metadata
- Download URL: pydockerhub-1.2.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2646f773f5f110db63503117756ea399c3d5dec058fa58e62d97c736426c44a |
|
MD5 | 124a43e5a4b8ebb7a9e03091536094e5 |
|
BLAKE2b-256 | ab4edf039663a0fa009816e943f5fa49271a2fb336a60ce47a3b805e5eac4e4c |
File details
Details for the file pydockerhub-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: pydockerhub-1.2.1-py3-none-any.whl
- Upload date:
- Size: 13.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d75056e3a1deee7a3235533f86fc55ea1a3e6d78e19a82c0e1068cea4956a9 |
|
MD5 | 5f7e1a28c4ba29876bbcd2e810293d7a |
|
BLAKE2b-256 | c81164b8e8886e1d335c9f4cb56f1d56eebad962186e987256231a157b110919 |