sindripy 0.1.2__tar.gz → 0.1.3__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 sindripy might be problematic. Click here for more details.
- {sindripy-0.1.2 → sindripy-0.1.3}/PKG-INFO +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/pyproject.toml +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/__init__.py +2 -2
- sindripy-0.1.3/src/sindripy/mothers/__init__.py +24 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/identifiers/string_uuid_primitives_mother.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/primitives/boolean_primitives_mother.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/primitives/float_primitives_mother.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/primitives/integer_primitives_mother.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/primitives/list_primitives_mother.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/primitives/string_primitives_mother.py +1 -1
- sindripy-0.1.3/src/sindripy/value_objects/__init__.py +29 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/aggregate.py +2 -2
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/errors/incorrect_value_type_error.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/errors/invalid_id_format_error.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/errors/required_value_error.py +1 -1
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/identifiers/string_uuid.py +5 -5
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/primitives/boolean.py +4 -4
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/primitives/float.py +4 -4
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/primitives/integer.py +4 -4
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/primitives/list.py +5 -5
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/primitives/string.py +4 -4
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/value_object.py +1 -1
- sindripy-0.1.2/src/sindripy/mothers/__init__.py +0 -24
- sindripy-0.1.2/src/sindripy/value_objects/__init__.py +0 -29
- {sindripy-0.1.2 → sindripy-0.1.3}/LICENSE +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/README.md +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/_compat.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/identifiers/__init__.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/object_mother.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/mothers/primitives/__init__.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/py.typed +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/decorators/__init__.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/decorators/validation.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/errors/__init__.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/errors/sindri_validation_error.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/identifiers/__init__.py +0 -0
- {sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/primitives/__init__.py +0 -0
|
@@ -5,7 +5,7 @@ available through the ``sindripy`` namespace when the library is
|
|
|
5
5
|
installed as a dependency.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
from
|
|
8
|
+
from sindripy import mothers, value_objects
|
|
9
9
|
|
|
10
10
|
__all__ = ["mothers", "value_objects"]
|
|
11
|
-
__version__ = "0.1.
|
|
11
|
+
__version__ = "0.1.3"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Public facade for object mother helpers.
|
|
2
|
+
|
|
3
|
+
This module re-exports the available object mother implementations so
|
|
4
|
+
that projects using this library can import them from
|
|
5
|
+
``sindripy.mothers`` directly.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from sindripy.mothers.identifiers.string_uuid_primitives_mother import StringUuidPrimitivesMother
|
|
9
|
+
from sindripy.mothers.object_mother import ObjectMother
|
|
10
|
+
from sindripy.mothers.primitives.boolean_primitives_mother import BooleanPrimitivesMother
|
|
11
|
+
from sindripy.mothers.primitives.float_primitives_mother import FloatPrimitivesMother
|
|
12
|
+
from sindripy.mothers.primitives.integer_primitives_mother import IntegerPrimitivesMother
|
|
13
|
+
from sindripy.mothers.primitives.list_primitives_mother import ListPrimitivesMother
|
|
14
|
+
from sindripy.mothers.primitives.string_primitives_mother import StringPrimitivesMother
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"ObjectMother",
|
|
18
|
+
"BooleanPrimitivesMother",
|
|
19
|
+
"FloatPrimitivesMother",
|
|
20
|
+
"IntegerPrimitivesMother",
|
|
21
|
+
"ListPrimitivesMother",
|
|
22
|
+
"StringPrimitivesMother",
|
|
23
|
+
"StringUuidPrimitivesMother",
|
|
24
|
+
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Public facade for value object implementations.
|
|
2
|
+
|
|
3
|
+
This module re-exports the most common value objects so they can be
|
|
4
|
+
imported directly from :mod:`sindripy.value_object`.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from sindripy.value_objects.aggregate import Aggregate
|
|
8
|
+
from sindripy.value_objects.decorators.validation import validate
|
|
9
|
+
from sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
|
|
10
|
+
from sindripy.value_objects.identifiers.string_uuid import StringUuid
|
|
11
|
+
from sindripy.value_objects.primitives.boolean import Boolean
|
|
12
|
+
from sindripy.value_objects.primitives.float import Float
|
|
13
|
+
from sindripy.value_objects.primitives.integer import Integer
|
|
14
|
+
from sindripy.value_objects.primitives.list import List
|
|
15
|
+
from sindripy.value_objects.primitives.string import String
|
|
16
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"Aggregate",
|
|
20
|
+
"validate",
|
|
21
|
+
"StringUuid",
|
|
22
|
+
"Boolean",
|
|
23
|
+
"Float",
|
|
24
|
+
"Integer",
|
|
25
|
+
"List",
|
|
26
|
+
"String",
|
|
27
|
+
"ValueObject",
|
|
28
|
+
"SindriValidationError",
|
|
29
|
+
]
|
|
@@ -3,8 +3,8 @@ from enum import Enum
|
|
|
3
3
|
from inspect import Parameter, _empty, signature
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
6
|
+
from sindripy._compat import Self, override
|
|
7
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Aggregate(ABC):
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from uuid import UUID
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
3
|
+
from sindripy.value_objects.decorators.validation import validate
|
|
4
|
+
from sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
|
|
5
|
+
from sindripy.value_objects.errors.invalid_id_format_error import InvalidIdFormatError
|
|
6
|
+
from sindripy.value_objects.errors.required_value_error import RequiredValueError
|
|
7
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class StringUuid(ValueObject[str]):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
1
|
+
from sindripy.value_objects.decorators.validation import validate
|
|
2
|
+
from sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
|
|
3
|
+
from sindripy.value_objects.errors.required_value_error import RequiredValueError
|
|
4
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class Boolean(ValueObject[bool]):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
1
|
+
from sindripy.value_objects.decorators.validation import validate
|
|
2
|
+
from sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
|
|
3
|
+
from sindripy.value_objects.errors.required_value_error import RequiredValueError
|
|
4
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class Float(ValueObject[float]):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
1
|
+
from sindripy.value_objects.decorators.validation import validate
|
|
2
|
+
from sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
|
|
3
|
+
from sindripy.value_objects.errors.required_value_error import RequiredValueError
|
|
4
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class Integer(ValueObject[int]):
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from collections.abc import Iterator
|
|
2
2
|
from typing import Any, Generic, TypeVar, get_args, get_origin
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
4
|
+
from sindripy._compat import Self, override
|
|
5
|
+
from sindripy.value_objects.decorators.validation import validate
|
|
6
|
+
from sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
|
|
7
|
+
from sindripy.value_objects.errors.required_value_error import RequiredValueError
|
|
8
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
9
9
|
|
|
10
10
|
T = TypeVar("T")
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
1
|
+
from sindripy.value_objects.decorators.validation import validate
|
|
2
|
+
from sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
|
|
3
|
+
from sindripy.value_objects.errors.required_value_error import RequiredValueError
|
|
4
|
+
from sindripy.value_objects.value_object import ValueObject
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class String(ValueObject[str]):
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"""Public facade for object mother helpers.
|
|
2
|
-
|
|
3
|
-
This module re-exports the available object mother implementations so
|
|
4
|
-
that projects using this library can import them from
|
|
5
|
-
``sindripy.mothers`` directly.
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from src.sindripy.mothers.identifiers.string_uuid_primitives_mother import StringUuidPrimitivesMother
|
|
9
|
-
from src.sindripy.mothers.object_mother import ObjectMother
|
|
10
|
-
from src.sindripy.mothers.primitives.boolean_primitives_mother import BooleanPrimitivesMother
|
|
11
|
-
from src.sindripy.mothers.primitives.float_primitives_mother import FloatPrimitivesMother
|
|
12
|
-
from src.sindripy.mothers.primitives.integer_primitives_mother import IntegerPrimitivesMother
|
|
13
|
-
from src.sindripy.mothers.primitives.list_primitives_mother import ListPrimitivesMother
|
|
14
|
-
from src.sindripy.mothers.primitives.string_primitives_mother import StringPrimitivesMother
|
|
15
|
-
|
|
16
|
-
__all__ = [
|
|
17
|
-
"ObjectMother",
|
|
18
|
-
"BooleanPrimitivesMother",
|
|
19
|
-
"FloatPrimitivesMother",
|
|
20
|
-
"IntegerPrimitivesMother",
|
|
21
|
-
"ListPrimitivesMother",
|
|
22
|
-
"StringPrimitivesMother",
|
|
23
|
-
"StringUuidPrimitivesMother",
|
|
24
|
-
]
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"""Public facade for value object implementations.
|
|
2
|
-
|
|
3
|
-
This module re-exports the most common value objects so they can be
|
|
4
|
-
imported directly from :mod:`sindripy.value_object`.
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from src.sindripy.value_objects.aggregate import Aggregate
|
|
8
|
-
from src.sindripy.value_objects.decorators.validation import validate
|
|
9
|
-
from src.sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
|
|
10
|
-
from src.sindripy.value_objects.identifiers.string_uuid import StringUuid
|
|
11
|
-
from src.sindripy.value_objects.primitives.boolean import Boolean
|
|
12
|
-
from src.sindripy.value_objects.primitives.float import Float
|
|
13
|
-
from src.sindripy.value_objects.primitives.integer import Integer
|
|
14
|
-
from src.sindripy.value_objects.primitives.list import List
|
|
15
|
-
from src.sindripy.value_objects.primitives.string import String
|
|
16
|
-
from src.sindripy.value_objects.value_object import ValueObject
|
|
17
|
-
|
|
18
|
-
__all__ = [
|
|
19
|
-
"Aggregate",
|
|
20
|
-
"validate",
|
|
21
|
-
"StringUuid",
|
|
22
|
-
"Boolean",
|
|
23
|
-
"Float",
|
|
24
|
-
"Integer",
|
|
25
|
-
"List",
|
|
26
|
-
"String",
|
|
27
|
-
"ValueObject",
|
|
28
|
-
"SindriValidationError",
|
|
29
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sindripy-0.1.2 → sindripy-0.1.3}/src/sindripy/value_objects/errors/sindri_validation_error.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|