persidict 0.23.2__tar.gz → 0.25.0__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.23.2
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
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "persidict"
7
- version = "0.23.2"
7
+ version = "0.25.0"
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"
@@ -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
- class NoChangeFlag:
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()
File without changes