The current stable version is 0.1.1
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.
- Installation
- Features
- Optimizations
- Dependencies
- Future Development Goals
- Authors
- License
Any of the below methods can be used to access PixV.
-
Install PixV with pip
pip install pixv
-
Clone the repository, install dependencies and use feature.py in src directory to access all commands
git clone https://github.com/ReallyJaegar/PixV.git
pip install -r requirements.txt
pthon3 feature.py [COMMAND] [OPTIONS]
To intialise the tree of version control system. Further versions can only be created once the root node is created.
It creates a root node (nodes.rootNode).
-
or
pixv add [path/to/image.png] --author [NAME]
-
python3 feature.py add [path/to/image.png] --author [NAME]"
To add versions to the image once the root node (nodes.rootNode) has been initialised.
Wont work if the nodes.rootNode has not been initialised.
-
pixv commit [path/to/image.png] --message [COMMIT MESSAGE] --author [NAME]
or
-
python3 feature.py commit path/to/image.png --message "commit_message" --author "Name of author"
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 :
-
pixv logs [path/to/image.png]
or
-
python3 feature.py logs path/to/image.png
Commands :
-
- Push:
python3 feature.py push path/to/image.png
- Pull:
python3 feature.py push path/to/image.png
or
- Push:
-
- Push:
pixv push [path/to/image.png]
- Pull:
pixv push [path/to/image.png]
- Push:
Commands:
Forward : python3 feature.py forward path/to/image.png
Revert : python3 feature.py revert path/to/image.png
Forward : pixv forward [path/to/image.png]
Revert : pixv feature.py revert [path/to/image.png]
python3 feature.py shift path/to/image.png --id [unique id of the version]
pixv shift [path/to/image.png] --id [unique id of the version]
Using this function the user will be able to visualize the complete graph structure in the terminal.
python3 feature.py hist [image.png]
orpixv hist [image.png]
The graph structure will look like this:
Using this function user can locate where head is pointing.
-
python3 feature.py locate path/to/image.png
or -
pixv locate [path/to/image.png]
Brings back the original version of the image
python3 feature.py original path/to/image.png
orpixv original [path/to/image.png]
Using the following command user can load the image on the current HEAD location in the imageGraph :
-
python3 feature.py show [name of image]
or
pixv show [nameofimage]
We've enhanced the version control system to minimize storage usage by storing only the changes between consecutive versions.
If you want to create your own server for file sharing :
- Use the file_server.py