sindripy 0.1.2__py3-none-any.whl → 0.1.3__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 sindripy might be problematic. Click here for more details.

sindripy/__init__.py CHANGED
@@ -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 src.sindripy import mothers, value_objects
8
+ from sindripy import mothers, value_objects
9
9
 
10
10
  __all__ = ["mothers", "value_objects"]
11
- __version__ = "0.1.2"
11
+ __version__ = "0.1.3"
@@ -5,13 +5,13 @@ that projects using this library can import them from
5
5
  ``sindripy.mothers`` directly.
6
6
  """
7
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
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
15
 
16
16
  __all__ = [
17
17
  "ObjectMother",
@@ -1,4 +1,4 @@
1
- from src.sindripy.mothers.object_mother import ObjectMother
1
+ from sindripy.mothers.object_mother import ObjectMother
2
2
 
3
3
 
4
4
  class StringUuidPrimitivesMother(ObjectMother):
@@ -1,4 +1,4 @@
1
- from src.sindripy.mothers.object_mother import ObjectMother
1
+ from sindripy.mothers.object_mother import ObjectMother
2
2
 
3
3
 
4
4
  class BooleanPrimitivesMother(ObjectMother):
@@ -1,4 +1,4 @@
1
- from src.sindripy.mothers.object_mother import ObjectMother
1
+ from sindripy.mothers.object_mother import ObjectMother
2
2
 
3
3
 
4
4
  class FloatPrimitivesMother(ObjectMother):
@@ -1,4 +1,4 @@
1
- from src.sindripy.mothers.object_mother import ObjectMother
1
+ from sindripy.mothers.object_mother import ObjectMother
2
2
 
3
3
 
4
4
  class IntegerPrimitivesMother(ObjectMother):
@@ -1,4 +1,4 @@
1
- from src.sindripy.mothers.object_mother import ObjectMother
1
+ from sindripy.mothers.object_mother import ObjectMother
2
2
 
3
3
 
4
4
  class ListPrimitivesMother(ObjectMother):
@@ -1,4 +1,4 @@
1
- from src.sindripy.mothers.object_mother import ObjectMother
1
+ from sindripy.mothers.object_mother import ObjectMother
2
2
 
3
3
 
4
4
  class StringPrimitivesMother(ObjectMother):
@@ -4,16 +4,16 @@ This module re-exports the most common value objects so they can be
4
4
  imported directly from :mod:`sindripy.value_object`.
5
5
  """
6
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
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
17
 
18
18
  __all__ = [
19
19
  "Aggregate",
@@ -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 src.sindripy._compat import Self, override
7
- from src.sindripy.value_objects.value_object import ValueObject
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,6 +1,6 @@
1
1
  from typing import Any, TypeVar
2
2
 
3
- from src.sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
3
+ from sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
4
4
 
5
5
  T = TypeVar("T")
6
6
 
@@ -1,4 +1,4 @@
1
- from src.sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
1
+ from sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
2
2
 
3
3
 
4
4
  class InvalidIdFormatError(SindriValidationError):
@@ -1,4 +1,4 @@
1
- from src.sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
1
+ from sindripy.value_objects.errors.sindri_validation_error import SindriValidationError
2
2
 
3
3
 
4
4
  class RequiredValueError(SindriValidationError):
@@ -1,10 +1,10 @@
1
1
  from uuid import UUID
2
2
 
3
- from src.sindripy.value_objects.decorators.validation import validate
4
- from src.sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
5
- from src.sindripy.value_objects.errors.invalid_id_format_error import InvalidIdFormatError
6
- from src.sindripy.value_objects.errors.required_value_error import RequiredValueError
7
- from src.sindripy.value_objects.value_object import ValueObject
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 src.sindripy.value_objects.decorators.validation import validate
2
- from src.sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
3
- from src.sindripy.value_objects.errors.required_value_error import RequiredValueError
4
- from src.sindripy.value_objects.value_object import ValueObject
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 src.sindripy.value_objects.decorators.validation import validate
2
- from src.sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
3
- from src.sindripy.value_objects.errors.required_value_error import RequiredValueError
4
- from src.sindripy.value_objects.value_object import ValueObject
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 src.sindripy.value_objects.decorators.validation import validate
2
- from src.sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
3
- from src.sindripy.value_objects.errors.required_value_error import RequiredValueError
4
- from src.sindripy.value_objects.value_object import ValueObject
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 src.sindripy._compat import Self, override
5
- from src.sindripy.value_objects.decorators.validation import validate
6
- from src.sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
7
- from src.sindripy.value_objects.errors.required_value_error import RequiredValueError
8
- from src.sindripy.value_objects.value_object import ValueObject
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 src.sindripy.value_objects.decorators.validation import validate
2
- from src.sindripy.value_objects.errors.incorrect_value_type_error import IncorrectValueTypeError
3
- from src.sindripy.value_objects.errors.required_value_error import RequiredValueError
4
- from src.sindripy.value_objects.value_object import ValueObject
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]):
@@ -2,7 +2,7 @@ from abc import ABC
2
2
  from collections.abc import Callable
