-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
63 lines (50 loc) · 1.69 KB
/
settings.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
class colors:
green = '\033[92m'
yellow = '\033[93m'
red = '\033[91m'
end = '\033[0m'
bold = '\033[1m'
help = """COMMANDS -- [command]{short form}\t[description]
snippet{snip} Shows all served snippets
teammate{team} Shows all registered teammates
suggest{sugg} Shows all up suggestions
logout{logout} To logout from the current session
clear{clea} Clears the console prompt
exit{exi} To exit"""
nux = """
___ ___
/\__\ /__/|
/::| | | |:|
/:|:| | | |:|
/:/|:| |__ __| |:|
/:/ |:| /\__\ /__/\_|:|____
\/__|:|/:/ / \ \:\/:::::/
|:/:/ / \ \::/~~~~
|::/ / \ \:\
/:/ / \ \:\
\/__/ \__\/
>> F E A T U R E D C O D E H U B <<
_
|- Login %s{login_user:s}%s
|- Network %s{network_status:s}%s
⎻""" % (colors.bold, colors.end,
colors.bold, colors.end)
login_url = 'http://codehub.pythonanywhere.com/api/v1/admin/login/'
logout_url = 'http://codehub.pythonanywhere.com/api/v1/admin/logout/'
snippet_url = 'http://codehub.pythonanywhere.com/api/v1/admin/snippet/'
team_url = 'http://codehub.pythonanywhere.com/api/v1/admin/team/'
suggest_url = 'http://codehub.pythonanywhere.com/api/v1/admin/suggest/'
server_url = 'http://codehub.pythonanywhere.com/'
indexes = [
'logout',
'snippet',
'teammate',
'suggest',
'help',
'clear',
'exit',
]
def oinput(text):
return input(colors.bold+text+colors.end+' > ')
def param(text):
return colors.bold+text+colors.end+' > '