fmtr.tools 1.0.46__py3-none-any.whl → 1.0.48__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 +3 -0
- fmtr/tools/data_modelling_tools.py +3 -0
- fmtr/tools/debugging_tools.py +13 -0
- fmtr/tools/version +1 -1
- {fmtr.tools-1.0.46.dist-info → fmtr.tools-1.0.48.dist-info}/METADATA +4 -1
- {fmtr.tools-1.0.46.dist-info → fmtr.tools-1.0.48.dist-info}/RECORD +11 -10
- {fmtr.tools-1.0.46.dist-info → fmtr.tools-1.0.48.dist-info}/LICENSE +0 -0
- {fmtr.tools-1.0.46.dist-info → fmtr.tools-1.0.48.dist-info}/WHEEL +0 -0
- {fmtr.tools-1.0.46.dist-info → fmtr.tools-1.0.48.dist-info}/entry_points.txt +0 -0
- {fmtr.tools-1.0.46.dist-info → fmtr.tools-1.0.48.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
|
@@ -18,6 +18,8 @@ def to_df(*objs, name_value='value'):
|
|
|
18
18
|
rows.append(row)
|
|
19
19
|
|
|
20
20
|
df = tabular.DataFrame(rows)
|
|
21
|
+
if 'id' in df.columns:
|
|
22
|
+
df.set_index('id', inplace=True, drop=True)
|
|
21
23
|
return df
|
|
22
24
|
|
|
23
25
|
|
|
@@ -62,6 +64,7 @@ class Base(BaseModel, MixinFromJson):
|
|
|
62
64
|
|
|
63
65
|
df = to_df(*objs, name_value=name_value)
|
|
64
66
|
df['id'] = list(self.model_fields.keys())
|
|
67
|
+
df = df.set_index('id', drop=True)
|
|
65
68
|
return df
|
|
66
69
|
|
|
67
70
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import pydevd_pycharm
|
|
2
|
+
|
|
3
|
+
from fmtr.tools import environment_tools
|
|
4
|
+
from fmtr.tools.config import ToolsConfig
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def trace(host=environment_tools.get(ToolsConfig.FMTR_DEBUG_HOST_KEY, ToolsConfig.FMTR_DEBUG_HOST), **kwargs):
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
Connect to PyCharm debugger
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
pydevd_pycharm.settrace(host, port=5679, stdoutToServer=True, stderrToServer=True)
|
fmtr/tools/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.48
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fmtr.tools
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.48
|
|
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=xQAECb6D5jwQfudNMM-Nki_dT54Dy7QQ8ZBUIFgwM4s,791
|
|
7
7
|
fmtr/tools/config_tools.py,sha256=27PbPYj90ClIW4QcRoUoiFM3SbWeMIIZsZR32IPU4V8,805
|
|
8
8
|
fmtr/tools/console_script_tools.py,sha256=T968S6fL--84G5ALaKwcTAzUOFyVhTU7Ts6qbk8oaeE,65
|
|
9
|
-
fmtr/tools/data_modelling_tools.py,sha256=
|
|
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=iTP-YvKnouVgWy46C1cVIHxdWspdPMTORhzxqBJYKWY,356
|
|
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=T5_LmkpWnytxIovZMFcxCBa6d7yS_lokYgY5iodHS8M,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.48.dist-info/LICENSE,sha256=FW9aa6vVN5IjRQWLT43hs4_koYSmpcbIovlKeAJ0_cI,10757
|
|
61
|
+
fmtr.tools-1.0.48.dist-info/METADATA,sha256=TJpy175kmRYsEPwMQRlGcctLChnuGIB681hMf_7SnMY,13978
|
|
62
|
+
fmtr.tools-1.0.48.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
63
|
+
fmtr.tools-1.0.48.dist-info/entry_points.txt,sha256=CEStVkwJ1mTFvhN1WV5RdW83SkNW1d5Syj-KZ6A19ng,72
|
|
64
|
+
fmtr.tools-1.0.48.dist-info/top_level.txt,sha256=t5341a8ii3n4RFizwTeXGmcq_pf4GqL1h9ylE5LIWRk,12
|
|
65
|
+
fmtr.tools-1.0.48.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|