pykernel-cli 1.0.0__tar.gz → 1.2.0__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.
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/LICENSE +1 -1
- {pykernel_cli-1.0.0/pykernel_cli.egg-info → pykernel_cli-1.2.0}/PKG-INFO +4 -1
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/commands/builtins.py +1 -1
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/core/config.py +8 -8
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/kernel.py +21 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0/pykernel_cli.egg-info}/PKG-INFO +4 -1
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel_cli.egg-info/entry_points.txt +1 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pyproject.toml +6 -1
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/README.md +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/__init__.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/__main__.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/commands/__init__.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/commands/inspector.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/commands/shell.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/commands/snippets.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/core/__init__.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/core/context.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/core/painter.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/core/registry.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel/core/repl.py +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel_cli.egg-info/SOURCES.txt +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel_cli.egg-info/dependency_links.txt +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel_cli.egg-info/requires.txt +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/pykernel_cli.egg-info/top_level.txt +0 -0
- {pykernel_cli-1.0.0 → pykernel_cli-1.2.0}/setup.cfg +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pykernel-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: A hackable Python REPL with first-class command support
|
|
5
5
|
Author-email: zKaiden <odrekzinho@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/odrekzinho-art/pykernel
|
|
8
|
+
Project-URL: Repository, https://github.com/odrekzinho-art/pykernel
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/odrekzinho-art/pykernel/issues
|
|
7
10
|
Keywords: repl,shell,interactive,python
|
|
8
11
|
Classifier: Development Status :: 4 - Beta
|
|
9
12
|
Classifier: Environment :: Console
|
|
@@ -4,17 +4,17 @@ Config — loads ~/.pykernel/config.toml (or defaults).
|
|
|
4
4
|
Supported keys
|
|
5
5
|
--------------
|
|
6
6
|
[kernel]
|
|
7
|
-
prompt = "
|
|
7
|
+
prompt = "@> "
|
|
8
8
|
prompt2 = "... "
|
|
9
9
|
history_file = "~/.pykernel/history"
|
|
10
10
|
history_size = 2000
|
|
11
11
|
banner = true
|
|
12
|
-
theme = "
|
|
12
|
+
theme = "light" # dark | light | none
|
|
13
13
|
|
|
14
14
|
[kernel.colors]
|
|
15
|
-
prompt = "
|
|
15
|
+
prompt = "green"
|
|
16
16
|
error = "red"
|
|
17
|
-
info = "
|
|
17
|
+
info = "cyan"
|
|
18
18
|
warning = "yellow"
|
|
19
19
|
result = "white"
|
|
20
20
|
"""
|
|
@@ -32,16 +32,16 @@ except ImportError:
|
|
|
32
32
|
|
|
33
33
|
DEFAULTS: dict = {
|
|
34
34
|
"kernel": {
|
|
35
|
-
"prompt": "
|
|
35
|
+
"prompt": "@> ",
|
|
36
36
|
"prompt2": "... ",
|
|
37
37
|
"history_file": "~/.pykernel/history",
|
|
38
38
|
"history_size": 2000,
|
|
39
39
|
"banner": True,
|
|
40
|
-
"theme": "
|
|
40
|
+
"theme": "light",
|
|
41
41
|
"colors": {
|
|
42
|
-
"prompt": "
|
|
42
|
+
"prompt": "green",
|
|
43
43
|
"error": "red",
|
|
44
|
-
"info": "
|
|
44
|
+
"info": "cyan",
|
|
45
45
|
"warning": "yellow",
|
|
46
46
|
"result": "white",
|
|
47
47
|
},
|
|
@@ -18,6 +18,27 @@ from pykernel.commands.snippets import register as register_snippets
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
def main():
|
|
21
|
+
os.system('cls')
|
|
22
|
+
import argparse
|
|
23
|
+
parser = argparse.ArgumentParser(prog="pykernel")
|
|
24
|
+
parser.add_argument("--ver", action="store_true", help="Show version")
|
|
25
|
+
parser.add_argument("--dev", action="store_true", help="Show developer utils")
|
|
26
|
+
args = parser.parse_args()
|
|
27
|
+
|
|
28
|
+
if args.ver:
|
|
29
|
+
print("pykernel-cli 1.1.0")
|
|
30
|
+
return
|
|
31
|
+
|
|
32
|
+
if args.dev:
|
|
33
|
+
print("Plugin dev reference:")
|
|
34
|
+
print(" register(registry) — entry point for plugins")
|
|
35
|
+
print(" registry.command(name, help=) — register a command")
|
|
36
|
+
print(" ctx.print(msg) — print to the REPL")
|
|
37
|
+
print(" ctx.namespace — the user's live namespace")
|
|
38
|
+
print(" Plugin dir: ~/.pykernel/plugins/")
|
|
39
|
+
print(" Snippet dir: ~/.pykernel/snippets/")
|
|
40
|
+
return
|
|
41
|
+
|
|
21
42
|
cfg = Config() # loads ~/.pykernel/config.toml
|
|
22
43
|
registry = CommandRegistry()
|
|
23
44
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pykernel-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: A hackable Python REPL with first-class command support
|
|
5
5
|
Author-email: zKaiden <odrekzinho@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/odrekzinho-art/pykernel
|
|
8
|
+
Project-URL: Repository, https://github.com/odrekzinho-art/pykernel
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/odrekzinho-art/pykernel/issues
|
|
7
10
|
Keywords: repl,shell,interactive,python
|
|
8
11
|
Classifier: Development Status :: 4 - Beta
|
|
9
12
|
Classifier: Environment :: Console
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pykernel-cli"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.2.0"
|
|
8
8
|
description = "A hackable Python REPL with first-class command support"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -26,9 +26,14 @@ dependencies = []
|
|
|
26
26
|
[project.optional-dependencies]
|
|
27
27
|
dev = ["build", "twine"]
|
|
28
28
|
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/odrekzinho-art/pykernel"
|
|
31
|
+
Repository = "https://github.com/odrekzinho-art/pykernel"
|
|
32
|
+
"Bug Tracker" = "https://github.com/odrekzinho-art/pykernel/issues"
|
|
29
33
|
|
|
30
34
|
[project.scripts]
|
|
31
35
|
pykernel = "pykernel.kernel:main"
|
|
36
|
+
pyk = "pykernel.kernel:main"
|
|
32
37
|
|
|
33
38
|
[tool.setuptools.packages.find]
|
|
34
39
|
where = ["."]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|