zeushell 0.1.2__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zeushell-0.1.2 → zeushell-0.1.4}/PKG-INFO +1 -1
- {zeushell-0.1.2 → zeushell-0.1.4}/pyproject.toml +1 -1
- zeushell-0.1.4/zeushell/__init__.py +38 -0
- {zeushell-0.1.2 → zeushell-0.1.4}/zeushell.egg-info/PKG-INFO +1 -1
- zeushell-0.1.2/zeushell/__init__.py +0 -57
- {zeushell-0.1.2 → zeushell-0.1.4}/README.md +0 -0
- {zeushell-0.1.2 → zeushell-0.1.4}/setup.cfg +0 -0
- {zeushell-0.1.2 → zeushell-0.1.4}/zeushell.egg-info/SOURCES.txt +0 -0
- {zeushell-0.1.2 → zeushell-0.1.4}/zeushell.egg-info/dependency_links.txt +0 -0
- {zeushell-0.1.2 → zeushell-0.1.4}/zeushell.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
def name(a):
|
|
2
|
+
global shellname
|
|
3
|
+
shellname=a
|
|
4
|
+
def function():
|
|
5
|
+
def dd(func):
|
|
6
|
+
try:
|
|
7
|
+
funclist
|
|
8
|
+
except:
|
|
9
|
+
funclist=[]
|
|
10
|
+
funclist.append(func.__name__)
|
|
11
|
+
qqqqqqq=open("w.txt","w")
|
|
12
|
+
qqqqqqq.write(str(funclist))
|
|
13
|
+
qqqqqqq.close()
|
|
14
|
+
return func
|
|
15
|
+
return dd
|
|
16
|
+
def run():
|
|
17
|
+
import json
|
|
18
|
+
try:
|
|
19
|
+
shellname+=": "
|
|
20
|
+
except:
|
|
21
|
+
shellname="Zeushell: "
|
|
22
|
+
while True:
|
|
23
|
+
ino=input(shellname)
|
|
24
|
+
s=ino.split()
|
|
25
|
+
if s==[]:
|
|
26
|
+
continue
|
|
27
|
+
aaaaa=s[0]
|
|
28
|
+
qqqqqqq=open("w.txt","r")
|
|
29
|
+
wigeiu=qqqqqqq.read()
|
|
30
|
+
qqqqqqq.close()
|
|
31
|
+
json.loads
|
|
32
|
+
if aaaaa not in json.loads(wigeiu):
|
|
33
|
+
print('You didn\'t have '+aaaaa+' function')
|
|
34
|
+
continue
|
|
35
|
+
s=s[1:]
|
|
36
|
+
s=str(s).replace("[","(").replace("]",")")
|
|
37
|
+
exec(aaaa+s)
|
|
38
|
+
return 1
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
def name(a):
|
|
2
|
-
global shellname
|
|
3
|
-
shellname=a
|
|
4
|
-
def function():
|
|
5
|
-
def dd(func):
|
|
6
|
-
try:
|
|
7
|
-
funclist
|
|
8
|
-
except:
|
|
9
|
-
global funclist
|
|
10
|
-
funclist=[]
|
|
11
|
-
funclist.append(func.__name__)
|
|
12
|
-
return func
|
|
13
|
-
try:
|
|
14
|
-
a=open("ss.txt","r")
|
|
15
|
-
s=a.read()
|
|
16
|
-
a.close()
|
|
17
|
-
except:
|
|
18
|
-
s=""
|
|
19
|
-
pass
|
|
20
|
-
w=open("ss.txt","w")
|
|
21
|
-
w.write(s+name+"\n")
|
|
22
|
-
w.close()
|
|
23
|
-
return dd
|
|
24
|
-
def run():
|
|
25
|
-
class ZeushellError(Exception):
|
|
26
|
-
pass
|
|
27
|
-
try:
|
|
28
|
-
a=open("ss.txt","r")
|
|
29
|
-
w=a.read()
|
|
30
|
-
a.close()
|
|
31
|
-
except:
|
|
32
|
-
raise ZeushellError("you didn\'n make function")
|
|
33
|
-
try:
|
|
34
|
-
shellname+=": "
|
|
35
|
-
except:
|
|
36
|
-
shellname="Zeushell: "
|
|
37
|
-
srtin=""
|
|
38
|
-
wsss=[]
|
|
39
|
-
for i in w:
|
|
40
|
-
if i=="\n":
|
|
41
|
-
wsss.append(srtin)
|
|
42
|
-
srtin=""
|
|
43
|
-
else:
|
|
44
|
-
srtin+=i
|
|
45
|
-
while True:
|
|
46
|
-
ino=input(shellname)
|
|
47
|
-
s=ino.split()
|
|
48
|
-
if s==[]:
|
|
49
|
-
continue
|
|
50
|
-
aaaaa=s[0]
|
|
51
|
-
if aaaaa not in funclist:
|
|
52
|
-
print('You didn\'t have '+aaaaa+' function')
|
|
53
|
-
continue
|
|
54
|
-
s=s[1:]
|
|
55
|
-
s=str(s).replace("[","(").replace("]",")")
|
|
56
|
-
exec(aaaa+s)
|
|
57
|
-
return 1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|