effectual 0.7.0__py3-none-any.whl → 0.7.2__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.
- effectual/build.py +15 -2
- effectual/developer.py +1 -0
- {effectual-0.7.0.dist-info → effectual-0.7.2.dist-info}/METADATA +1 -1
- effectual-0.7.2.dist-info/RECORD +11 -0
- effectual-0.7.0.dist-info/RECORD +0 -11
- {effectual-0.7.0.dist-info → effectual-0.7.2.dist-info}/WHEEL +0 -0
- {effectual-0.7.0.dist-info → effectual-0.7.2.dist-info}/entry_points.txt +0 -0
- {effectual-0.7.0.dist-info → effectual-0.7.2.dist-info}/licenses/LICENSE +0 -0
effectual/build.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import hashlib
|
1
2
|
import os
|
2
3
|
import shutil
|
3
4
|
import zipfile
|
@@ -5,8 +6,6 @@ from pathlib import Path
|
|
5
6
|
from time import perf_counter
|
6
7
|
from typing import Any
|
7
8
|
|
8
|
-
from watch_lite import getHash
|
9
|
-
|
10
9
|
from .colors import completeColor, fileColor, folderColor, tagColor
|
11
10
|
from .config import dumpHashes, loadConfig, loadToml
|
12
11
|
from .transformations import minifyFile, minifyToString
|
@@ -99,6 +98,20 @@ def dependencies() -> None:
|
|
99
98
|
)
|
100
99
|
|
101
100
|
|
101
|
+
def getHash(filePath: Path) -> str:
|
102
|
+
"""Gets the hash of a single file
|
103
|
+
|
104
|
+
Args:
|
105
|
+
filePath (Path): Path to the file
|
106
|
+
|
107
|
+
Returns:
|
108
|
+
str: String of the hash
|
109
|
+
"""
|
110
|
+
with open(filePath, "rb") as file:
|
111
|
+
fileHash = hashlib.sha1(file.read()).hexdigest()
|
112
|
+
return fileHash
|
113
|
+
|
114
|
+
|
102
115
|
def main() -> None:
|
103
116
|
"""Entrypoint
|
104
117
|
|
effectual/developer.py
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
effectual/__init__.py,sha256=Hg_RSVgpLZvaeBUqt5uL_r5YIDsVdKPcFE2L5WJVYbM,482
|
2
|
+
effectual/build.py,sha256=0X3sKF9irQ2uDx8XiT3QBeqNozatFGq--siF4mdQE-U,6231
|
3
|
+
effectual/colors.py,sha256=na7SEUSXM7aHvEKeIAn5shrZJtrBYq_ZUp121GRO_PQ,1411
|
4
|
+
effectual/config.py,sha256=Z99V7AnJpSWuo-aEz10TDj5BAaT7tboGJUjggj-HQh4,1798
|
5
|
+
effectual/developer.py,sha256=Kw3rF3dp9Fidjaem8anLN0tLKK_XC38cYGZ_R1jkbdE,1678
|
6
|
+
effectual/transformations.py,sha256=7GHgQWzin2J1W62yMReHXaYIChXc3f0rNJA-yY4LDEI,1313
|
7
|
+
effectual-0.7.2.dist-info/METADATA,sha256=SHIrfABUdnjgD_s-Km2REDuSmeVQ3iJhZ0bj0IK7NWw,2590
|
8
|
+
effectual-0.7.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
9
|
+
effectual-0.7.2.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
|
10
|
+
effectual-0.7.2.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
|
11
|
+
effectual-0.7.2.dist-info/RECORD,,
|
effectual-0.7.0.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
effectual/__init__.py,sha256=Hg_RSVgpLZvaeBUqt5uL_r5YIDsVdKPcFE2L5WJVYbM,482
|
2
|
-
effectual/build.py,sha256=P5XqH4OxbKAxa46HSFC1T3KE6xQiB_NBl8yry-MW9uc,5936
|
3
|
-
effectual/colors.py,sha256=na7SEUSXM7aHvEKeIAn5shrZJtrBYq_ZUp121GRO_PQ,1411
|
4
|
-
effectual/config.py,sha256=Z99V7AnJpSWuo-aEz10TDj5BAaT7tboGJUjggj-HQh4,1798
|
5
|
-
effectual/developer.py,sha256=bFE-jQM7TtegRknXEmz1gd_P3ga--anOvmruxRJpprE,1614
|
6
|
-
effectual/transformations.py,sha256=7GHgQWzin2J1W62yMReHXaYIChXc3f0rNJA-yY4LDEI,1313
|
7
|
-
effectual-0.7.0.dist-info/METADATA,sha256=GvekOJlxB_-7dE2lOdR4sweyhLDActVIqAx9COJnWZI,2590
|
8
|
-
effectual-0.7.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
9
|
-
effectual-0.7.0.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
|
10
|
-
effectual-0.7.0.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
|
11
|
-
effectual-0.7.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|