Package: arrangepy
ArrangePyOrganizes files in folders and helps you to clean your PCExplore the docs Â»View DemoÂ·Report BugÂ·Request FeatureTable of ContentsAbout The ProjectBuilt WithGetting StartedPrerequisitesInstallationUsageRoadmapContributingCommunityLicenseContactWhat it doesOrganizes the files based on their extensions in folders.If you run the script in a directory containing hundreds of files of multiple filetypes, the script will arrange all of them in different directories based on the file type. For example, all PDFs are arranged in a directory for PDFs, all document based files (docx, doc, xlsx, pptx etc) are moved to thedocsdirectory.All these files are moved to a directory namedArrangedPyin the directory on which the script was executed. So if you ran the script on yourDownloadsdirectory, a directory namedArrangedPywill be created inDownloads.You can specify which files to move to which directory using the config.ini file.Read about it on myblogFeaturesCurrently it has 2 modesEasy mode: Organzises files in the current directoryHard mode: Organizes files in the current directory and its subdirectoriesBuilt WithPythonand some dedication by theawesome contributorsGetting StartedFollow the given steps to get started with ArrangePyPrerequisitesYou should have Python installed on your system. You can move to Installation if you have it, otherwise continue with the next steps.InstallPythonfrom python.orgMake sure to add Python to PATH if you are on WindowsTo check that Python has been installed on your PC, open Command Prompt or Terminal and type in following commandpython --versionThis should outputPython 3.x.xwhere x.x is the version of your Python installation.
Note: If that does not work, trypython3 --versionorpy --versionIn the next part of the readme,pythonwill be used, change it with the command that works for your PCInstallationInstallation from PyPIOpen command prompt/terminal and type the following commandpipinstallarrangepyorpip3installarrangepydepending on the version.It will install ArrangePy and the required packages.To confirm that ArrangePy has been installed successfully, type the following command in terminalarrange-hIt should show you a message on how to use it.Installation from GitHubClone the ArrangePygitclonehttps://github.com/prashantsengar/ArrangePyChange to the project directorycdArrangePyInstall requirementspipinstall-rrequirements.txtRun ArrangePypython-marrangepyFor the usage examples, replacearrangewithpython -m arrangepyUsageusage:arrange[-h][-w|-s|-b][-nw][directory]positionalarguments:directoryThedirectorytoarrange,defaultiscurrentworkingdirectory

optionalarguments:-h,--helpshowthishelpmessageandexit-w,--weakWeakarrange-s,--strongStrongarrange-b,--webRunwebGUI-nw,--no-warningDon'tshowanywarningswhenrunningstrongarrangeExamplesarrange(Arranges current directory, asks for type of arrange [WEAK/STRONG] )arrange -w(Weak arranges current directory)arrange -w PATH/TO/DIRECTORY(Weak arranges given directory)arrange -s -nw PATH/TO/DIRECTORY(Strong arranges given directory without any warning)Running the Web GUIarrange -b# for the web interfaceEditing the CONFIG fileYou can edit the config.ini file to change how the directories are created.
Say the initial configuration is this:[ext]
PDF=['pdf'],
Images=['png','jpeg','jpg','gif', 'tiff', 'psd', 'ico'],This will move all PDF files to a directory namedPDFand all images of mentioned extensions to a directory namedImages.To add a new file type(say .eps) to theImagesdirectory, add the new extension to the Images list. So it will change to:[ext]
PDF=['pdf'],
Images=['png','jpeg','jpg','gif', 'tiff', 'psd', 'ico', 'eps'],To add a new type of file (new directory)Say you want to move all the video files along with PDFs and images. You can do that in this way:[ext]
PDF=['pdf'],
Images=['png','jpeg','jpg','gif', 'tiff', 'psd', 'ico', 'eps'],
Videos=['mp4','mkv','avi','3gp'],Now it will arrange all mp4, mkv, avi, 3gp files to the Videos directory.RoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make aregreatly appreciated.Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestYou can contribue to this project using multiple ways.Here are a few things that you can work onImprove this README to explain the idea better. GIFs can be added, for example.Adding extensions to the config.ini file will improve the experience for everyone.Improve the code, add new features or fixissues.Please read thecontribution guideCommunityRead thecontributing guideJoin the Telegram group for support and contributing. If you want to contribute, joining the group helps us all a lot because you can get instant feedback.LicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactPrashant Sengar -@prashanttgs- contact--AT--prashants.inProject Link:https://github.com/prashantsengar/ArrangePy