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.
Files changed (47) hide show
  1. {pelutils-3.8.2 → pelutils-3.8.3}/PKG-INFO +1 -1
  2. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/__version__.py +1 -1
  3. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/datastorage2/__init__.py +2 -1
  4. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/PKG-INFO +1 -1
  5. {pelutils-3.8.2 → pelutils-3.8.3}/MANIFEST.in +0 -0
  6. {pelutils-3.8.2 → pelutils-3.8.3}/README.md +0 -0
  7. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/__init__.py +0 -0
  8. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/__init__.py +0 -0
  9. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/ds.c +0 -0
  10. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/hashmap.c/LICENSE +0 -0
  11. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/hashmap.c/hashmap.c +0 -0
  12. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_c/hashmap.c/hashmap.h +0 -0
  13. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_entry_points/__init__.py +0 -0
  14. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/_entry_points/linecounter.py +0 -0
  15. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/datastorage.py +0 -0
  16. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/datastorage2/_pretty_json.py +0 -0
  17. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/__init__.py +0 -0
  18. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/distributions.py +0 -0
  19. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/plots.py +0 -0
  20. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ds/stats.py +0 -0
  21. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/format.py +0 -0
  22. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/jsonl.py +0 -0
  23. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/logging/__init__.py +0 -0
  24. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/logging/_rotate.py +0 -0
  25. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/logging/_utils.py +0 -0
  26. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/parser.py +0 -0
  27. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/pretty_json.py +0 -0
  28. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/py.typed +0 -0
  29. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/tests.py +0 -0
  30. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/ticktock.py +0 -0
  31. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils/types.py +0 -0
  32. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/SOURCES.txt +0 -0
  33. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/dependency_links.txt +0 -0
  34. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/entry_points.txt +0 -0
  35. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/requires.txt +0 -0
  36. {pelutils-3.8.2 → pelutils-3.8.3}/pelutils.egg-info/top_level.txt +0 -0
  37. {pelutils-3.8.2 → pelutils-3.8.3}/setup.cfg +0 -0
  38. {pelutils-3.8.2 → pelutils-3.8.3}/setup.py +0 -0
  39. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_datastorage.py +0 -0
  40. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_format.py +0 -0
  41. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_init.py +0 -0
  42. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_jsonl.py +0 -0
  43. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_parser.py +0 -0
  44. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_pretty_json.py +0 -0
  45. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_tests.py +0 -0
  46. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_ticktock.py +0 -0
  47. {pelutils-3.8.2 → pelutils-3.8.3}/tests/test_types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pelutils
3
- Version: 3.8.2
3
+ Version: 3.8.3
4
4
  Summary: The Swiss army knife of Python projects.
5
5
  Home-page: https://github.com/peleiden/pelutils
6
6
  Download-URL: https://pypi.org/project/pelutils/
@@ -1,2 +1,2 @@
1
1
  # Do not put anything else in this file
2
- __version__ = "3.8.2"
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>/<save_name>.json.
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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pelutils
3
- Version: 3.8.2
3
+ Version: 3.8.3
4
4
  Summary: The Swiss army knife of Python projects.
5
5
  Home-page: https://github.com/peleiden/pelutils
6
6
  Download-URL: https://pypi.org/project/pelutils/
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