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.
Release files for harbor-py-light 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| harbor-py-light-2.1.2.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| harbor_py_light-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / harbor-py-light-2.1.2.tar.gz
| Download URL | harbor-py-light-2.1.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f912a8c8b188c286b3e1368b48de6bfbc4b3ebbe0922c41f3c1703710dd7c54
|
|
BLAKE2b-256 checksum How to use checksums |
075e1be9c687221948453239988b6a277609441c2e289bb99fdc7c816a5eb786
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.1
|
Release files / harbor_py_light-2.1.2-py3-none-any.whl
| Download URL | harbor_py_light-2.1.2-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45ea03d71fa8483aaae203ebda083ff6ae1e336349500696df19b7136ab31538
|
|
BLAKE2b-256 checksum How to use checksums |
fd50e009981e2f69b3fe438c8fd0a1310e6acd1a9e8190691e06eca489c35578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.1
|