thds.core 1.39.20250618235519__py3-none-any.whl → 1.39.20250619170707__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 thds.core might be problematic. Click here for more details.
- thds/core/inspect.py +13 -0
- {thds_core-1.39.20250618235519.dist-info → thds_core-1.39.20250619170707.dist-info}/METADATA +1 -1
- {thds_core-1.39.20250618235519.dist-info → thds_core-1.39.20250619170707.dist-info}/RECORD +6 -6
- {thds_core-1.39.20250618235519.dist-info → thds_core-1.39.20250619170707.dist-info}/WHEEL +0 -0
- {thds_core-1.39.20250618235519.dist-info → thds_core-1.39.20250619170707.dist-info}/entry_points.txt +0 -0
- {thds_core-1.39.20250618235519.dist-info → thds_core-1.39.20250619170707.dist-info}/top_level.txt +0 -0
thds/core/inspect.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import inspect
|
|
2
|
+
import typing as ty
|
|
2
3
|
from dataclasses import dataclass
|
|
3
4
|
|
|
4
5
|
|
|
@@ -55,3 +56,15 @@ def get_caller_info(skip: int = 2) -> CallerInfo:
|
|
|
55
56
|
del parentframe
|
|
56
57
|
|
|
57
58
|
return CallerInfo(module=module, klass=klass, caller=caller, line=line)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def bind_arguments(
|
|
62
|
+
func: ty.Callable, *args: ty.Sequence, **kwargs: ty.Mapping[str, ty.Any]
|
|
63
|
+
) -> inspect.BoundArguments:
|
|
64
|
+
bound = inspect.signature(func).bind(*args, **kwargs)
|
|
65
|
+
bound.apply_defaults()
|
|
66
|
+
return bound
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def get_argument(arg_name: str, bound_arguments: inspect.BoundArguments) -> ty.Any:
|
|
70
|
+
return bound_arguments.arguments[arg_name]
|
|
@@ -19,7 +19,7 @@ thds/core/hashing.py,sha256=OqaV65vGKpT3l78jm-Uh7xG4DtAczGjk9-Q60OGmhY0,3521
|
|
|
19
19
|
thds/core/home.py,sha256=tTClL_AarIKeri1aNCpuIC6evD7qr83ESGD173B81hU,470
|
|
20
20
|
thds/core/hostname.py,sha256=canFGr-JaaG7nUfsQlyL0JT-2tnZoT1BvXzyaOMK1vA,208
|
|
21
21
|
thds/core/imports.py,sha256=0LVegY8I8_XKZPcqiIp2OVVzEDtyqYA3JETf9OAKNKs,568
|
|
22
|
-
thds/core/inspect.py,sha256=
|
|
22
|
+
thds/core/inspect.py,sha256=3IY9CSa7zAcAVyBDOYfMtJ2QU5cRc98JaN91XAbaSok,2368
|
|
23
23
|
thds/core/iterators.py,sha256=d3iTQDR0gCW1nMRmknQeodR_4THzR9Ajmp8F8KCCFgg,208
|
|
24
24
|
thds/core/lazy.py,sha256=e1WvG4LsbEydV0igEr_Vl1cq05zlQNIE8MFYT90yglE,3289
|
|
25
25
|
thds/core/link.py,sha256=kmFJIFvEZc16-7S7IGvtTpzwl3VuvFl3yPlE6WJJ03w,5404
|
|
@@ -68,8 +68,8 @@ thds/core/sqlite/structured.py,sha256=SvZ67KcVcVdmpR52JSd52vMTW2ALUXmlHEeD-VrzWV
|
|
|
68
68
|
thds/core/sqlite/types.py,sha256=oUkfoKRYNGDPZRk29s09rc9ha3SCk2SKr_K6WKebBFs,1308
|
|
69
69
|
thds/core/sqlite/upsert.py,sha256=BmKK6fsGVedt43iY-Lp7dnAu8aJ1e9CYlPVEQR2pMj4,5827
|
|
70
70
|
thds/core/sqlite/write.py,sha256=z0219vDkQDCnsV0WLvsj94keItr7H4j7Y_evbcoBrWU,3458
|
|
71
|
-
thds_core-1.39.
|
|
72
|
-
thds_core-1.39.
|
|
73
|
-
thds_core-1.39.
|
|
74
|
-
thds_core-1.39.
|
|
75
|
-
thds_core-1.39.
|
|
71
|
+
thds_core-1.39.20250619170707.dist-info/METADATA,sha256=ENPWZlbYtzQ3X9wBHYGLzIiNjbaQg-KInPNdaCOHWgM,2216
|
|
72
|
+
thds_core-1.39.20250619170707.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
73
|
+
thds_core-1.39.20250619170707.dist-info/entry_points.txt,sha256=bOCOVhKZv7azF3FvaWX6uxE6yrjK6FcjqhtxXvLiFY8,161
|
|
74
|
+
thds_core-1.39.20250619170707.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
|
|
75
|
+
thds_core-1.39.20250619170707.dist-info/RECORD,,
|
|
File without changes
|
{thds_core-1.39.20250618235519.dist-info → thds_core-1.39.20250619170707.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{thds_core-1.39.20250618235519.dist-info → thds_core-1.39.20250619170707.dist-info}/top_level.txt
RENAMED
|
File without changes
|