Quay API Client

Class for performing Quay API queries. Only the necessary queries have been implemented, though more can be added if required. The full API specification can be found at https://docs.quay.io/api/swagger/

class pubtools._quay.quay_api_client.QuayApiClient(token: str, host: Optional[str] = None)[source]

Class for performing Quay REST API queries.

__init__(token: str, host: Optional[str] = None) None[source]

Initialize.

Args:
token (str):

Quay API token for authentication.

host (str):

Quay registry URL.

delete_tag(repository: str, tag: str) Response[source]

Delete a tag from a repository.

Args:
repository (str):

Repository in which the tag resides.

tag (str):

Tag to get its referenced images from.

Returns (Response):

Request library’s Response object.

delete_repository(repository: str) Response[source]

Delete a Quay repository.

Args:
repository (str):

Repository to remove.

Returns (Response):

Request library’s Response object.