Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions GithubCloner2022.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,44 +36,43 @@

start_time = datetime.datetime.now()
try:
# ?#########? Start Initialization ##########
# ?#########? Start Initialization ##########
JsonFile = pd.read_json(f"./{fileConfigName}", orient='records')
JsonAPI = JsonFile['Github']
JsonDFConfigs = JsonFile['DataFrame']['Fields']
# ?#########? End Initialization ############
# ?#########? End Initialization ############

# ?#########? Start Objects Instances ##########
# ?#########? Start Objects Instances ##########
Handler = DfH()
Manager = DM()
Messenger = CM()
Timer = FMT()
# ?#########? End Objects Instances ##########
# ?#########? End Objects Instances ##########

# ?#########? Start DataManager Configuration ##########
# ?#########? Start DataManager Configuration ##########
Manager.InitialConfig(name, version, author, JsonAPI)
# ?#########? End DataManager Configuration ##########
# ?#########? End DataManager Configuration ##########

# ?#########? Start DataFrame Configuration ##########
# ?#########? Start DataFrame Configuration ##########
# *# Reads the 'csv' File to get the dataframe
df = pd.read_csv(filename)

# *# Sets the Main DF to the class to handle it
Handler.MainDataFrame = df
Handler.ConfigsJsonValues = JsonDFConfigs
Handler.ConfigurateDataFrame(Handler.ConfigsJsonValues['Course'])
# ?#########? End DataFrame Configuration ##########
# ?#########? End DataFrame Configuration ##########

# ?#########? Start Initialize DataManager ##########
# ?#########? Start Initialize DataManager ##########
Manager.CloneRepositories(Handler)
# ?##########? End Initialize DataManager ###########
# ?##########? End Initialize DataManager ###########
except Exception as e:
print(f'Exception: {e.args}')
finally:
# ?#########? Start Timer Config ##########
# ?#########? Start Timer Config ##########
Timer.CrudeTime = start_time
# ?#########? End Timer Config ##########

# ?#########? Start Print Message ##########
# ?#########? End Timer Config ##########
# ?#########? Start Print Message ##########
Messenger.Message = f"Elapsed Time: {Timer.FormattedTimeStr}"
Messenger.PrintMessage()

Expand All @@ -82,6 +81,6 @@

Messenger.Message = "Success! All task done. Press a key to close the app"
Messenger.PrintMessage()
# ?#########? End Print Message ##########
# ?#########? End Print Message ##########

end = input()
Binary file added Media/YT_Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions Modules/Formatter_Mod/Formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Formatter:
Formats the time saved in the attribute of the class, as a string. \n
like: {:02.0f} minute(s) {:02.0f} seconds. \n
Returns:
class: [Formatter]. \n
class: [Formatter]. \n
"""

# ?###########? START ATTRIBUTES ############
Expand All @@ -43,9 +43,9 @@ def CrudeTime(self) -> datetime:
@property
def FormattedTimeStr(self) -> str:
"""[summary] \n
Gets the formatted time string.
Gets the formatted time string.\n
Returns:
str: [The formatted time string.]
str: [The formatted time string.]\n
"""
return self.__formattedTimeStr

Expand All @@ -55,17 +55,17 @@ def CrudeTime(self, value: datetime) -> None:
Sets the time into the class and format it as a string like: \n
{:02.0f} minute(s) {:02.0f} seconds. \n
Args:
value (datetime): [Time to be formatted and saved into the class.]
value (datetime): [Time to be formatted and saved into the class.]\n
"""
self.__crudeTime = value
self.__FormatDatetimeAsString()

@FormattedTimeStr.setter
def FormattedTimeStr(self, formatTime: str) -> None:
"""[summary] \n
Sets the formatted time as a string.
Sets the formatted time as a string.\n
Args:
start_time (datetime): [Formatted Time] \n
start_time (datetime): [Formatted Time]\n
"""
self.__formattedTimeStr = formatTime

Expand Down
49 changes: 39 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
<table align='center'>
<tr>
<td>
<img alt="Universidad Tecnológica Nacional" src="https://github.com/caidevOficial/Logos/raw/master/Instituciones/logo-utn_black_white.png?raw=true" height="150px" />
</td>
<td>
<img alt="Python Logo" src="https://github.com/devicons/devicon/raw/master/icons/python/python-original.svg?raw=true" height="160px" />
</td>
</tr>
</table>
</br>
<tr>
<td>
<img alt="Universidad Tecnológica Nacional" src="https://github.com/caidevOficial/Logos/raw/master/Instituciones/logo-utn_black_white.png?raw=true" height="150px" />
</td>
<td>
<img alt="Python Logo" src="https://github.com/devicons/devicon/raw/master/icons/python/python-original.svg?raw=true" height="160px" />
</td>
</tr>
<tr>
<td colspan=2 align='center'>
<center>
<img alt="Pandas Logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Pandas_logo.svg/1200px-Pandas_logo.svg.png?raw=true" height="150px" />
</center>
</td>
</tr>
</table>
</br>

<div align="center">
<h3>Pisces♓ | Developer👨‍💻 | Python<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg" alt="python" width="40" height="28"/> | GCP <img src="https://www.vectorlogo.zone/logos/google_cloud/google_cloud-icon.svg?raw=true" alt="GCP" width="30" height="30"> | Java <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg" alt="java" width="30" height="30"/> | C# <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg" alt="csharp" width="25" height="25"/> | Dreamer 💖 | Teacher👨‍🏫| A bit nerd🤓</h3>
<br>
Expand All @@ -32,7 +40,28 @@

---

<br>




<table align='center'>
<theader>
<th><h2><center>Watch this little video Demo on 🎥</center></h2></th>
</theader>
<tr>
<td>
<a href='https://lnkd.in/e-m4ThfQ' target='_blank'>
<center>
<img alt='Youtube Logo' src='./Media/YT_Logo.png' width=350/>
</center>
</a>
</td>
</tr>
</table>

<br><br><br>

# Repository Cloner
The program it allows you to clone repositories from github in bulk and store them in specific directories from a csv file.
Aditionally it saves the data of every student & course into a json with the name of the course.
Expand Down