liveConsole 1.5.0__tar.gz → 1.5.2__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.
- {liveconsole-1.5.0 → liveconsole-1.5.2}/PKG-INFO +8 -2
- {liveconsole-1.5.0 → liveconsole-1.5.2}/README.md +7 -1
- {liveconsole-1.5.0 → liveconsole-1.5.2}/pyproject.toml +3 -2
- liveconsole-1.5.2/src/__init__.py +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/liveConsole.egg-info/PKG-INFO +8 -2
- liveconsole-1.5.2/src/liveConsole.egg-info/entry_points.txt +3 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/pysole.py +15 -21
- liveconsole-1.5.0/src/__init__.py +0 -1
- liveconsole-1.5.0/src/liveConsole.egg-info/entry_points.txt +0 -2
- {liveconsole-1.5.0 → liveconsole-1.5.2}/LICENSE +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/setup.cfg +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/commandHistory.py +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/helpTab.py +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/liveConsole.egg-info/SOURCES.txt +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/liveConsole.egg-info/dependency_links.txt +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/liveConsole.egg-info/requires.txt +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/liveConsole.egg-info/top_level.txt +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/liveConsole.py +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/mainConsole.py +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/styledTextbox.py +0 -0
- {liveconsole-1.5.0 → liveconsole-1.5.2}/src/suggestionManager.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: liveConsole
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.2
|
4
4
|
Summary: An IDLE-like debugger to allow for real-time command injection for debugging and testing python code
|
5
5
|
Author-email: Tzur Soffer <tzur.soffer@gmail.com>
|
6
6
|
License: MIT
|
@@ -14,7 +14,7 @@ Dynamic: license-file
|
|
14
14
|
# PYSOLE
|
15
15
|
|
16
16
|
## You can finally test your code in real time without using idle!
|
17
|
-
### If you found [this repository](https://github.com/TzurSoffer/
|
17
|
+
### If you found [this repository](https://github.com/TzurSoffer/Pysole) useful, please give it a ⭐!.
|
18
18
|
|
19
19
|
A fully-featured, **live Python console GUI** built with **CustomTkinter** and **Tkinter**, featuring:
|
20
20
|
|
@@ -40,6 +40,12 @@ A fully-featured, **live Python console GUI** built with **CustomTkinter** and *
|
|
40
40
|
|
41
41
|
## Features
|
42
42
|
|
43
|
+
### Standalone Launch
|
44
|
+
|
45
|
+
* Once installed, you can launch the console directly by simply typing ```pysole``` or ```liveconsole``` in the terminal
|
46
|
+
|
47
|
+
* This opens the full GUI without needing to write any code. Perfect for quick debugging and experimenting.
|
48
|
+
|
43
49
|
### Syntax Highlighting
|
44
50
|
|
45
51
|
* Real-time syntax highlighting using **Pygments** and the **Monokai** style.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# PYSOLE
|
2
2
|
|
3
3
|
## You can finally test your code in real time without using idle!
|
4
|
-
### If you found [this repository](https://github.com/TzurSoffer/
|
4
|
+
### If you found [this repository](https://github.com/TzurSoffer/Pysole) useful, please give it a ⭐!.
|
5
5
|
|
6
6
|
A fully-featured, **live Python console GUI** built with **CustomTkinter** and **Tkinter**, featuring:
|
7
7
|
|
@@ -27,6 +27,12 @@ A fully-featured, **live Python console GUI** built with **CustomTkinter** and *
|
|
27
27
|
|
28
28
|
## Features
|
29
29
|
|
30
|
+
### Standalone Launch
|
31
|
+
|
32
|
+
* Once installed, you can launch the console directly by simply typing ```pysole``` or ```liveconsole``` in the terminal
|
33
|
+
|
34
|
+
* This opens the full GUI without needing to write any code. Perfect for quick debugging and experimenting.
|
35
|
+
|
30
36
|
### Syntax Highlighting
|
31
37
|
|
32
38
|
* Real-time syntax highlighting using **Pygments** and the **Monokai** style.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "liveConsole"
|
3
|
-
version = "1.5.
|
3
|
+
version = "1.5.2"
|
4
4
|
description = "An IDLE-like debugger to allow for real-time command injection for debugging and testing python code"
|
5
5
|
authors = [{ name="Tzur Soffer", email="tzur.soffer@gmail.com" }]
|
6
6
|
license = {text = "MIT"}
|
@@ -9,7 +9,8 @@ requires-python = ">=3.7"
|
|
9
9
|
dependencies = ["customtkinter", "pygments"]
|
10
10
|
|
11
11
|
[project.scripts]
|
12
|
-
liveconsole = "liveConsole:
|
12
|
+
liveconsole = "liveConsole:_standalone"
|
13
|
+
pysole = "pysole:_standalone"
|
13
14
|
|
14
15
|
[build-system]
|
15
16
|
requires = ["setuptools>=61.0", "wheel"]
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: liveConsole
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.2
|
4
4
|
Summary: An IDLE-like debugger to allow for real-time command injection for debugging and testing python code
|
5
5
|
Author-email: Tzur Soffer <tzur.soffer@gmail.com>
|
6
6
|
License: MIT
|
@@ -14,7 +14,7 @@ Dynamic: license-file
|
|
14
14
|
# PYSOLE
|
15
15
|
|
16
16
|
## You can finally test your code in real time without using idle!
|
17
|
-
### If you found [this repository](https://github.com/TzurSoffer/
|
17
|
+
### If you found [this repository](https://github.com/TzurSoffer/Pysole) useful, please give it a ⭐!.
|
18
18
|
|
19
19
|
A fully-featured, **live Python console GUI** built with **CustomTkinter** and **Tkinter**, featuring:
|
20
20
|
|
@@ -40,6 +40,12 @@ A fully-featured, **live Python console GUI** built with **CustomTkinter** and *
|
|
40
40
|
|
41
41
|
## Features
|
42
42
|
|
43
|
+
### Standalone Launch
|
44
|
+
|
45
|
+
* Once installed, you can launch the console directly by simply typing ```pysole``` or ```liveconsole``` in the terminal
|
46
|
+
|
47
|
+
* This opens the full GUI without needing to write any code. Perfect for quick debugging and experimenting.
|
48
|
+
|
43
49
|
### Syntax Highlighting
|
44
50
|
|
45
51
|
* Real-time syntax highlighting using **Pygments** and the **Monokai** style.
|
@@ -34,7 +34,7 @@ class StdinRedirect(io.StringIO):
|
|
34
34
|
class InteractiveConsole(ctk.CTk):
|
35
35
|
"""Main console window application."""
|
36
36
|
|
37
|
-
def __init__(self, userGlobals=None, userLocals=None):
|
37
|
+
def __init__(self, userGlobals=None, userLocals=None, callerFrame=None):
|
38
38
|
super().__init__()
|
39
39
|
|
40
40
|
# Window setup
|
@@ -46,11 +46,12 @@ class InteractiveConsole(ctk.CTk):
|
|
46
46
|
|
47
47
|
# Get namespace from caller if not provided
|
48
48
|
if userGlobals is None or userLocals is None:
|
49
|
-
callerFrame
|
49
|
+
if callerFrame == None:
|
50
|
+
callerFrame = inspect.currentframe().f_back
|
50
51
|
if userGlobals is None:
|
51
|
-
userGlobals = callerFrame.f_globals
|
52
|
+
userGlobals = callerFrame.f_globals.copy()
|
52
53
|
if userLocals is None:
|
53
|
-
userLocals = callerFrame.f_locals
|
54
|
+
userLocals = callerFrame.f_locals.copy()
|
54
55
|
|
55
56
|
self.userGlobals = userGlobals
|
56
57
|
self.userLocals = userLocals
|
@@ -109,24 +110,17 @@ class InteractiveConsole(ctk.CTk):
|
|
109
110
|
"""Start the console main loop."""
|
110
111
|
self.mainloop(*args, **kwargs)
|
111
112
|
|
112
|
-
def probe():
|
113
|
-
|
113
|
+
def probe(userGlobals=None, userLocals=None, callerFrame=None):
|
114
|
+
if callerFrame == None:
|
115
|
+
callerFrame = inspect.currentframe().f_back
|
116
|
+
InteractiveConsole(userGlobals=userGlobals,
|
117
|
+
userLocals=userLocals,
|
118
|
+
callerFrame=callerFrame).probe()
|
114
119
|
|
115
|
-
def
|
116
|
-
|
117
|
-
probe()
|
120
|
+
def _standalone():
|
121
|
+
import pysole
|
122
|
+
pysole.probe(callerFrame=inspect.currentframe().f_back)
|
118
123
|
|
119
124
|
# Example usage
|
120
125
|
if __name__ == "__main__":
|
121
|
-
|
122
|
-
foo = 42
|
123
|
-
|
124
|
-
def greet(name):
|
125
|
-
print(f"Hello {name}!")
|
126
|
-
return(f"Greeted {name}")
|
127
|
-
|
128
|
-
# Create the list for testing autocomplete
|
129
|
-
exampleList = [1, 2, 3, 4, 5]
|
130
|
-
|
131
|
-
# Start the console
|
132
|
-
probe()
|
126
|
+
_standalone()
|
@@ -1 +0,0 @@
|
|
1
|
-
from pysole import probe, InteractiveConsole
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|