+---------------+
| Welcome |
| dear user |
| _________ |
| PYPRESS |
+---------------+
PyPress 0.0.0
Pypress is a featured library to compress files and folders.
Use it for other program
or directly run it through user.py or selecting mode in init.py
****Change in any file should reflect here.
input.py :-
Err class #return error message from PyPress
loc(LOCATION) # input file folder location (LOCATION).
# returns Err class
# replace option provides info to progran weather to delete existing compressed file
# zip location if it is a folder
# transfer flow to compress.py compress() definition
Compress.py :-
compress(-)
# opens specified file in 'r' mode, for folder 'rb' mode and zip file is taken.
# if exist replace compress file by viewing replace permission if permission not granted it will stop the program.
# calls press for compressing data.
press(-)
# change '' to '\' in data.
# for every changing layer`s every change , identifies the better changes and implements them in data each time.
# assamble data for compressed file return to compress for writting.
User.py :-
# A CLI (Command Line Interface) of PyPress.
# Ask to compress or decompress c/d.
# Ask to replace existing file even founded or not.
# Ask name of file or folder to compress..
Decompress.py :-
decompress(-)
# Check if compressed file available.
# Analyse compressed file each element.
# Calls do to decompress data section with help of word section
# if destiny is folder creates zip file writes data section of compressed file in it and unpack it in destiny.
# if destiny is file it writes data section in destiny.