pelutils 3.8.2__tar.gz → 3.8.3__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.
- {pelutils-3.8.2 → pelutils-3.8.3}/PKG-INFO +1 -1
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/__version__.py +1 -1
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/datastorage2/__init__.py +2 -1
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/PKG-INFO +1 -1
- {pelutils-3.8.2 → pelutils-3.8.3}/MANIFEST.in +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/README.md +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/__init__.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/__init__.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/ds.c +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/hashmap.c/LICENSE +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/hashmap.c/hashmap.c +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/hashmap.c/hashmap.h +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_entry_points/__init__.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_entry_points/linecounter.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/datastorage.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/datastorage2/_pretty_json.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/__init__.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/distributions.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/plots.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/stats.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/format.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/jsonl.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/logging/__init__.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/logging/_rotate.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/logging/_utils.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/parser.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/pretty_json.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/py.typed +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/tests.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ticktock.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/types.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/SOURCES.txt +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/dependency_links.txt +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/entry_points.txt +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/requires.txt +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/top_level.txt +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/setup.cfg +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/setup.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_datastorage.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_format.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_init.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_jsonl.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_parser.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_pretty_json.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_tests.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_ticktock.py +0 -0
- {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_types.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# Do not put anything else in this file
|
|
2
|
-
__version__ = "3.8.
|
|
2
|
+
__version__ = "3.8.3"
|
|
@@ -35,9 +35,10 @@ class DataStorage2(BaseModel):
|
|
|
35
35
|
) -> Path:
|
|
36
36
|
"""Save the instance to a json file in the directory. The path to the file is returned.
|
|
37
37
|
|
|
38
|
-
If save_name is None, the path is <directory>/<class name>.json, otherwise it is <directory>/<
|
|
38
|
+
If save_name is None, the path is <directory>/<class name>.json, otherwise it is <directory>/<filename>.json.
|
|
39
39
|
"""
|
|
40
40
|
savepath = self._resolve_save_file(directory, filename)
|
|
41
|
+
savepath.parent.mkdir(parents=True, exist_ok=True)
|
|
41
42
|
self_dict = self.model_dump(mode="json", fallback=_pickle_encode)
|
|
42
43
|
savepath.write_text(
|
|
43
44
|
_pretty_json(
|
|
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
|