Package: organize-media
Organize Media (photos and videos)This application writes, inside an input existing directory , one directory list where the videos and photos are copied and organized in subdirectories following the year of creation, month of creation and topic.
In detail:I declared a ( relative or absolute) path where there are the videos and photos organized in subdirectories ('topic') and another path where writing the copied filesThe application writes the directories and subdirectories of they don't exist, otherwise they are not modifiedThe structure of the final directories is based on the extension and the topic of the filesFeaturesFutureIn copying the files, every directory also will have a CSV file (different from media type) with the list of the files and the data (this feature will remove the-wflag in input)Package the projectuse the internal logging in pythonadd the control thatdraft-tagmust has'nt not more than 100 rowcreate the specific file for Shutterstock: ( I put the filename, description and tags in different rows)Usingchain of commanddesign patternCreate one filedraft-tag-for every image or video, in the list I create theselected-tagsand after, intojoinphase, for every file I'm looking for the specific file tag, I read this and I join in the final fileBefore writing the tags, I control that the rows have'nt itWhen I create the final file CSV to upload, I have to create more than 1, so I can upload in batch wayCreate directroyrealtimeandtimelapsein directory dicopyphaseNextwrite the fileContribuinglikethisRunningPastOrganize the code: there are classes into directory test ( sistemare gli import nella directory organizemedia )use travis for CIdelete classAsStringfix the style in the modulesput classes with the tests intestspackage and classes with no tests insrcpackage, where there are only the classes without the testsBugFutureFix the unit testfix the Test SuiteResolve the TODO in the codeOrganize the structure following the guidelines inThe Hitchhiker's Guide to Python!Delete the test classes where it simport dateorimport datetimeCreate directoriesexportedandoriginalintopicincopycommandreview the system of the calculation of the more important tagsNextWrite defensive class to manage the input parametersRunningPastStatus CI IntegrationI useTravisGetting startedPrerequisitesPython 3.0+pippytestInstallingClone the project withgit-clone(or download directly it)Have fun!Running the testsRunscripts/unit_testing.sh (or bat)Break down into to end to end testsNo indicationsCoding styles sheetsPlease read the fileCONTRIBUTING.mdDeploymentNo package built (sorry, I'm a beginner in Python :) )Run>>> python Main.py $ABSOLUTE-PATH-WHERE-IT-READS-THE-EXISTING-IMG $ABSOLUTE-PATH-WHERE-IT-COPIES-TH-IMGBuilt with:ViM- one of the best text editor I knowpytest- most famous library about the unit testing in PythonContributingPlease read theContributing.mdfor the details about the code of conduct and the process for submitting pull requests.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsAlessandro Puzielli-creator-AlepuzioSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsPurpleBooth- to publish anexcellent templateof README that I used in this projectYegor256- to write the postElegant READMEsabout the README file and theAn Open Code Base Is Not Yet an Open Source Projectfor the Open Source projects