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
- Users APIs
- Repositories APIs
- Others APIs
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.
Contribution
If you have any suggestion, feel free to submit issues or send pull-requests for harbor-py.
Publish harbor-py package to pypi server with the following commands.
python setup.py register -r pypi
python setup.py sdist upload -r pypi
Release files for harbor-py-light 2.0.0
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.0.0.tar.gz | 6.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| harbor_py_light-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
| harbor_py_light-2.0.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 24.5 kB
Release files / harbor-py-light-2.0.0.tar.gz
| Download URL | harbor-py-light-2.0.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b46d972c27ecb72d606414ea5235803104c6a7c3dbabbe86881d6c474b51c826
|
|
BLAKE2b-256 checksum How to use checksums |
7622d5ef5d2ea25afa15d8e1c7223e8a27efca8e459ffe7088ca6d78bc517266
|
| 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.0.0-py3-none-any.whl
| Download URL | harbor_py_light-2.0.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45fa16e56861789519364a052825676f6f93ea6729e68dee25906a50d4998974
|
|
BLAKE2b-256 checksum How to use checksums |
abd77faa91cf0f3e13ac494e6c32167970913ced4cb136da057f7b532663788d
|
| 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.0.0-py2-none-any.whl
| Download URL | harbor_py_light-2.0.0-py2-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
ac1860032acb5309e3c703d3022638472cb4102c5763713d88d04f9fb7f997a1
|
|
BLAKE2b-256 checksum How to use checksums |
e40540fe65eafdd3d6a6b14944d3aa486c49a54482c5768cbf5ad644b4701704
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.2
|