Skip to content

Recursive Wildcard files parser and categorizer | Automation Scripts | RegEx, Multiprocessing | Thread Syncronization

Notifications You must be signed in to change notification settings

manoj-jeswani/pythonic_automator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pythonic Magic

--Scripts written to automate time consuming manual work



Contents

  1. Assessment Content Seggregator
    • /Raw_Data : Data to be read and seggregated using wildcard searching
    • /Seggregated_Data : Output data after execution of seggregator script
    • /Seggregator_scripts :

      1. seg.py :: Goes deep into directory structure, reads files, makes wildcard searches, seggregates them on basis of 'Problem title-Tag-Level', 'Test-Cases Tags' , 'Solutions Languages'.
        Run: python3 seg.py

      2. concurrent_seg.py :: Obtained after reverse engineering of seg.py by using multithreading and thread syncronization in all those tasks in which concurrent processing was possible
        Run: python3 concurrent_seg.py

      After execution, /Seggregated_Data directory shall get flooded with organized data and script execution time shall get printed on console.
      execution_time(concurrent_seg.py) << execution_time(seg.py)

  2. automate.py ::
    Implements Linux { grep + mv } , it requires a pattern in input and makes a recursive search (for all the files matching the given pattern) in all the directories starting from the base directory (whose path has to be supplied in input).
    It moves all the searched files into a directory (that gets created dynamically in base directory and its name has to be supplied in input).
    Moreover,it has options for multi pattern search :: with ALL PATTERNS INCLUDE and ANY ONE PATTERN INCLUDE choices..

  3. rename_automate.py ::
    It takes in input the Base directory path and renames all the files (present in that directory) in an increasing numeric order..

About

Recursive Wildcard files parser and categorizer | Automation Scripts | RegEx, Multiprocessing | Thread Syncronization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published