jetpytools 1.2.3__py3-none-any.whl → 1.2.5__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.
Potentially problematic release.
This version of jetpytools might be problematic. Click here for more details.
- jetpytools/_metadata.py +1 -1
- jetpytools/types/file.py +4 -0
- jetpytools/types/funcs.py +3 -3
- jetpytools/types/utils.py +1 -1
- {jetpytools-1.2.3.dist-info → jetpytools-1.2.5.dist-info}/METADATA +1 -1
- {jetpytools-1.2.3.dist-info → jetpytools-1.2.5.dist-info}/RECORD +9 -9
- {jetpytools-1.2.3.dist-info → jetpytools-1.2.5.dist-info}/LICENSE +0 -0
- {jetpytools-1.2.3.dist-info → jetpytools-1.2.5.dist-info}/WHEEL +0 -0
- {jetpytools-1.2.3.dist-info → jetpytools-1.2.5.dist-info}/top_level.txt +0 -0
jetpytools/_metadata.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Collection of stuff that's useful in general python programming"""
|
|
2
2
|
|
|
3
|
-
__version__ = '1.2.
|
|
3
|
+
__version__ = '1.2.5'
|
|
4
4
|
|
|
5
5
|
__author_name__, __author_email__ = 'Jaded Encoding Thaumaturgy', 'jaded.encoding.thaumaturgy@gmail.com'
|
|
6
6
|
__maintainer_name__, __maintainer_email__ = __author_name__, __author_email__
|
jetpytools/types/file.py
CHANGED
|
@@ -2,8 +2,10 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import fnmatch
|
|
4
4
|
import shutil
|
|
5
|
+
|
|
5
6
|
from os import PathLike, listdir, path, walk
|
|
6
7
|
from pathlib import Path
|
|
8
|
+
from sys import version_info
|
|
7
9
|
from typing import TYPE_CHECKING, Any, Callable, Iterable, Literal, TypeAlias, Union
|
|
8
10
|
|
|
9
11
|
__all__ = [
|
|
@@ -58,6 +60,8 @@ OpenBinaryMode: TypeAlias = OpenBinaryModeUpdating | OpenBinaryModeReading | Ope
|
|
|
58
60
|
|
|
59
61
|
class SPath(Path):
|
|
60
62
|
"""Modified version of pathlib.Path"""
|
|
63
|
+
if version_info < (3, 12):
|
|
64
|
+
_flavour = type(Path())._flavour # type: ignore
|
|
61
65
|
|
|
62
66
|
if TYPE_CHECKING:
|
|
63
67
|
def __new__(cls, *args: SPathLike, **kwargs: Any) -> SPath:
|
jetpytools/types/funcs.py
CHANGED
|
@@ -8,7 +8,8 @@ from .supports import SupportsString
|
|
|
8
8
|
|
|
9
9
|
__all__ = [
|
|
10
10
|
'StrList',
|
|
11
|
-
'Sentinel'
|
|
11
|
+
'Sentinel',
|
|
12
|
+
'SentinelT'
|
|
12
13
|
]
|
|
13
14
|
|
|
14
15
|
|
|
@@ -99,10 +100,9 @@ class SentinelDispatcher:
|
|
|
99
100
|
def __call__(self) -> SentinelDispatcher:
|
|
100
101
|
return SentinelDispatcher()
|
|
101
102
|
|
|
102
|
-
Type: TypeAlias = 'SentinelDispatcher'
|
|
103
|
-
|
|
104
103
|
|
|
105
104
|
Sentinel = SentinelDispatcher()
|
|
105
|
+
SentinelT: TypeAlias = SentinelDispatcher
|
|
106
106
|
|
|
107
107
|
_sentinels = dict[str, SentinelDispatcher]()
|
|
108
108
|
|
jetpytools/types/utils.py
CHANGED
|
@@ -145,7 +145,7 @@ class inject_self_base(Generic[T, P, R]):
|
|
|
145
145
|
@wraps(self.function)
|
|
146
146
|
def _wrapper(*args: Any, **kwargs: Any) -> Any:
|
|
147
147
|
first_arg = (args[0] if args else None) or (
|
|
148
|
-
kwargs.get(self.first_key, None) if self.first_key else None
|
|
148
|
+
kwargs.get(self.first_key, None) if self.first_key else None
|
|
149
149
|
)
|
|
150
150
|
|
|
151
151
|
if (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
jetpytools/__init__.py,sha256=FSVZdj69oy4mBXd6OXiRHrUhaSc4Exo1pQHBlXycV98,214
|
|
2
|
-
jetpytools/_metadata.py,sha256=
|
|
2
|
+
jetpytools/_metadata.py,sha256=EF2prSeiktlzSwZCzFXhHgnZPWOi41ij--oy_a9-7nk,414
|
|
3
3
|
jetpytools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
jetpytools/enums/__init__.py,sha256=5n6Cu8Yb9N6hIa_YTsyy_s0cCgCnh0vDb-NyXK2RwV0,81
|
|
5
5
|
jetpytools/enums/base.py,sha256=q0HUCl8NN66b4VXYNjP_AMrYqjlcLVlRs0GQHXt17zU,2083
|
|
@@ -16,18 +16,18 @@ jetpytools/functions/normalize.py,sha256=dyEuLVOZ2WSR_qDgyVGILn-0MURizCn5Nk1Kupp
|
|
|
16
16
|
jetpytools/functions/other.py,sha256=TRz91spvdYJUh9vKe3Kuw6xZfSEJvrQs1mZVg7SyYmY,413
|
|
17
17
|
jetpytools/types/__init__.py,sha256=0veUJC8ioXsx1g3Nx-YQSKTnkenfyaD5y91qBDkyM8Q,253
|
|
18
18
|
jetpytools/types/builtins.py,sha256=moET0CgjQnUkis2V1RViL53OMCVAIV4zBDcClsaKn5g,1807
|
|
19
|
-
jetpytools/types/file.py,sha256=
|
|
20
|
-
jetpytools/types/funcs.py,sha256=
|
|
19
|
+
jetpytools/types/file.py,sha256=H9EJlb6K0cC634GqoaPtUJ2WoAhtP4WwS37egS0S3Ss,6200
|
|
20
|
+
jetpytools/types/funcs.py,sha256=epmw4EVmZph2hOso9WxE9SL5RWm9oYtHICkTGSwDyv0,3129
|
|
21
21
|
jetpytools/types/generic.py,sha256=sAyBwGVG5FZ-6HVpfRuczov_6zQ_Uyoi0QWnR2iMm9Q,1128
|
|
22
22
|
jetpytools/types/supports.py,sha256=--VZ-iCUiv-a6K8n-H8-6hSxHjrvdYg9mCLhr_lRplo,3051
|
|
23
|
-
jetpytools/types/utils.py,sha256=
|
|
23
|
+
jetpytools/types/utils.py,sha256=Bi-AKe40IVxK-eSMZC1y_32w3XfeeGj-o4ZmwX3WXEI,22227
|
|
24
24
|
jetpytools/utils/__init__.py,sha256=v5Bkl43-OBWlXx9OWpZoGH-QMaYNsPIi4vfuhC13ZLI,163
|
|
25
25
|
jetpytools/utils/file.py,sha256=9GhMGJ5D7CpvUFnvnwPFMloYTeIX-AJ7aKYKdoJQ374,10455
|
|
26
26
|
jetpytools/utils/funcs.py,sha256=ZuLz63kveBY1CLlBexEqmrQiGC67dY4gaXdNU3CeBMw,898
|
|
27
27
|
jetpytools/utils/math.py,sha256=lNTriLtTXgqN82DVSXJ5KUbhsWgxXoJ5eNGIZ0-_r_c,3335
|
|
28
28
|
jetpytools/utils/ranges.py,sha256=dL3WG235Pz9sk5su8A0VdwVf_oSt6obR7R_JNwLyCjQ,2572
|
|
29
|
-
jetpytools-1.2.
|
|
30
|
-
jetpytools-1.2.
|
|
31
|
-
jetpytools-1.2.
|
|
32
|
-
jetpytools-1.2.
|
|
33
|
-
jetpytools-1.2.
|
|
29
|
+
jetpytools-1.2.5.dist-info/LICENSE,sha256=l0PN-qDtXcgOB5aXP_nSUsvCK5V3o9pQCGsTzyZhKL0,1071
|
|
30
|
+
jetpytools-1.2.5.dist-info/METADATA,sha256=YfuNYSyncP1LrQ38qZNDP_d9qy9gyyqL2IzctrhxF5M,1399
|
|
31
|
+
jetpytools-1.2.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
32
|
+
jetpytools-1.2.5.dist-info/top_level.txt,sha256=Iy4HjIta33ADJxN9Nyt5t5jRIfotEkZkQcOSw4eG8Cs,11
|
|
33
|
+
jetpytools-1.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|