fmtr.tools 1.0.31__tar.gz → 1.0.32__tar.gz
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-1.0.31 → fmtr.tools-1.0.32}/PKG-INFO +1 -1
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/api_tools.py +5 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/path_tools.py +23 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/string_tools.py +7 -0
- fmtr.tools-1.0.32/fmtr/tools/version +1 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr.tools.egg-info/PKG-INFO +1 -1
- fmtr.tools-1.0.31/fmtr/tools/version +0 -1
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/LICENSE +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/README.md +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/__init__.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/ai_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/async_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/augmentation_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/caching_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/config.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/config_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/console_script_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/data_modelling_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/dataclass_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/datatype_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/docker_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/environment_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/function_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/google_api_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/hash_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/hfh_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/html_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/import_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/inspection_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/interface_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/iterator_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/json_fix_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/json_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/logging_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/merging_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/metric_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/name_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/netrc_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/openai_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/parallel_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/platform_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/process_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/profiling_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/random_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/semantic_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/spaces_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/__init__.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/conftest.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/helpers.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/test_datatype.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/test_environment.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/test_json.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/test_path.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tests/test_yaml.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tokenization_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/unicode_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/version_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr/tools/yaml_tools.py +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr.tools.egg-info/SOURCES.txt +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr.tools.egg-info/dependency_links.txt +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr.tools.egg-info/entry_points.txt +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr.tools.egg-info/requires.txt +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/fmtr.tools.egg-info/top_level.txt +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/setup.cfg +0 -0
- {fmtr.tools-1.0.31 → fmtr.tools-1.0.32}/setup.py +0 -0
|
@@ -96,6 +96,29 @@ class Path(type(Path())):
|
|
|
96
96
|
"""
|
|
97
97
|
return cls(gettempdir())
|
|
98
98
|
|
|
99
|
+
@classmethod
|
|
100
|
+
def data(cls, name='data') -> 'Path':
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
Fetch canonical "data"/"artifacts" path, whether calling package is regular or namespace package.
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
from fmtr.tools.inspection_tools import get_call_path
|
|
107
|
+
path = get_call_path()
|
|
108
|
+
path = path.absolute().parent.parent
|
|
109
|
+
|
|
110
|
+
path /= name
|
|
111
|
+
|
|
112
|
+
if path.exists():
|
|
113
|
+
return path
|
|
114
|
+
|
|
115
|
+
path = path.parent.parent / name
|
|
116
|
+
|
|
117
|
+
if path.exists():
|
|
118
|
+
return path
|
|
119
|
+
|
|
120
|
+
raise FileNotFoundError(f'No "{name}" directory found at "{path}"')
|
|
121
|
+
|
|
99
122
|
def write_json(self, obj) -> int:
|
|
100
123
|
"""
|
|
101
124
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.32
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.0.31
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|