persidict 0.20.0__tar.gz → 0.21.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.20.0
3
+ Version: 0.21.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
@@ -161,7 +161,8 @@ that simultaneously work with the same instance of a dictionary.
161
161
  `oldest_keys()`, `newest_values()`, `oldest_values()`,
162
162
  `get_params()`, `get_metaparams()`, and `get_default_metaparams()`,
163
163
  which are not available in native Python dicts.
164
- * You can use NO_CHANGE constant to avoid actually setting/updating a value.
164
+ * You can use NO_CHANGE constant as a fake new value
165
+ to avoid actually setting/updating a value.
165
166
 
166
167
  ## Fine Tuning
167
168
 
@@ -128,7 +128,8 @@ that simultaneously work with the same instance of a dictionary.
128
128
  `oldest_keys()`, `newest_values()`, `oldest_values()`,
129
129
  `get_params()`, `get_metaparams()`, and `get_default_metaparams()`,
130
130
  which are not available in native Python dicts.
131
- * You can use NO_CHANGE constant to avoid actually setting/updating a value.
131
+ * You can use NO_CHANGE constant as a fake new value
132
+ to avoid actually setting/updating a value.
132
133
 
133
134
  ## Fine Tuning
134
135
 
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "persidict"
7
- version = "0.20.0"
7
+ version = "0.21.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"
@@ -1,11 +1,11 @@
1
1
  """A singleton constant to indicate no change in a value.
2
2
 
3
- When updating a val ue in a persistent dictionary,
3
+ When updating a value in a persistent dictionary,
4
4
  use NO_CHANGE as the new value to indicate that
5
5
  the existing value should remain unchanged.
6
6
  """
7
7
 
8
- class NoChange_Class:
8
+ class NoChangeFlag:
9
9
  _instance = None
10
10
 
11
11
  def __new__(cls):
@@ -13,5 +13,5 @@ class NoChange_Class:
13
13
  cls._instance = super().__new__(cls)
14
14
  return cls._instance
15
15
 
16
- NoChange = NoChange_Class()
17
- NO_CHANGE = NoChange_Class()
16
+ NoChange = NoChangeFlag()
17
+ NO_CHANGE = NoChangeFlag()