Skip to content

Kobra3390/K3zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Introduzione a K3Zip (IT)

K3Zip è un semplice script scritto interamente in python (nella versione 3.9.2), che sfrutta il modulo zipfile e la programmazione funzionale. K3Zip permette di semplicare tutte quelle operazione sugli archivi .zip. Il progretto è formato da due file: K3Zip.py e function.py. In function.py sono presenti tutte le funzioni che permettono le varie operazione che lo script può effettuare, il file K3Zip.py è il file main del progetto in cui vengono richiamate tutte le funzioni di function.py.


Introduction an K3Zip (EN)

K3Zip is a simple script written entirely in python, that uses the zipfile module and functional programming. It is made up of two files: K3Zip.py and function.py, the first is the main file of the project, the second contains all the functions recalled in the main file.


Requisiti (IT)

Windows: Avere la versione più aggiornata del interprete python (minimo dalla 3.9.2 in poi), stessa cosa per quanto riguarda Linux. Avere inoltre anche il modulo rich installato:

$ pip install rich

Requirements (EN)

Windows: Must have python interpreter 3.9.2 or newer, same thing for Linux. Also have the rich module installated:

$ pip install rich

Installazione (IT)

Windows e Linux:

$ git clone https://github.com/Kobra3390/K3zip.git
$ cd K3Zip
$ python K3Zip.py 

Per Linux l'ultimo comando può essere anche:

$ python3 K3Zip.py

Hot to Install (EN)

Windows and Linux:

$ git clone https://github.com/Kobra3390/K3zip.git
$ cd K3Zip
$ python K3Zip.py 

(The last command could be "python3 K3Zip.py" for Linux)


Caratteristiche (IT)

K3Zip ha 4 funzionalità principali:

  1. Estrarre file da un archivio zip: Questa funzione permette l'estrazione di file e cartelle da un archivizio .zip, l'archizio si dovrà trovare nella stessa cartella di K3Zip.py.

  2. Estrazione Informazioni da un file zip: Questa funzione permette di conoscere le informazioni legate all'archivio come: file che contiene, il loro peso da archiviati e da compressi. L'archivzio si dovrà contenere nella stessa cartella dello script.

  3. Creazione Archivizio Zip: Questo funzione permette di creare un archivio zip specificando il percorso dove crearlo, attenzione alla fine del percorso dovrà essere specificato il nome dell'archivizio .zip.

  4. Convertire una cartella in un archivio zip: Questa funzione permette di trasformare una cartella in un archivio zip. La cartella da convertire dovrà essere nella stessa cartella dello script.


Features (EN)

K3Zip has four possible operations:

  1. Extraction of files from a .zip archive: This operation allows the extraction of files and folders from a zip archive. the archive must be in the same folder as the script

  2. Extraction of informations from a zip file: This operation gives various info about the files inside of a zip archive, such as the file's extension, the size of the file, zipped and unzipped. The archive must be in the same folder as the script

  3. Creation of a zip archive: This operation creates a zip archive, by specifing the path where it should be created The name of the archive goes at the end of the path specification

  4. Convertion of a folder in a zip archive: This operation allows the user to turn a folder in a zip archive. The folder must be in the same folder as the script


K3Zip Versione 2 "K3Zip V2" (IT)

Nella versione 2 di K3Zip sono state aggiunge diverse funzionalitá inerenti agli Archivi Tar, ben 6 funzioni che si vanno aggiungere alle giá 4 presenti, esse sono:

  1. Crea un archivio Tar: Con tale funzione andiamo a creare un Archivio Tar dando in input il nome dell'archivio
  2. Aggiungi file all'Archivio Tar: Con questa funzione andiamo ad aggiungere file ad un Archivio Tar creato in precedenza, i file dovranno trovarsi nella stessa directory del programma, o dovrá essere inserito per esteso il loro percorso di sistema
  3. Controllare il contenuto di un archivio Tar: Con questa formula si va a controllare il contenuto di un Archvio Tar, in output ci restituirá nome di file e cartelle presenti nell'archivio.
  4. Estrai i file in una cartella da un archivio Tar: Questa operazione va a estrarre in una cartella di output tutto il contenuto di un archivio Tar
  5. Aggiungi una cartella a un archivio Tar: Con questa funzione andiamo ad aggiungere una cartella (contenente file ed eventuali altre sottocartelle) ad un Archivio Tar
  6. Controlla il peso di un file: Con questa funzionalitá é possibile sapere il peso di un certo file con annessi i suoi multipli e sottomultipli (KiloBytes, MegaBytes, GigaBytes etc)

K3zip Version 2 "K3Zip V2"

In K3Zip version 2 some functionalities inherent to Tar Archives have been added, 6 of them to be exact:

  1. Create a Tar Archive: With this funciton the user can create a Tar Archive, by giving the archive's name in input.

  2. Add a file to a Tar Archive: With this funciton we can add a file to the previously created archive; the file must be in the same directory as the program, otherwise the full file path needs to be entered.

  3. Check the content of a Tar Archive: with this funciton we can check the names of files and folders contained in the archive.

  4. Extract files from a Tar Archive: with this operation, all the files in the archive get extracted in an output folder.

  5. Add a folder in a Tar Archive: this funciton adds a folder(and subfolders and files contained in it, if present) to a Tar Archive.

  6. Check a file's size: with this functionality it's possible to know a file's size, in Kilobytes, Megabytes, Gigabytes and their multiples/submultiples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages