pykernel-cli 1.0.0__tar.gz → 1.1.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.
Files changed (25) hide show
  1. {pykernel_cli-1.0.0/pykernel_cli.egg-info → pykernel_cli-1.1.0}/PKG-INFO +1 -1
  2. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/kernel.py +20 -0
  3. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0/pykernel_cli.egg-info}/PKG-INFO +1 -1
  4. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel_cli.egg-info/entry_points.txt +1 -0
  5. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pyproject.toml +2 -1
  6. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/LICENSE +0 -0
  7. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/README.md +0 -0
  8. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/__init__.py +0 -0
  9. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/__main__.py +0 -0
  10. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/commands/__init__.py +0 -0
  11. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/commands/builtins.py +0 -0
  12. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/commands/inspector.py +0 -0
  13. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/commands/shell.py +0 -0
  14. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/commands/snippets.py +0 -0
  15. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/core/__init__.py +0 -0
  16. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/core/config.py +0 -0
  17. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/core/context.py +0 -0
  18. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/core/painter.py +0 -0
  19. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/core/registry.py +0 -0
  20. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel/core/repl.py +0 -0
  21. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel_cli.egg-info/SOURCES.txt +0 -0
  22. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel_cli.egg-info/dependency_links.txt +0 -0
  23. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel_cli.egg-info/requires.txt +0 -0
  24. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/pykernel_cli.egg-info/top_level.txt +0 -0
  25. {pykernel_cli-1.0.0 → pykernel_cli-1.1.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pykernel-cli
3
- Version: 1.0.0
3
+ Version: 1.1.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
@@ -18,6 +18,26 @@ from pykernel.commands.snippets import register as register_snippets
18
18
 
19
19
 
20
20
  def main():
21
+ import argparse
22
+ parser = argparse.ArgumentParser(prog="pykernel")
23
+ parser.add_argument("--ver", action="store_true", help="Show version")
24
+ parser.add_argument("--dev", action="store_true", help="Show developer utils")
25
+ args = parser.parse_args()
26
+
27
+ if args.ver:
28
+ print("pykernel-cli 1.1.0")
29
+ return
30
+
31
+ if args.dev:
32
+ print("Plugin dev reference:")
33
+ print(" register(registry) — entry point for plugins")
34
+ print(" registry.command(name, help=) — register a command")
35
+ print(" ctx.print(msg) — print to the REPL")
36
+ print(" ctx.namespace — the user's live namespace")
37
+ print(" Plugin dir: ~/.pykernel/plugins/")
38
+ print(" Snippet dir: ~/.pykernel/snippets/")
39
+ return
40
+
21
41
  cfg = Config() # loads ~/.pykernel/config.toml
22
42
  registry = CommandRegistry()
23
43
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pykernel-cli
3
- Version: 1.0.0
3
+ Version: 1.1.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
@@ -1,2 +1,3 @@
1
1
  [console_scripts]
2
+ pyk = pykernel.kernel:main
2
3
  pykernel = pykernel.kernel:main
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pykernel-cli"
7
- version = "1.0.0"
7
+ version = "1.1.0"
8
8
  description = "A hackable Python REPL with first-class command support"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -29,6 +29,7 @@ dev = ["build", "twine"]
29
29
 
30
30
  [project.scripts]
31
31
  pykernel = "pykernel.kernel:main"
32
+ pyk = "pykernel.kernel:main"
32
33
 
33
34
  [tool.setuptools.packages.find]
34
35
  where = ["."]
File without changes
File without changes
File without changes