pysh_pythoner 0.1.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.
|
File without changes
|
pysh_pythoner/cli.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
def main():
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import tomlkit
|
|
6
|
+
|
|
7
|
+
config_path = Path.home() / ".pysh.toml"
|
|
8
|
+
|
|
9
|
+
with open(config_path, encoding="utf-8") as f:
|
|
10
|
+
pysh = tomlkit.load(f)
|
|
11
|
+
|
|
12
|
+
if "plugins" not in pysh:
|
|
13
|
+
pysh["plugins"] = tomlkit.table()
|
|
14
|
+
|
|
15
|
+
pysh["plugins"]["python_as_pythoner"] = (
|
|
16
|
+
"if command == 'python':\n subprocess.run('pythoner', stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr)"
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
with open(config_path, "w", encoding="utf-8") as f:
|
|
20
|
+
tomlkit.dump(pysh, f)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pysh_pythoner
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: pysh plugin for "A custom python REPL"
|
|
5
|
+
Author: Cade
|
|
6
|
+
Author-email: Cade <cadey.matignas@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Dist: pythoner>=0.1.0
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Project-URL: Homepage, https://github.com/coolguy038/pysh-pythoner
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# Pysh-pythoner
|
|
16
|
+
|
|
17
|
+
This supercharges pythoner in pysh. Thats pretty much everything I have to say about it lol
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
pysh_pythoner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
pysh_pythoner/cli.py,sha256=iH54bxTCZcEYQ1qf6vEYHuxbzXBHg5lmcfRQtk2D90o,495
|
|
3
|
+
pysh_pythoner-0.1.0.dist-info/WHEEL,sha256=MWx7psoF7KNST9G72pGtiBYuaXRXQXBk9pw5R6FzYko,80
|
|
4
|
+
pysh_pythoner-0.1.0.dist-info/entry_points.txt,sha256=rfP4f9r_wGps3ckRu6MN2ff8USlP_qusC5cad9lWv6Q,58
|
|
5
|
+
pysh_pythoner-0.1.0.dist-info/METADATA,sha256=ejTptmeDHU78QPUV1CiFedTcT5RATR2Gmred2cArEBI,557
|
|
6
|
+
pysh_pythoner-0.1.0.dist-info/RECORD,,
|