Skip to main content

The reborn Harbor Python SDK

Project description

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.

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

harbor-py-light-2.1.2.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

harbor_py_light-2.1.2-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

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