python4cpm 1.0.24__tar.gz → 1.0.25__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python4cpm
3
- Version: 1.0.24
3
+ Version: 1.0.25
4
4
  Summary: Python for CPM
5
5
  Author-email: Gonzalo Atienza Rela <gonatienza@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python4cpm"
7
- version = "1.0.24"
7
+ version = "1.0.25"
8
8
  description = "Python for CPM"
9
9
  authors = [
10
10
  { name = "Gonzalo Atienza Rela", email = "gonatienza@gmail.com" }
@@ -5,6 +5,9 @@ class Secret:
5
5
  def __init__(self, secret: str) -> None:
6
6
  self._secret = secret
7
7
 
8
+ def __bool__(self) -> bool:
9
+ return bool(self._secret)
10
+
8
11
  def get(self) -> str:
9
12
  if Crypto.ENABLED and self._secret:
10
13
  return Crypto.decrypt(self._secret)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python4cpm
3
- Version: 1.0.24
3
+ Version: 1.0.25
4
4
  Summary: Python for CPM
5
5
  Author-email: Gonzalo Atienza Rela <gonatienza@gmail.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes