serpentipy 1.0.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.
- serpentipy-1.0.0/PKG-INFO +14 -0
- serpentipy-1.0.0/README.md +1 -0
- serpentipy-1.0.0/fastpy/__init__.py +0 -0
- serpentipy-1.0.0/fastpy/cache.py +13 -0
- serpentipy-1.0.0/fastpy/cli.py +23 -0
- serpentipy-1.0.0/fastpy/runner.py +16 -0
- serpentipy-1.0.0/fastpy/version.py +2 -0
- serpentipy-1.0.0/pyproject.toml +29 -0
- serpentipy-1.0.0/serpentipy.egg-info/PKG-INFO +14 -0
- serpentipy-1.0.0/serpentipy.egg-info/SOURCES.txt +12 -0
- serpentipy-1.0.0/serpentipy.egg-info/dependency_links.txt +1 -0
- serpentipy-1.0.0/serpentipy.egg-info/entry_points.txt +2 -0
- serpentipy-1.0.0/serpentipy.egg-info/top_level.txt +1 -0
- serpentipy-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: serpentipy
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: SerpentiPy: fast .spyp script runner with bytecode caching
|
|
5
|
+
Author: mylinuxmailbox-code
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/mylinuxmailbox-code/SerpentiPy
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
SerpentiPy. Python thats Fast.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SerpentiPy. Python thats Fast.
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import py_compile
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
def compile_file(filename):
|
|
5
|
+
cache_dir = Path(".fastpy_cache")
|
|
6
|
+
cache_dir.mkdir(exist_ok=True)
|
|
7
|
+
|
|
8
|
+
output = cache_dir / (Path(filename).stem + ".pyc")
|
|
9
|
+
|
|
10
|
+
py_compile.compile(filename, cfile=str(output))
|
|
11
|
+
|
|
12
|
+
return output
|
|
13
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
from fastpy.cache import compile_file
|
|
4
|
+
from fastpy.runner import run_file
|
|
5
|
+
from fastpy.version import VERSION
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main():
|
|
9
|
+
print(f"SerpentiPy {VERSION}")
|
|
10
|
+
|
|
11
|
+
if len(sys.argv) != 2:
|
|
12
|
+
print("Usage:")
|
|
13
|
+
print(" spyp program.spyp")
|
|
14
|
+
sys.exit(1)
|
|
15
|
+
|
|
16
|
+
filename = sys.argv[1]
|
|
17
|
+
|
|
18
|
+
compile_file(filename)
|
|
19
|
+
run_file(filename)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
if __name__ == "__main__":
|
|
23
|
+
main()
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import runpy
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
def run_file(filename):
|
|
5
|
+
path = Path(filename)
|
|
6
|
+
|
|
7
|
+
if not path.exists():
|
|
8
|
+
print(f"❌ File not found: {filename}")
|
|
9
|
+
return
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
runpy.run_path(str(path), run_name="__main__")
|
|
13
|
+
except Exception as e:
|
|
14
|
+
print("❌ SerpentiPy Error")
|
|
15
|
+
print(e)
|
|
16
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "serpentipy"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "SerpentiPy: fast .spyp script runner with bytecode caching"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "mylinuxmailbox-code" }
|
|
14
|
+
]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
Homepage = "https://github.com/mylinuxmailbox-code/SerpentiPy"
|
|
23
|
+
|
|
24
|
+
# Installs a real 'spyp' executable on PATH — no ./ or chmod needed.
|
|
25
|
+
[project.scripts]
|
|
26
|
+
spyp = "fastpy.cli:main"
|
|
27
|
+
|
|
28
|
+
[tool.setuptools]
|
|
29
|
+
packages = ["fastpy"]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: serpentipy
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: SerpentiPy: fast .spyp script runner with bytecode caching
|
|
5
|
+
Author: mylinuxmailbox-code
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/mylinuxmailbox-code/SerpentiPy
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
SerpentiPy. Python thats Fast.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
fastpy/__init__.py
|
|
4
|
+
fastpy/cache.py
|
|
5
|
+
fastpy/cli.py
|
|
6
|
+
fastpy/runner.py
|
|
7
|
+
fastpy/version.py
|
|
8
|
+
serpentipy.egg-info/PKG-INFO
|
|
9
|
+
serpentipy.egg-info/SOURCES.txt
|
|
10
|
+
serpentipy.egg-info/dependency_links.txt
|
|
11
|
+
serpentipy.egg-info/entry_points.txt
|
|
12
|
+
serpentipy.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fastpy
|