Package: directory-organizer
Directory OrganizerPackageHave a cluttered Folder/Directory? No Worries!Directory Organizeris a simple Python Package that scans your folder directory and moves the specific file types to its type-specific directories.Currently Available for All Platform.Class Documentationclassdirectory_organizer.organizer(path='Downloads',verbose=False)By default,path = 'Downloads'of the Base OS andverbosity = Falseie no output to the console regarding files moved.ParametersDescriptionpathAbsolute path to the directory when we want to perform our operations.verboseControls the verbosity ie console output during our operations.Methodsorganizer.showHistory(extension_type=None)Returns a dictionary of the Files that were been moved.By default,showHistory()returns dictionary of the all the file types if no argument has been passed.ParametersDescriptionextension_typeCan be anything among these - ['Documents', 'Pictures', 'Music', 'Videos', 'Archived', 'Programming', Others']ifextension_typeis passed as an argument, then a dictionary containing moved files will be returned havingextension_typeas type.organizer.showExtensions(extension_type=None)Returns a dictionary of the files extensions that are been supported by the Package currently.By default,showExtensions()returns dictionary of the all the file extension types if no argument has been passed.ParametersDescriptionextension_typeCan be anything among these - ['Documents', 'Pictures', 'Music', 'Videos', 'Archived', 'Programming', Others']ifextension_typeis passed as an argument, then a dictionary containing all file extensions havingextension_typeas type will be returned .organizer.__version__Returns the current package version number.AboutCategorise your files into Pictures, Documents, Music, Videos, Archived, Programming or as Others!Pictures will be moved to/home/$user/Picturesfor Unix-based systems orc:\user\username\Picturesfor Windows, same goes for Documents, Music, Videos etc to their respective folders.All the classes/methods will be imported under the packagedirectory_organizer.Further File types will be added to existing types to widen support.Note :By default, Directory Organizer considers baseDownloadsDirectory of your OS.If the File-type doesn't match with either of Pictures/Documents/Videos/Music/Archived/Programming file extensions, then it'll be moved toOthersDirectory.This Package has been developed collectively by@rahulbordoloiand@SouravMzdrwhich has been published toPyPI.InstallationRun the following command on your terminal to installdirectory_organizer:1 .  Installing the Package usingpip:pipinstalldirectory_organizerORpip3installdirectory_organizer2 . Cloning the Repository:git clone https://github.com/rahulbordoloi/Directory-Organizer/
cd directory_organizer
pip install -e .UsageRun this Script in order to move all the Files to their respective type folders! [Default]# Importing Librariesfromdirectory_organizerimportorganizer# Main Methodif__name__=='__main__':organizer()Outputs1 . Selecting Directory and Output asDEFAULT>>>fromdirectory_organizerimportorganizer>>>organizer()MovingDocumentFileExtensions...MovingPictureFileExtensions...MovingMusicFileExtensions...NoVideostoMove!MovingArchivedFileExtensions...MovingProgrammingFileExtensions...MovingOtherFileExtensions...TimeElapsed:0.22seconds2 . Selecting aRandomDirectory with OutputTrue.>>>fromdirectory_organizerimportorganizer>>>organizer('C:\Personal\Work\Directory Organizer\Test\Random',True)MovingDocumentFileExtensions...6FilesmovedtoDocuments!5_6084888091904966894.pdf5_6293939556248977731.pdf798073238.pdfAWSBucket.csvB275D17ApplicationForm.pdfdatasets_1111_2005_kidney_disease.csvMovingPictureFileExtensions...2FilesmovedtoPictures!AboutME.png_MG_8632copy.jpgNoMusicFilestoMove!MovingVideoFileExtensions...1FilesmovedtoVideos!Narcos-MainTrailer-Netflix[HD].mp4MovingArchivedFileExtensions...1FilesmovedtoArchived!one-dark-theme-5.1.1.zipMovingProgrammingFileExtensions...5FilesmovedtoProgramming!11263_Good_Bad_Customers.ipynb11263_HR_Analytics.ipynbKidney_Disease.ipynbmonocai.jarsaved_model.pbMovingOtherFileExtensions...2FilesmovedtoOthers!ngrok.exepython-3.8.6.exeTimeElapsed:0.07secondsDevelopingDirectory OrganizerTo installdirectory_organizer, along with the tools you need to develop and run tests, and execute the following in your virtualenv:$pipinstall-e.[dev]Security & BugsAs a security measure, this scriptWILL NOTaccess files located in any subdirectory unless explicitly stated.Files having the same name as in Source and Target will getReplaced. [Caution]Contact Author(s)Name :Rahul BordoloiWebsite :https://rahulbordoloi.meEmail :rahulbordoloi24@gmail.comName :Sourav MazumdarEmail :souravmzdr@gmail.com