pysh_pythoner 0.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.
|
@@ -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,26 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["uv_build>=0.12.21,<0.14"]
|
|
3
|
+
build-backend = "uv_build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pysh_pythoner"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = 'pysh plugin for "A custom python REPL"'
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Programming Language :: Python :: 3",
|
|
14
|
+
"Operating System :: OS Independent",
|
|
15
|
+
]
|
|
16
|
+
dependencies = ["pythoner>=0.1.0"]
|
|
17
|
+
|
|
18
|
+
[[project.authors]]
|
|
19
|
+
name = "Cade"
|
|
20
|
+
email = "cadey.matignas@gmail.com"
|
|
21
|
+
|
|
22
|
+
[project.urls]
|
|
23
|
+
Homepage = "https://github.com/coolguy038/pysh-pythoner"
|
|
24
|
+
|
|
25
|
+
[project.scripts]
|
|
26
|
+
pysh-pythoner = "pysh-pythoner.cli:main"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["uv_build>=0.12.21,<0.14"]
|
|
3
|
+
build-backend = "uv_build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pysh_pythoner"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
authors = [{ name = "Cade", email = "cadey.matignas@gmail.com" }]
|
|
9
|
+
description = 'pysh plugin for "A custom python REPL"'
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.8"
|
|
12
|
+
license = "MIT"
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Operating System :: OS Independent",
|
|
16
|
+
]
|
|
17
|
+
dependencies = ["pythoner>=0.1.0"]
|
|
18
|
+
|
|
19
|
+
[project.urls]
|
|
20
|
+
Homepage = "https://github.com/coolguy038/pysh-pythoner"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
[project.scripts]
|
|
24
|
+
pysh-pythoner = "pysh-pythoner.cli:main"
|
|
File without changes
|
|
@@ -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)
|