fmtr.tools 1.0.36__py3-none-any.whl → 1.0.38__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 CHANGED
@@ -148,6 +148,11 @@ try:
148
148
  except ImportError as exception:
149
149
  pdf = MissingExtraMockModule('pdf', exception)
150
150
 
151
+ try:
152
+ from fmtr.tools import tabular_tools as tabular
153
+ except ImportError as exception:
154
+ tabular = MissingExtraMockModule('tabular', exception)
155
+
151
156
 
152
157
  __all__ = [
153
158
  'config',
@@ -2,6 +2,7 @@ from collections import namedtuple
2
2
 
3
3
  import re
4
4
  from string import Formatter
5
+ from textwrap import dedent
5
6
  from typing import List
6
7
 
7
8
  from fmtr.tools.datatype_tools import is_none
@@ -147,6 +148,14 @@ class Mask:
147
148
  return self
148
149
 
149
150
 
151
+ def to_mask(text):
152
+ """
153
+
154
+ Fix multi-string indents.
155
+
156
+ """
157
+ return dedent(text).strip()
158
+
150
159
  if __name__ == '__main__':
151
160
  import numpy as np
152
161
 
@@ -0,0 +1,3 @@
1
+ import pandas as pd
2
+
3
+ DataFrame = pd.DataFrame
fmtr/tools/version CHANGED
@@ -1 +1 @@
1
- 1.0.36
1
+ 1.0.38
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fmtr.tools
3
- Version: 1.0.36
3
+ Version: 1.0.38
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
@@ -81,6 +81,8 @@ Requires-Dist: pandas ; extra == 'semantic'
81
81
  Requires-Dist: sentence-transformers ; extra == 'semantic'
82
82
  Provides-Extra: spaces
83
83
  Requires-Dist: tinynetrc ; extra == 'spaces'
84
+ Provides-Extra: tabular
85
+ Requires-Dist: pandas ; extra == 'tabular'
84
86
  Provides-Extra: test
85
87
  Requires-Dist: Unidecode ; extra == 'test'
86
88
  Requires-Dist: bokeh ; extra == 'test'
@@ -1,4 +1,4 @@
1
- fmtr/tools/__init__.py,sha256=3eJEUYhp82YvQUmoaFdNYaiNeQnyoRuxmez0uqKgZdU,5186
1
+ fmtr/tools/__init__.py,sha256=KDtV85yhOj1vjNsJA0WElOaQnVFmkX70jX6XO9Dxasc,5336
2
2
  fmtr/tools/ai_tools.py,sha256=hN7DzuATXfurCDHugaluUsbmF_PzeKu3BTc2WXhG59g,11806
3
3
  fmtr/tools/api_tools.py,sha256=u5YEdKyKto8MKY8legULLU7xeJ7lY2Bgyaep_xa8iZg,2089
4
4
  fmtr/tools/async_tools.py,sha256=ewz757WcveQJd-G5SVr2JDOQVbdLGecCgl-tsBGVZz4,284
@@ -38,11 +38,12 @@ fmtr/tools/profiling_tools.py,sha256=jpXVjaNKPydTasEQVNXvxzGtMhXPit08AnJddkU8uIc
38
38
  fmtr/tools/random_tools.py,sha256=4VlQdk5THbR8ka4pZaLbk_ZO_4yy6PF_lHZes_rgenY,2223
39
39
  fmtr/tools/semantic_tools.py,sha256=cxY9NSAHWj4nEc6Oj4qA1omR3dWbl2OuH7_PkINc6_E,1386
40
40
  fmtr/tools/spaces_tools.py,sha256=D_he3mve6DruB3OPS6QyzqD05ChHnRTb4buViKPe7To,1099
41
- fmtr/tools/string_tools.py,sha256=9HAV4dNZVJ4V-wO1nisXuETIeXQhJy9kXbuXh7kSBaw,3234
41
+ fmtr/tools/string_tools.py,sha256=0aAaLS7JPzCaanuyVT3YyonFbEZyimSAdesHRX_Ew6c,3362
42
+ fmtr/tools/tabular_tools.py,sha256=lJ3hk-uTIddt6eXE5uEpFK4pnP3hPzCL64PckFswMpU,46
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=svqcXKPUUA9FtlcJXznXwQjfh9xORm8iukRPYZFVlx4,6
46
+ fmtr/tools/version,sha256=5ZFgWsurP7B03PmjE4erNg5GPBZSiclo0zjFVVi7AZs,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/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -53,9 +54,9 @@ fmtr/tools/tests/test_environment.py,sha256=iHaiMQfECYZPkPKwfuIZV9uHuWe3aE-p_dN_
53
54
  fmtr/tools/tests/test_json.py,sha256=IeSP4ziPvRcmS8kq7k9tHonC9rN5YYq9GSNT2ul6Msk,287
54
55
  fmtr/tools/tests/test_path.py,sha256=AkZQa6_8BQ-VaCyL_J-iKmdf2ZaM-xFYR37Kun3k4_g,2188
55
56
  fmtr/tools/tests/test_yaml.py,sha256=jc0TwwKu9eC0LvFGNMERdgBue591xwLxYXFbtsRwXVM,287
56
- fmtr.tools-1.0.36.dist-info/LICENSE,sha256=FW9aa6vVN5IjRQWLT43hs4_koYSmpcbIovlKeAJ0_cI,10757
57
- fmtr.tools-1.0.36.dist-info/METADATA,sha256=8bBopiPwCHbeFimqO9GggUfxa61EiG7SSTAfXMG8Qco,13438
58
- fmtr.tools-1.0.36.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
59
- fmtr.tools-1.0.36.dist-info/entry_points.txt,sha256=CEStVkwJ1mTFvhN1WV5RdW83SkNW1d5Syj-KZ6A19ng,72
60
- fmtr.tools-1.0.36.dist-info/top_level.txt,sha256=t5341a8ii3n4RFizwTeXGmcq_pf4GqL1h9ylE5LIWRk,12
61
- fmtr.tools-1.0.36.dist-info/RECORD,,
57
+ fmtr.tools-1.0.38.dist-info/LICENSE,sha256=FW9aa6vVN5IjRQWLT43hs4_koYSmpcbIovlKeAJ0_cI,10757
58
+ fmtr.tools-1.0.38.dist-info/METADATA,sha256=NL3jFzY0BD_RiMW3q44Kx5VYaYB-DoCqC5GAuAaz9A8,13505
59
+ fmtr.tools-1.0.38.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
60
+ fmtr.tools-1.0.38.dist-info/entry_points.txt,sha256=CEStVkwJ1mTFvhN1WV5RdW83SkNW1d5Syj-KZ6A19ng,72
61
+ fmtr.tools-1.0.38.dist-info/top_level.txt,sha256=t5341a8ii3n4RFizwTeXGmcq_pf4GqL1h9ylE5LIWRk,12
62
+ fmtr.tools-1.0.38.dist-info/RECORD,,