3
3
  from typing import Generic, TypeVar
4
4
 
5
- from src.sindripy._compat import Self, override
5
+ from sindripy._compat import Self, override
6
6
 
7
7
  T = TypeVar("T")
8
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sindripy
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Value Object and Object Mother patterns implementation for Python
5
5
  Author: dimanu-py
6
6
  Author-email: dimanu-py <dimanu.py@gmail.com>
@@ -0,0 +1,34 @@
1
+ sindripy/__init__.py,sha256=lbzAwLH4UZ4joXOaXsDcLd2kQzjsBXa8_t_ZYQhwLd4,326
2
+ sindripy/_compat.py,sha256=_IWn8-egEjTmH30eWC4RK0uzQAwCirBhbNFegg1-iwo,334
3
+ sindripy/mothers/__init__.py,sha256=8HdYPxht69Z-FcqpJsE6qMhePgGRR9UsMp_kh8bcG4Y,1015
4
+ sindripy/mothers/identifiers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ sindripy/mothers/identifiers/string_uuid_primitives_mother.py,sha256=FqimG26hYH1UHNj9guDr2344O-LxDCW01q5l9KOTvfU,455
6
+ sindripy/mothers/object_mother.py,sha256=mKJh9ilL0G07icZUJ1JxfmJPzSKde0fcbWJ8wTLOwlk,194
7
+ sindripy/mothers/primitives/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ sindripy/mothers/primitives/boolean_primitives_mother.py,sha256=AORqdvXl1oQ6PT7a73aPFrRGvdU-OLShK3875EaiDxk,490
9
+ sindripy/mothers/primitives/float_primitives_mother.py,sha256=AOvNR21XMD5GLrjPDsyEHIeavFE3jbmA0PSQDUCfhJg,1052
10
+ sindripy/mothers/primitives/integer_primitives_mother.py,sha256=Z7HbJ8AbzaAx1T5PvSGNlWjI_QC328KHQD2Xxnj84YQ,1170
11
+ sindripy/mothers/primitives/list_primitives_mother.py,sha256=ksKegeSmEwRRHrqbihwIEIic2eGIb3hcq8ffmhRMozg,254
12
+ sindripy/mothers/primitives/string_primitives_mother.py,sha256=9IDVeIvd67hoFD3QzAEVDnKaVfuszWqno9kzRcLsDvg,1685
13
+ sindripy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ sindripy/value_objects/__init__.py,sha256=-GkXxyuZPBCxdZyCoGGWu4P03wLgys-uCWpy00kiHEI,998
15
+ sindripy/value_objects/aggregate.py,sha256=MJwBMs_-gUY_qSjCAM04LkitH5U6LSMm9SP5cYAcIJA,12508
16
+ sindripy/value_objects/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
+ sindripy/value_objects/decorators/validation.py,sha256=yDOtgOkdQmCFTGosVAj3P2aok5-FpNMWmGZc6PfnzNU,903
18
+ sindripy/value_objects/errors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
+ sindripy/value_objects/errors/incorrect_value_type_error.py,sha256=Lr9yJuRZQgI4dSXFuaLE9NPFhrwjWr07ONE7JMW_mNc,379
20
+ sindripy/value_objects/errors/invalid_id_format_error.py,sha256=PWhc4IJzq7jhfYE9QXvxRBEZMuwfev9puv8hE58ve4A,261
21
+ sindripy/value_objects/errors/required_value_error.py,sha256=JWZqW1SHwjWOxrzeZG03Snsk-TFBcP2dmYb-g3tH6x0,263
22
+ sindripy/value_objects/errors/sindri_validation_error.py,sha256=Nf9mpw67gpj0Gbofrzm2MNJyqhNb69uxokdtsa7CnXI,316
23
+ sindripy/value_objects/identifiers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ sindripy/value_objects/identifiers/string_uuid.py,sha256=O1sd9Ge0R88RBAeH-vc1-2jjeHzZL2x9cVlyjmbPD9E,2038
25
+ sindripy/value_objects/primitives/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ sindripy/value_objects/primitives/boolean.py,sha256=5Uthp8UlYSDBqk05eZBxDFIq51DW4HMd8u8xHv3OY2w,1521
27
+ sindripy/value_objects/primitives/float.py,sha256=fBAUOf1SaKuKHYdOw3RugJefRJOza0pNghTOOGbcI2w,1548
28
+ sindripy/value_objects/primitives/integer.py,sha256=BQVkX0mcXee8i92XoCC63-ogpmfFt9tqHBRmePh42zE,1484
29
+ sindripy/value_objects/primitives/list.py,sha256=vsq9JmnW-rVMGvJ3dHMQtKhnprpSZ9YKZxJjsk5fWGY,9545
30
+ sindripy/value_objects/primitives/string.py,sha256=VPzU8IbtBBDsomMecUCIosG7EluJ71G3tVnLuHIONh0,1494
31
+ sindripy/value_objects/value_object.py,sha256=x1GjIbZ4lgyIwPuhbeRH24qxGhzteebfb_iC0ohQw2Q,8163
32
+ sindripy-0.1.3.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
33
+ sindripy-0.1.3.dist-info/METADATA,sha256=tAr1Yw8qO_sz3uT-5rpRyA5zkGVr4obIj4gx4IBXEQU,6105
34
+ sindripy-0.1.3.dist-info/RECORD,,
@@ -1,34 +0,0 @@
1
- sindripy/__init__.py,sha256=JuUDZ1SNAjy_uAjEudM--ETM09zvLYG9l1Hd9aL0m7s,330
2
- sindripy/_compat.py,sha256=_IWn8-egEjTmH30eWC4RK0uzQAwCirBhbNFegg1-iwo,334
3
- sindripy/mothers/__init__.py,sha256=OyZPL3XJzZQ5TiKNyGmBfFZhj176gjMlLrpYDErbD8M,1043
4
- sindripy/mothers/identifiers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- sindripy/mothers/identifiers/string_uuid_primitives_mother.py,sha256=SCuBH1ZPn9tEwk3WcNFm_QoER3v-S6n4HgvfajDC-vI,459
6
- sindripy/mothers/object_mother.py,sha256=mKJh9ilL0G07icZUJ1JxfmJPzSKde0fcbWJ8wTLOwlk,194
7
- sindripy/mothers/primitives/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- sindripy/mothers/primitives/boolean_primitives_mother.py,sha256=ioxVaW3qBbLC19l-ViNrzFRlI8fs1wpIELYZqWhobys,494
9
- sindripy/mothers/primitives/float_primitives_mother.py,sha256=K5BYdDCZe8jJOHHWKVc9L2dKllin6F-oijOhugyW2Pg,1056
10
- sindripy/mothers/primitives/integer_primitives_mother.py,sha256=j7pG2m0PgxatWTaDTyWwm2vN9zFEzB4XJknVReJOaVc,1174
11
- sindripy/mothers/primitives/list_primitives_mother.py,sha256=2tbjEjvYQmW3uSttShWiO0JZkv_zI0kse08dyhPdGy8,258
12
- sindripy/mothers/primitives/string_primitives_mother.py,sha256=a7KntLnnW6hd4i661DhP3VSLZEaSha6QBa2b5jjGesY,1689
13
- sindripy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- sindripy/value_objects/__init__.py,sha256=ILNZWS74OkBOOavJWDx9QT7z8aIAzJ1usTE5coK-EBw,1038
15
- sindripy/value_objects/aggregate.py,sha256=oZaaX3ePAy0JwdcLWvbjl3EDAUkUF1P5lDyk_lDB8Sg,12516
16
- sindripy/value_objects/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- sindripy/value_objects/decorators/validation.py,sha256=yDOtgOkdQmCFTGosVAj3P2aok5-FpNMWmGZc6PfnzNU,903
18
- sindripy/value_objects/errors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- sindripy/value_objects/errors/incorrect_value_type_error.py,sha256=Wq9pLxfA4yfRm7hdyvIQSslKUZWxNABin0HPLhWfmXU,383
20
- sindripy/value_objects/errors/invalid_id_format_error.py,sha256=muQ2awpbz7hFXGJHa6GY9LK4p1SkN3fYPXj2LIgqB_g,265
21
- sindripy/value_objects/errors/required_value_error.py,sha256=ghTKxSZEXeVaGML7vuJCU41_6KySrBG5n1MS26EB8LU,267
22
- sindripy/value_objects/errors/sindri_validation_error.py,sha256=Nf9mpw67gpj0Gbofrzm2MNJyqhNb69uxokdtsa7CnXI,316
23
- sindripy/value_objects/identifiers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- sindripy/value_objects/identifiers/string_uuid.py,sha256=rkMBhhIuuFInGeCKY1ZqK3vkx-WoPzZApFJ2TmZkA30,2058
25
- sindripy/value_objects/primitives/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- sindripy/value_objects/primitives/boolean.py,sha256=iO3x6ThapXKdnw12dactFhtuG5yHhGlX2-P94C9YQc0,1537
27
- sindripy/value_objects/primitives/float.py,sha256=0C8mdqSD3HjeEqBH7Yq1dN0giJF-EuLw9hFhGUg3P7k,1564
28
- sindripy/value_objects/primitives/integer.py,sha256=sxvphjTuLfEHEQDiREhIipzscu8oDwNs3lpDalYL6w8,1500
29
- sindripy/value_objects/primitives/list.py,sha256=1i_wIRE1YVLNcc_EM3hKmNyPtx53iQX4k3KarKat450,9565
30
- sindripy/value_objects/primitives/string.py,sha256=AVqYagNp634hHyT-L_DMxcnVjseYyfB5sZ8DUjY9Xhw,1510
31
- sindripy/value_objects/value_object.py,sha256=cMUovcKjRIUcqs5hOHErlhRCLfSTs7sf9NeINR3JORQ,8167
32
- sindripy-0.1.2.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
33
- sindripy-0.1.2.dist-info/METADATA,sha256=SUzNR32KdfWl3fSKA6FfNUiu-fSjMwvVRUPctercYBc,6105
34
- sindripy-0.1.2.dist-info/RECORD,,