Metadata-Version: 2.1
Name: pixv
Version: 0.0.8
Summary: Local Version Control System for Images
Project-URL: Homepage, https://github.com/ReallyJaegar/PixV
Author-email: Som Shekhar Sharma <sharmathat@gmail.com>, Dhruv Sagar <dhruvsagar24nd@gmail.com>
License: MIT License
        
        Copyright (c) 2024 PixV
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown

![Khaali](image/Logos.png)
# PixV (Image Version Control System)

## Description 

PixV 
is an image version control system designed to efficiently manage image changes, minimizing storage usage. Accessible as a Python package via pip install pixv, PixV utilizes a graph data structure, where each node represents a version. The project boasts numerous features for accessing different versions and offers versatile functionalities.



## Table  of Contents
- Installation
- Features
- Optimizations
- Dependencies
- Future Development Goals
- Authors
- License

## Installation

Install PixV with pip

```bash
  pip install pixv
```

## Features
- ## Add New Image in PixV
##### To use the Version Control System on a image , run the following command:
####
```python3 feature.py add path/to/image.png --author "Name of author"```  
- ## Commit Changes
##### Commit the changes in the image using the following command:
####
```python3 feature.py add path/to/image.png --message "commit_message" --author "Name of author"```
- ## Logs : 
#####  Displays all the versions of the image availiable in the project along with their uuid ,author ,time, commit_message.

To use the function run the following command in your terminal :

``` python3 feature.py logs path/to/image.png ```
####
- ## Push and Pull 
##### Push : It uploads local repository content to a remote repository.
##### Pull :  It fetches changes from a remote repository
####
Commands :

Push: ```python3 feature.py push path/to/image.png```
Pull: ```python3 feature.py push path/to/image.png```
####
- ## Forward & Revert
##### Forward : Feature to move to Next availiable Version 
##### Revert : Feature to move back to the previous Version
####
Commands:
####
Forward : ```python3 feature.py forward path/to/image.png```
####
Revert : ```python3 feature.py revert path/to/image.png```
####
- ## Shift
##### Can Shift to any version of the image using only this following command:
```python3 feature.py shift path/to/image.png --id [unique id of the version]```
####
#### Note : unique id can be seen using Logs command
####
- ## Hist
Using this function the user will be able to visualize the complete graph structure in the terminal.
####
```python3 feature.py hist [image.png]```

The graph structure will look like this:

![khaali](image/Hist.jpg)

####
- ## Locate 
####
Using this function user can locate where head is pointing.
####
```python3 feature.py locate path/to/image.png```
#####
- ## Original
#####
Brings back the original version of the image
###
Command: ```python3 feature.py original path/to/image.png```
####
- ## Show 
#####
##### Using the following command user can load the image : ```python3 feature.py original path/to/image.png```



## Optimizations

We've enhanced the version control system to minimize storage usage by storing only the changes between consecutive versions.


## Dependencies
- #### Pillow==10.0.1
- #### numpy==1.26.1
- #### requests==2.31.0
- #### matplotlib==3.8.2
- #### click==8.1.7
###
If you want to create your own server for file sharing :

Run the file_server.py


## Future Development Goals

- ### Adding Merge Operation
####
- ### GUI for the Version Control System
####
- ### Can be operated for any type of image format
####

## Authors

- [@Som Shekhar Sharma](https://github.com/ReallyJaegar)
- [@Dhruv Sagar](https://github.com/dhruvsagar24)



## License

[MIT](https://choosealicense.com/licenses/mit/)

