persidict 0.24.0__py3-none-any.whl → 0.25.0__py3-none-any.whl
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.
persidict/nochange_const.py
CHANGED
|
@@ -4,8 +4,14 @@ 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
|
+
from typing import Any
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
from parameterizable import (
|
|
10
|
+
ParameterizableClass
|
|
11
|
+
, register_parameterizable_class)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class NoChangeFlag(ParameterizableClass):
|
|
9
15
|
_instance = None
|
|
10
16
|
|
|
11
17
|
def __new__(cls):
|
|
@@ -13,5 +19,10 @@ class NoChangeFlag:
|
|
|
13
19
|
cls._instance = super().__new__(cls)
|
|
14
20
|
return cls._instance
|
|
15
21
|
|
|
22
|
+
def get_params(self) -> dict[str, Any]:
|
|
23
|
+
return {}
|
|
24
|
+
|
|
25
|
+
register_parameterizable_class(NoChangeFlag)
|
|
26
|
+
|
|
16
27
|
NoChange = NoChangeFlag()
|
|
17
28
|
NO_CHANGE = NoChangeFlag()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: persidict
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.25.0
|
|
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
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
persidict/.DS_Store,sha256=d65165279105ca6773180500688df4bdc69a2c7b771752f0a46ef120b7fd8ec3,6148
|
|
2
2
|
persidict/__init__.py,sha256=34e758e6e566fc18225214b430cf492938d6f3d48b36e678ab947f15c780a699,1185
|
|
3
3
|
persidict/file_dir_dict.py,sha256=688809f7adef2f3c8361c1a47bca5454eb65896d14cf54f26e590b8b3a631f67,14472
|
|
4
|
-
persidict/nochange_const.py,sha256=
|
|
4
|
+
persidict/nochange_const.py,sha256=5f7c11e8e3c0d09266badced1b7a4495da88d4401c391aa76df4ae36a712e3d7,685
|
|
5
5
|
persidict/persi_dict.py,sha256=2f13202fd733e33345336824e348c233810fd3715910d5996658a07a805c608f,12101
|
|
6
6
|
persidict/s3_dict.py,sha256=f7547c2918807dd1314800d97d4639f065eda9a1fec903833cb51e2f29a3799f,12159
|
|
7
7
|
persidict/safe_chars.py,sha256=59a20e96205d2e5675d827a911ad42ddbd553f1bd7e2cda1be765a9c2c4ce814,565
|
|
8
8
|
persidict/safe_str_tuple.py,sha256=71393904bdebfb213ad8429fed59e04da52964076c01324f2238821aa4339325,3717
|
|
9
9
|
persidict/safe_str_tuple_signing.py,sha256=e6e0a3015651a8ea2ef8aa43670f84c5ba1cdfedefb9ac8932aaebb7c699d1c9,3742
|
|
10
|
-
persidict-0.
|
|
11
|
-
persidict-0.
|
|
12
|
-
persidict-0.
|
|
10
|
+
persidict-0.25.0.dist-info/WHEEL,sha256=c133ef911c90b05f7e14d8679ba99146f9154fcd271b7398cf8f672283b94e05,79
|
|
11
|
+
persidict-0.25.0.dist-info/METADATA,sha256=a42553750c57228c002a81aee172af508e499b089118d97b8563cee1a7c5175e,9193
|
|
12
|
+
persidict-0.25.0.dist-info/RECORD,,
|
|
File without changes
|