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.

  • <input type="checkbox" checked="" disabled="" /> Projects APIs
    • <input type="checkbox" checked="" disabled="" /> Get projects
    • <input type="checkbox" checked="" disabled="" /> Create project
    • <input type="checkbox" checked="" disabled="" /> Check project exist
    • <input type="checkbox" checked="" disabled="" /> Get project id from name
    • <input type="checkbox" disabled="" /> Set project publicity
    • <input type="checkbox" disabled="" /> Get project access logs
    • <input type="checkbox" disabled="" /> Get project member
    • <input type="checkbox" disabled="" /> Get project and user member
  • <input type="checkbox" checked="" disabled="" /> Repositories APIs
  • <input type="checkbox" checked="" disabled="" /> Others APIs
    • <input type="checkbox" checked="" disabled="" /> Search
    • <input type="checkbox" checked="" disabled="" /> Get statistics
    • <input type="checkbox" checked="" disabled="" /> Get top accessed repositories
    • <input type="checkbox" checked="" disabled="" /> Get logs
    • <input type="checkbox" checked="" disabled="" /> Get systeminfo
    • <input type="checkbox" checked="" disabled="" /> Get systeminfo volumes
    • <input type="checkbox" checked="" disabled="" /> Get configurations

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.

Files for harbor-py-light, version 2.1.2
Filename, size File type Python version Upload date Hashes
Filename, size harbor_py_light-2.1.2-py3-none-any.whl (10.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size harbor-py-light-2.1.2.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page