harbor-py-light

The reborn Harbor Python SDK


Keywords
harbor, python, client, sdk, docker, registry, distribution, automation
License
Apache-2.0
Install
pip install harbor-py-light==2.1.2

Documentation

Harbor client light.

Introduction

Harbor is the enterprise-class registry server for docker distribution.

harbor-py-light is lightweight Harbor client. The supported APIs are list below.

Installation

pip install harbor-py-light

Usage

from harborclient import harborclient

host = "127.0.0.1"
user = "admin"
password = "Harbor12345"

client = harborclient.HarborClient(host, user, password)

client.get_projects()
client.get_users()
client.get_statistics()
client.get_top_accessed_repositories()
client.search("library")

For more usage, please refer to the examples.