fmtr.tools 1.0.47__py3-none-any.whl → 1.0.49__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 fmtr.tools might be problematic. Click here for more details.
- fmtr/tools/__init__.py +5 -0
- fmtr/tools/config.py +5 -0
- fmtr/tools/debugging_tools.py +26 -0
- fmtr/tools/version +1 -1
- {fmtr.tools-1.0.47.dist-info → fmtr.tools-1.0.49.dist-info}/METADATA +4 -1
- {fmtr.tools-1.0.47.dist-info → fmtr.tools-1.0.49.dist-info}/RECORD +10 -9
- {fmtr.tools-1.0.47.dist-info → fmtr.tools-1.0.49.dist-info}/LICENSE +0 -0
- {fmtr.tools-1.0.47.dist-info → fmtr.tools-1.0.49.dist-info}/WHEEL +0 -0
- {fmtr.tools-1.0.47.dist-info → fmtr.tools-1.0.49.dist-info}/entry_points.txt +0 -0
- {fmtr.tools-1.0.47.dist-info → fmtr.tools-1.0.49.dist-info}/top_level.txt +0 -0
fmtr/tools/__init__.py
CHANGED
|
@@ -153,6 +153,11 @@ try:
|
|
|
153
153
|
except ImportError as exception:
|
|
154
154
|
tabular = MissingExtraMockModule('tabular', exception)
|
|
155
155
|
|
|
156
|
+
try:
|
|
157
|
+
from fmtr.tools import debugging_tools as debug
|
|
158
|
+
except ImportError as exception:
|
|
159
|
+
debug = MissingExtraMockModule('debug', exception)
|
|
160
|
+
|
|
156
161
|
|
|
157
162
|
__all__ = [
|
|
158
163
|
'config',
|
fmtr/tools/config.py
CHANGED
|
@@ -19,3 +19,8 @@ class ToolsConfig(ConfigClass):
|
|
|
19
19
|
FMTR_LOG_LEVEL_KEY = 'FMTR_LOG_LEVEL'
|
|
20
20
|
FMTR_OBS_API_KEY_KEY = 'FMTR_OBS_API_KEY'
|
|
21
21
|
FMTR_OBS_HOST = 'obs.sv.fmtr.dev'
|
|
22
|
+
|
|
23
|
+
FMTR_REMOTE_DEBUG_HOST_KEY = 'FMTR_DEBUG_HOST'
|
|
24
|
+
FMTR_REMOTE_DEBUG_HOST_DEFAULT = 'ws.lan'
|
|
25
|
+
FMTR_REMOTE_DEBUG_PORT_DEFAULT = 5679
|
|
26
|
+
FMTR_REMOTE_DEBUG_ENABLED_KEY = 'FMTR_REMOTE_DEBUG_ENABLED'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import pydevd_pycharm
|
|
2
|
+
|
|
3
|
+
from fmtr.tools import environment_tools
|
|
4
|
+
from fmtr.tools.config import ToolsConfig
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def trace(is_debug=None, host=None, port=None, stdoutToServer=True, stderrToServer=True, **kwargs):
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
Connect to PyCharm debugger
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
if not is_debug:
|
|
14
|
+
is_debug = environment_tools.get_bool(ToolsConfig.FMTR_REMOTE_DEBUG_ENABLED_KEY, False)
|
|
15
|
+
|
|
16
|
+
if not is_debug:
|
|
17
|
+
return
|
|
18
|
+
|
|
19
|
+
if is_debug is True and not host:
|
|
20
|
+
host = environment_tools.get(ToolsConfig.FMTR_REMOTE_DEBUG_HOST_KEY)
|
|
21
|
+
|
|
22
|
+
host = host or environment_tools.get(ToolsConfig.FMTR_REMOTE_DEBUG_HOST_KEY,
|
|
23
|
+
ToolsConfig.FMTR_REMOTE_DEBUG_HOST_DEFAULT)
|
|
24
|
+
port = port or ToolsConfig.FMTR_REMOTE_DEBUG_PORT_DEFAULT
|
|
25
|
+
|
|
26
|
+
pydevd_pycharm.settrace(host, port=port, stdoutToServer=stdoutToServer, stderrToServer=stderrToServer, **kwargs)
|
fmtr/tools/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.49
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fmtr.tools
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.49
|
|
4
4
|
Summary: Collection of high-level tools to simplify everyday development tasks, with a focus on AI/ML
|
|
5
5
|
Home-page: https://github.com/fmtr/fmtr.tools
|
|
6
6
|
Author: Frontmatter
|
|
@@ -32,6 +32,8 @@ Requires-Dist: faker ; extra == 'augmentation'
|
|
|
32
32
|
Requires-Dist: sre-yield ; extra == 'augmentation'
|
|
33
33
|
Provides-Extra: caching
|
|
34
34
|
Requires-Dist: diskcache ; extra == 'caching'
|
|
35
|
+
Provides-Extra: debug
|
|
36
|
+
Requires-Dist: pydevd-pycharm ; extra == 'debug'
|
|
35
37
|
Provides-Extra: dm
|
|
36
38
|
Requires-Dist: pydantic ; extra == 'dm'
|
|
37
39
|
Provides-Extra: docker.api
|
|
@@ -118,6 +120,7 @@ Requires-Dist: pandas ; extra == 'test'
|
|
|
118
120
|
Requires-Dist: peft ; extra == 'test'
|
|
119
121
|
Requires-Dist: pydantic ; extra == 'test'
|
|
120
122
|
Requires-Dist: pydantic-ai[logfire,openai] ; extra == 'test'
|
|
123
|
+
Requires-Dist: pydevd-pycharm ; extra == 'test'
|
|
121
124
|
Requires-Dist: pymupdf ; extra == 'test'
|
|
122
125
|
Requires-Dist: pymupdf4llm ; extra == 'test'
|
|
123
126
|
Requires-Dist: pytest-cov ; extra == 'test'
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
fmtr/tools/__init__.py,sha256=
|
|
1
|
+
fmtr/tools/__init__.py,sha256=6GqFnXOeHOltN96f5UnBHvBoHubPj1CG3Pm7NgugMls,5482
|
|
2
2
|
fmtr/tools/api_tools.py,sha256=u5YEdKyKto8MKY8legULLU7xeJ7lY2Bgyaep_xa8iZg,2089
|
|
3
3
|
fmtr/tools/async_tools.py,sha256=ewz757WcveQJd-G5SVr2JDOQVbdLGecCgl-tsBGVZz4,284
|
|
4
4
|
fmtr/tools/augmentation_tools.py,sha256=-6ESbO4CDlKqVOV1J1V6qBeoBMzbFIinkDHRHnCBej0,55
|
|
5
5
|
fmtr/tools/caching_tools.py,sha256=UOCYUNvLQ-NofR_dhqBmZF96-HRPf4At5MmxVk3gAIk,2943
|
|
6
|
-
fmtr/tools/config.py,sha256=
|
|
6
|
+
fmtr/tools/config.py,sha256=C_UwYyUi0-pPl9yRhbzOy79EmDm4K1jI4iFHw5xSD5k,919
|
|
7
7
|
fmtr/tools/config_tools.py,sha256=27PbPYj90ClIW4QcRoUoiFM3SbWeMIIZsZR32IPU4V8,805
|
|
8
8
|
fmtr/tools/console_script_tools.py,sha256=T968S6fL--84G5ALaKwcTAzUOFyVhTU7Ts6qbk8oaeE,65
|
|
9
9
|
fmtr/tools/data_modelling_tools.py,sha256=_WBcinjzg1JSMgYiloDMLo4f-lGjl4g1zPq9J4Vqkyg,1567
|
|
10
10
|
fmtr/tools/dataclass_tools.py,sha256=0Gt6KeLhtPgubo_2tYkIVqB8oQ91Qzag8OAGZDdjvMU,1209
|
|
11
11
|
fmtr/tools/datatype_tools.py,sha256=3P4AWIFGkJ-UqvXlj0Jc9IvkIIgTOE9jRrOk3NVbpH8,1508
|
|
12
|
+
fmtr/tools/debugging_tools.py,sha256=jrFCHguZv6CJS0mnIKLe27vy4JS2S4y8okAWZek0EFw,875
|
|
12
13
|
fmtr/tools/docker_tools.py,sha256=rdaZje2xhlmnfQqZnR7IHgRdWncTLjrJcViUTt5oEwk,617
|
|
13
14
|
fmtr/tools/environment_tools.py,sha256=34NKG-BJrobYyJeM3FH3VE6G1rv6kQ41bvTxkEYfNi8,1850
|
|
14
15
|
fmtr/tools/function_tools.py,sha256=_oW3-HZXMst2pcU-I-U7KTMmzo0g9MIQKmX-c2_NEoE,858
|
|
@@ -42,7 +43,7 @@ fmtr/tools/tabular_tools.py,sha256=L0yNsU_c8dGTmsUlMFERfTt2a3aZv_pKr2YQc7C9OvA,6
|
|
|
42
43
|
fmtr/tools/tokenization_tools.py,sha256=9FP5vgPufWv0XA961eVKObFll0d_2mM0W3ut3rtZyeo,4329
|
|
43
44
|
fmtr/tools/tools.py,sha256=xnfUrOnrT4OxFYez6vV5tAhydzCICJFiGVnviiZDEQo,796
|
|
44
45
|
fmtr/tools/unicode_tools.py,sha256=yS_9wpu8ogNoiIL7s1G_8bETFFO_YQlo4LNPv1NLDeY,52
|
|
45
|
-
fmtr/tools/version,sha256=
|
|
46
|
+
fmtr/tools/version,sha256=XTW-LS2shch2h6b2frBKeC_Uz2pmLjLupWtYJ6VuuYc,6
|
|
46
47
|
fmtr/tools/version_tools.py,sha256=axzzHBS9V1n6YuSacsDKG3VfAvRqR8qr6aENCibR8vs,1248
|
|
47
48
|
fmtr/tools/yaml_tools.py,sha256=Ol43ZwbnSXGnn1K98Uxx61KPGSqfC4axE-X2q1LKMwk,349
|
|
48
49
|
fmtr/tools/ai_tools/__init__.py,sha256=JZrLuOFNV1A3wvJgonxOgz_4WS-7MfCuowGWA5uYCjs,372
|
|
@@ -56,9 +57,9 @@ fmtr/tools/tests/test_environment.py,sha256=iHaiMQfECYZPkPKwfuIZV9uHuWe3aE-p_dN_
|
|
|
56
57
|
fmtr/tools/tests/test_json.py,sha256=IeSP4ziPvRcmS8kq7k9tHonC9rN5YYq9GSNT2ul6Msk,287
|
|
57
58
|
fmtr/tools/tests/test_path.py,sha256=AkZQa6_8BQ-VaCyL_J-iKmdf2ZaM-xFYR37Kun3k4_g,2188
|
|
58
59
|
fmtr/tools/tests/test_yaml.py,sha256=jc0TwwKu9eC0LvFGNMERdgBue591xwLxYXFbtsRwXVM,287
|
|
59
|
-
fmtr.tools-1.0.
|
|
60
|
-
fmtr.tools-1.0.
|
|
61
|
-
fmtr.tools-1.0.
|
|
62
|
-
fmtr.tools-1.0.
|
|
63
|
-
fmtr.tools-1.0.
|
|
64
|
-
fmtr.tools-1.0.
|
|
60
|
+
fmtr.tools-1.0.49.dist-info/LICENSE,sha256=FW9aa6vVN5IjRQWLT43hs4_koYSmpcbIovlKeAJ0_cI,10757
|
|
61
|
+
fmtr.tools-1.0.49.dist-info/METADATA,sha256=dOxuDnmCpd8ZANX-ETtqvlIsMx7bhqv8akJ1itHwCn4,13978
|
|
62
|
+
fmtr.tools-1.0.49.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
63
|
+
fmtr.tools-1.0.49.dist-info/entry_points.txt,sha256=CEStVkwJ1mTFvhN1WV5RdW83SkNW1d5Syj-KZ6A19ng,72
|
|
64
|
+
fmtr.tools-1.0.49.dist-info/top_level.txt,sha256=t5341a8ii3n4RFizwTeXGmcq_pf4GqL1h9ylE5LIWRk,12
|
|
65
|
+
fmtr.tools-1.0.49.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|