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.
- Projects APIs
- Get projects
- Create project
- Check project exist
- Get project id from name
- Set project publicity
- Get project access logs
- Get project member
- Get project and user member
- Repositories APIs
- Others APIs
- Search
- Get statistics
- Get top accessed repositories
- Get logs
- Get systeminfo
- Get systeminfo volumes
- 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.
Source Distribution
harbor-py-light-2.1.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for harbor_py_light-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a1b66560d177c4442710291a729fd143676c3d7cf6698f2bebaeb2598ec3ecc |
|
MD5 | 088f777b87e7641f9cb63d4ba930f50a |
|
BLAKE2b-256 | 443586d364d50c02663c17821d4739ffee7a8d15e5f5905e6892aebc95aa8327 |