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
- 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
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.0.0.tar.gz
(6.5 kB
view hashes)
Built Distributions
Close
Hashes for harbor_py_light-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45fa16e56861789519364a052825676f6f93ea6729e68dee25906a50d4998974 |
|
MD5 | 834615cd30ab736eb3c3fa591fbd0cab |
|
BLAKE2b-256 | abd77faa91cf0f3e13ac494e6c32167970913ced4cb136da057f7b532663788d |
Close
Hashes for harbor_py_light-2.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1860032acb5309e3c703d3022638472cb4102c5763713d88d04f9fb7f997a1 |
|
MD5 | eb28016a39f977ed4860f474332bd2f2 |
|
BLAKE2b-256 | e40540fe65eafdd3d6a6b14944d3aa486c49a54482c5768cbf5ad644b4701704 |