persidict 0.31.0__tar.gz → 0.31.1__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 persidict might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: persidict
3
- Version: 0.31.0
3
+ Version: 0.31.1
4
4
  Summary: Simple persistent key-value store for Python. Values are stored as files on a disk or as S3 objects on AWS cloud.
5
5
  Keywords: persistence,dicts,distributed,parallel
6
6
  Author: Vlad (Volodymyr) Pavlov
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "persidict"
7
- version = "0.31.0"
7
+ version = "0.31.1"
8
8
  description = "Simple persistent key-value store for Python. Values are stored as files on a disk or as S3 objects on AWS cloud."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -19,6 +19,7 @@ import jsonpickle
19
19
  import jsonpickle.ext.numpy as jsonpickle_numpy
20
20
  import jsonpickle.ext.pandas as jsonpickle_pandas
21
21
  import parameterizable
22
+ from parameterizable import sort_dict_by_keys
22
23
 
23
24
  from .jokers import KEEP_CURRENT, DELETE_CURRENT, Joker
24
25
  from .safe_chars import replace_unsafe_chars
@@ -124,7 +125,7 @@ class FileDirDict(PersiDict):
124
125
  base_dir=self.base_dir
125
126
  , file_type=self.file_type)
126
127
  params.update(additional_params)
127
- sorted_params = dict(sorted(params.items()))
128
+ sorted_params = sort_dict_by_keys(params)
128
129
  return sorted_params
129
130
 
130
131
 
@@ -22,7 +22,7 @@ from __future__ import annotations
22
22
 
23
23
  from abc import abstractmethod
24
24
  import random
25
- from parameterizable import ParameterizableClass
25
+ from parameterizable import ParameterizableClass, sort_dict_by_keys
26
26
  from typing import Any, Sequence, Optional
27
27
  from collections.abc import MutableMapping
28
28
 
@@ -107,7 +107,7 @@ class PersiDict(MutableMapping, ParameterizableClass):
107
107
  , digest_len=self.digest_len
108
108
  , base_class_for_values=self.base_class_for_values
109
109
  )
110
- sorted_params = dict(sorted(params.items()))
110
+ sorted_params = sort_dict_by_keys(params)
111
111
  return sorted_params
112
112
 
113
113
 
@@ -5,6 +5,7 @@ from typing import Any, Optional
5
5
 
6
6
  import boto3
7
7
  import parameterizable
8
+ from parameterizable.dict_sorter import sort_dict_by_keys
8
9
 
9
10
  from .safe_str_tuple import SafeStrTuple
10
11
  from .safe_str_tuple_signing import sign_safe_str_tuple, unsign_safe_str_tuple
@@ -119,7 +120,7 @@ class S3Dict(PersiDict):
119
120
  params["region"] = self.region
120
121
  params["bucket_name"] = self.bucket_name
121
122
  params["root_prefix"] = self.root_prefix
122
- sorted_params = dict(sorted(params.items()))
123
+ sorted_params = sort_dict_by_keys(params)
123
124
  return sorted_params
124
125
 
125
126
 
@@ -3,7 +3,8 @@ from __future__ import annotations
3
3
  import time
4
4
 
5
5
  from deepdiff import DeepDiff
6
- from parameterizable import register_parameterizable_class
6
+ from parameterizable import register_parameterizable_class, sort_dict_by_keys
7
+
7
8
  from .jokers import KEEP_CURRENT, KeepCurrentFlag
8
9
  from .persi_dict import PersiDict
9
10
  from .file_dir_dict import FileDirDict
@@ -103,7 +104,7 @@ class WriteOnceDict(PersiDict):
103
104
  params = dict(
104
105
  wrapped_dict = self._wrapped_dict,
105
106
  p_consistency_checks = self.p_consistency_checks)
106
- sorted_params = dict(sorted(params.items()))
107
+ sorted_params = sort_dict_by_keys(params)
107
108
  return sorted_params
108
109
 
109
110
  def __setitem__(self, key, value):
File without changes