pykernel-cli 1.0.0__py3-none-any.whl → 1.2.0__py3-none-any.whl

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.
@@ -57,7 +57,7 @@ def register(reg: CommandRegistry):
57
57
  category="Core")
58
58
  def cmd_exit(ctx, *args):
59
59
  ctx.print(ctx.paint.dim(" Goodbye."))
60
- raise SystemExit(0)
60
+ raise SystemExit(0)
61
61
 
62
62
  # ── /clear ────────────────────────────────────────────────────────────────
63
63
 
pykernel/core/config.py CHANGED
@@ -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 = "dark" # dark | light | none
12
+ theme = "light" # dark | light | none
13
13
 
14
14
  [kernel.colors]
15
- prompt = "cyan"
15
+ prompt = "green"
16
16
  error = "red"
17
- info = "green"
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": "dark",
40
+ "theme": "light",
41
41
  "colors": {
42
- "prompt": "cyan",
42
+ "prompt": "green",
43
43
  "error": "red",
44
- "info": "green",
44
+ "info": "cyan",
45
45
  "warning": "yellow",
46
46
  "result": "white",
47
47
  },
pykernel/kernel.py CHANGED
@@ -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.0.0
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
@@ -1,20 +1,20 @@
1
1
  pykernel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  pykernel/__main__.py,sha256=3eGeT6_IikJWA7abQF4yZCkWNPN4BXepN--drsI-KGU,42
3
- pykernel/kernel.py,sha256=2xPRnLt0KrIIK2Z6gXMJHEOadtwWx6uBz6QApQM2z5o,1236
3
+ pykernel/kernel.py,sha256=D6S22a8x5aYWGJrmjjVRcIiYjFv2f1L02qDjQqeEtMk,2089
4
4
  pykernel/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- pykernel/commands/builtins.py,sha256=wrpp4qacMQOLEEEbmY4T5otOD1D9HlLjRBe0PmcKrx8,6605
5
+ pykernel/commands/builtins.py,sha256=cQY5NbVjDag4IsX9POt-4Kxlrc-JLlBQvuSwQ5WJsYU,6609
6
6
  pykernel/commands/inspector.py,sha256=_pSVyZRcL02Jh6boBNiCHC0aTWlvz94TRDQZ4WhhjDg,6912
7
7
  pykernel/commands/shell.py,sha256=0s7YfJMFXfJuh-XEwbhJYPin5w0e4ZGDGrgJUEjR0A8,4258
8
8
  pykernel/commands/snippets.py,sha256=pRHI0o6ua81yTTc0n6hqdlLe-YFqfCAAYFnDiIMjFDM,10103
9
9
  pykernel/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- pykernel/core/config.py,sha256=06k87f5JOTlq8kSPB9nZhlQ80whbpjcel0-JDBpkhBo,3692
10
+ pykernel/core/config.py,sha256=_IViHR1nXR8c6eBxWfb1NCq0548o1F3rcV5OzlqQHCA,3692
11
11
  pykernel/core/context.py,sha256=z9vcafVHDUCyoW4rk6vlAtR_cQhCllVviUHNzu848o0,2210
12
12
  pykernel/core/painter.py,sha256=EFjt9XRI3oREN2rEsEZXQlVpF2PZEiqAEEjoX8ATAQ4,4414
13
13
  pykernel/core/registry.py,sha256=34zHG74KzjwDAu-2y39c1ih0zONF097-Bjok2sgyMZY,6343
14
14
  pykernel/core/repl.py,sha256=zRM-of7P575uQmfAWjBZaVxIA8H-ZgJZZVnE9cWWRnY,8589
15
- pykernel_cli-1.0.0.dist-info/licenses/LICENSE,sha256=v2spsd7N1pKFFh2G8wGP_45iwe5S0DYiJzG4im8Rupc,1066
16
- pykernel_cli-1.0.0.dist-info/METADATA,sha256=WFyNR8c4irr6Fm3CaG2OZx9jTRlt01v0La5a-X1L3ic,1724
17
- pykernel_cli-1.0.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
18
- pykernel_cli-1.0.0.dist-info/entry_points.txt,sha256=6uJMN1Yzw7uT8BhpBr5rLLlus55vBE1JISUc03Beo54,50
19
- pykernel_cli-1.0.0.dist-info/top_level.txt,sha256=G_9gnE3eCoK63CojsmsPLNOUva1CFwKWfzHhjUUwnEM,9
20
- pykernel_cli-1.0.0.dist-info/RECORD,,
15
+ pykernel_cli-1.2.0.dist-info/licenses/LICENSE,sha256=6Ojzv42apXGaNZLhd8pk4uov9LyfsRcY5ohx3OO3kYU,1064
16
+ pykernel_cli-1.2.0.dist-info/METADATA,sha256=evY-wIcomfFWqpJPhg-nRRUsxhBSgwwSgQ3KOqCJ5Lk,1937
17
+ pykernel_cli-1.2.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
18
+ pykernel_cli-1.2.0.dist-info/entry_points.txt,sha256=7ph0h_NPmfrm97bjU0tkb_K62reZ4IvtaqXxidoncDo,77
19
+ pykernel_cli-1.2.0.dist-info/top_level.txt,sha256=G_9gnE3eCoK63CojsmsPLNOUva1CFwKWfzHhjUUwnEM,9
20
+ pykernel_cli-1.2.0.dist-info/RECORD,,
@@ -1,2 +1,3 @@
1
1
  [console_scripts]
2
+ pyk = pykernel.kernel:main
2
3
  pykernel = pykernel.kernel:main
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Your Name
3
+ Copyright (c) 2026 zKaiden
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal