Skip to content

Commit 5dc8b69

Browse files
committed
Re-add nqs to the console
1 parent be786b1 commit 5dc8b69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+436
-9
lines changed

egg/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 PythonForChange
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

egg/__pycache__/app.cpython-39.pyc

-62 Bytes
Binary file not shown.

egg/app.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ def eggConsole(condition: bool = True):
1212
while condition:
1313
i=get("egg")
1414
if i=="$nqs":
15-
try:
16-
from egg.library.repos import nqs
17-
developerConsole=nqs.developer.app.developerConsole
18-
developerConsole()
19-
except:
20-
pass
15+
from nqs.developer.app import developerConsole
16+
developerConsole()
2117
elif i=="$new":
2218
from news.app import journalistConsole
2319
journalistConsole()

egg/library/__init__.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
_author="eanorambuena"
2+
_author_email="[email protected]"
3+
4+
eggConsoleCommands=[
5+
"nqs",
6+
"new",
7+
"end",
8+
]
9+
10+
developerConsoleCommands=[
11+
"display",
12+
"compile",
13+
"save",
14+
"run",
15+
"end",
16+
"delay"
17+
]
18+
19+
nqsCommands=[
20+
"host",
21+
"shots",
22+
"hist",
23+
"draw",
24+
"inject",
25+
"function",
26+
"clear",
27+
"delay"
28+
]
29+
30+
journalistConsoleCommands=[
31+
"save",
32+
"end",
33+
]
456 Bytes
Binary file not shown.

egg/library/commands.nqa

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
~
2+
_author="eanorambuena"
3+
_author_email="[email protected]"
4+
5+
eggConsoleCommands=[
6+
"nqs",
7+
"new",
8+
"end",
9+
]
10+
11+
developerConsoleCommands=[
12+
"display",
13+
"compile",
14+
"save",
15+
"run",
16+
"end",
17+
"delay"
18+
]
19+
20+
nqsCommands=[
21+
"host",
22+
"shots",
23+
"hist",
24+
"draw",
25+
"inject",
26+
"function",
27+
"clear",
28+
"delay"
29+
]
30+
31+
journalistConsoleCommands=[
32+
"save",
33+
"end",
34+
]
35+
~
0 Bytes
Binary file not shown.

main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
from egg import *
22

3-
#eggConsole()
4-
3+
eggConsole()
54

5+
"""
66
document=Document("template")
77
document.addTag("h1","Hi","aqui")
88
document.write("xd","2")
99
10-
"""
1110
covid=Repo("CovidPlot")
1211
cp=covid.pull("covidplot","CovidData")
1312
#pull("CovidPlot")

news/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 PythonForChange
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

nqs/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 PythonForChange
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)