Metadata-Version: 2.1
Name: docker-registry-py
Version: 0.1.3
Summary: A simple python program for managing container registry in private
Author: selva
Author-email: selva.g@subcom.tech
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: docker (>=6.0.1,<7.0.0)
Requires-Dist: typer (>=0.7.0,<0.8.0)
Description-Content-Type: text/markdown

# Docker Registry Py


This is a simple python program to manage containers to upload, download and delete in private container regitry



To Install `docker-registry-py` use

````
pip install docker_registry_py
````

To use in your py program:

````
from docker_registry import container_registry
````

create an object with class `Docker_registry` in `container_registry` 
example:
````
x = container_registry.Docker_registry()
````






list of functions in container_registry.Docker_registry

|Function                 |     Description                                                                                          |    parameters                    |
|-----------------------  |    ------------------------------------------------------------------------------------------------      |  --------------------            |
|`is_container_running()` | return status true or false whether a container is running with given name or not                        |   container_name:str             |
|`check_repo_in_pvt_reg()`| prints the repos in private registry                                                                     |                                  |
|`setup_pvt_registry()`   | starts private registry with a given conatiner name as class object                                      |                                  |
|`pull_image()`           | Pulls image from docker hub if --no-private-reg or pulls image from private-container-registry by default|  image:str, private_reg: bool    |
|`push_image()`           | Push image to private_container_registry                                                                 | image: str                       |
|`delete_image()`         | Deletes image from private_containe_registry by default                                                  |   image: str,  private_reg:bool  |





