pyzola 0.1__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.
- pyzola-0.1/PKG-INFO +5 -0
- pyzola-0.1/pyzola.egg-info/PKG-INFO +5 -0
- pyzola-0.1/pyzola.egg-info/SOURCES.txt +9 -0
- pyzola-0.1/pyzola.egg-info/dependency_links.txt +1 -0
- pyzola-0.1/pyzola.egg-info/top_level.txt +1 -0
- pyzola-0.1/setup.cfg +4 -0
- pyzola-0.1/setup.py +16 -0
- pyzola-0.1/zola/__init__.py +2 -0
- pyzola-0.1/zola/loads/__init__.py +6 -0
- pyzola-0.1/zola/tools.py +22 -0
- pyzola-0.1/zola/utils.py +16 -0
pyzola-0.1/PKG-INFO
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
zola
|
pyzola-0.1/setup.cfg
ADDED
pyzola-0.1/setup.py
ADDED
pyzola-0.1/zola/tools.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from sys import platform
|
|
2
|
+
from os.path import exists
|
|
3
|
+
|
|
4
|
+
def set_path(path:str):
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
exists(path)
|
|
8
|
+
|
|
9
|
+
except Exception as e:
|
|
10
|
+
print(e)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def set_dump(code:str,path:str='') -> None:
|
|
14
|
+
try:
|
|
15
|
+
cd=bytes(code.encode()).hex()
|
|
16
|
+
with open(path,'a') as file:
|
|
17
|
+
file.write(str(chr(34))+cd+str(chr(34)))
|
|
18
|
+
except:
|
|
19
|
+
print('erorr')
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
pyzola-0.1/zola/utils.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from zola.tools import (
|
|
2
|
+
set_dump,
|
|
3
|
+
set_path,
|
|
4
|
+
)
|
|
5
|
+
|
|
6
|
+
class Zencode(object):
|
|
7
|
+
def __init__(self,source_code:str) -> None:
|
|
8
|
+
|
|
9
|
+
self.source_code=source_code
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def save(self,path:str='file.path+file.name') -> None:
|
|
13
|
+
set_path(path)
|
|
14
|
+
open(path,'w').write('from zola.loads import *\nrunme(__file__)\n')
|
|
15
|
+
set_dump(self.source_code,path)
|
|
16
|
+
|