-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
27 lines (21 loc) · 772 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import getpass
import network
import filesManger
import const
import user
import datetime
from github import Github
def CreateUser():
print("Enter your Data\nName: ", end='')
name = input().strip()
password = (getpass.getpass("Password: ").strip())
return user.User(name, password)
if __name__ == '__main__':
myUser = CreateUser()
network.sessionAndFiles(myUser)
filesManger.NamingAndReplace(const.unzipDirTemp)
time = datetime.datetime.now()
readmeFile = open('tmpfiles/README.md' ,'w')
readmeFile.truncate(0)
readmeFile.write(f"# About\nProblems automated from vjudge {time.strftime('%d/%m/%Y - %I:%M %p')} and manually pushed to git")
#TODO: partioning script to 1-files class 2-Network session module 3 - Github module