Metadata-Version: 1.1
Name: harbor-py
Version: 1.0.0
Summary: The missing harbor python SDK
Home-page: https://github.com/tobegit3hub/harbor-py
Author: tobe
Author-email: tobeg3oogle@gmail.com
License: Apache Software
Description: ## Introduction
        
        [harbor](https://github.com/vmware/harbor) is the enterprise-class registry server for docker distributions.
        
        [harbor-py](https://github.com/tobegit3hub/harbor-py) is the native and compatible python SDK for harbor. The supported APIs are list below.
        
        - [ ] Projects APIs
          - [x] [Get projects](./examples/get_projects.py)
          - [ ] Create project
          - [x] [Check project exist](./examples/check_project_exist.py)
        - [ ] Users APIs
          - [x] [Get users](./examples/get_users.py)
          - [ ] Create user
          - [x] [Delete user](./examples/delete_user.py)
          - [ ] Change password
          - [x] [Promote as admin](./examples/promote_as_admin.py)
        - [ ] Repositories APIs
          - [x] [Get repositories](./examples/get_repositories.py)
          - [ ] Create repository
          - [ ] Delete repository
          - [x] [Get repository tags](./examples/get_repository_tags.py)
          - [x] [Get repository manifests](./examples/get_repository_manifests.py)
        - [ ] Others APIs
          - [x] [Search](./examples/search.py)
          - [x] [Get statistics](./examples/get_statistics.py)
          - [x] [Get top accessed repositories](./examples/get_top_accessed_repositories.py)
          - [ ] Get logs
        
        ## Installation
        
        ```
        pip install harbor-py
        ```
        
        ## 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](./examples/).
        
        ## Contribution
        
        If you have any suggestion for this project, feel free to subbmit [issues](https://github.com/tobegit3hub/harbor-py/issues) or send [pull-requests](https://github.com/tobegit3hub/harbor-py/pulls) to `harbor-py`.
        
        The `harbor` APIs may change occasionally, checkout the complete API list [here](https://github.com/vmware/harbor/blob/master/docs/configure_swagger.md).
        
        Publish package to [pypi](https://pypi.python.org/pypi/harbor-py/) with the following commands.
        
        ```
        python setup.py register -r pypi
        python setup.py sdist upload  -r pypi
        ```
        
Keywords: docker registry distribution harbor python sdk
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
