tba-concrete-claim-eat-submodules 0.4.0.dev2__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.
- tba_concrete_claim_eat_submodules-0.4.0.dev2/PKG-INFO +13 -0
- tba_concrete_claim_eat_submodules-0.4.0.dev2/pyproject.toml +10 -0
- tba_concrete_claim_eat_submodules-0.4.0.dev2/src/tba_concrete_claim_eat_submodules/__init__.py +17 -0
- tba_concrete_claim_eat_submodules-0.4.0.dev2/src/tba_concrete_claim_eat_submodules/py.typed +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tba-concrete-claim-eat-submodules
|
|
3
|
+
Version: 0.4.0.dev2
|
|
4
|
+
Summary:
|
|
5
|
+
Requires-Python: >=3.10,<3.15
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
+
Requires-Dist: tba-bases-claim (==0.4.0.dev2)
|
|
13
|
+
Requires-Dist: tba-primitives-identity (==0.4.0.dev2)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name="tba-concrete-claim-eat-submodules"
|
|
3
|
+
version="0.4.0.dev2"
|
|
4
|
+
requires-python=">=3.10,<3.15"
|
|
5
|
+
dependencies=["tba-primitives-identity==0.4.0.dev2","tba-bases-claim==0.4.0.dev2"]
|
|
6
|
+
[build-system]
|
|
7
|
+
requires=["poetry-core>=1.0.0"]
|
|
8
|
+
build-backend="poetry.core.masonry.api"
|
|
9
|
+
[tool.poetry]
|
|
10
|
+
packages=[{include="tba_concrete_claim_eat_submodules",from="src"}]
|
tba_concrete_claim_eat_submodules-0.4.0.dev2/src/tba_concrete_claim_eat_submodules/__init__.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from tba_bases_claim import ClaimBase
|
|
2
|
+
from tba_primitives_identity import ClaimType, ClaimValueType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class EatSubmodulesClaim(ClaimBase):
|
|
6
|
+
claim_name = "submods"
|
|
7
|
+
default_claim_type = ClaimType.ATTESTATION
|
|
8
|
+
default_value_type = ClaimValueType.JSON_OBJECT
|
|
9
|
+
default_standards = ("RFC9711",)
|
|
10
|
+
|
|
11
|
+
@classmethod
|
|
12
|
+
def validate_value(cls, value):
|
|
13
|
+
if not isinstance(value, dict) or not all(isinstance(key, str) and key for key in value):
|
|
14
|
+
raise ValueError("submods must be an object with non-empty string names")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__all__ = ["EatSubmodulesClaim"]
|
|
File without changes
|