ramifice 0.8.14__py3-none-any.whl → 0.8.15__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.
ramifice/utils/errors.py CHANGED
@@ -4,7 +4,7 @@
4
4
  class RamificeException(Exception):
5
5
  """Ramifice - Root Exception for Ramifice."""
6
6
 
7
- def __init__(self, *args, **kwargs) -> None: # type: ignore[no-untyped-def] # noqa: D107
7
+ def __init__(self, *args, **kwargs) -> None: # type: ignore[no-untyped-def]# noqa: D107
8
8
  super().__init__(*args, **kwargs)
9
9
 
10
10
 
@@ -35,7 +35,7 @@ class DoesNotMatchRegexError(RamificeException):
35
35
  class NoModelsForMigrationError(RamificeException):
36
36
  """Ramifice - Exception raised if no Models for migration."""
37
37
 
38
- def __init__(self): # type: ignore[no-untyped-def] # noqa: D107
38
+ def __init__(self) -> None: # noqa: D107
39
39
  self.message = "No Models for Migration!"
40
40
  super().__init__(self.message)
41
41
 
@@ -43,7 +43,7 @@ class Migration:
43
43
  # Raise the exception if there are no models for migration.
44
44
  if len(self.model_list) == 0:
45
45
  logger.critical("No Models for Migration!")
46
- raise NoModelsForMigrationError() # type: ignore[no-untyped-call]
46
+ raise NoModelsForMigrationError()
47
47
 
48
48
  async def reset(self) -> None:
49
49
  """Ramifice - Reset the condition of the models in a super collection.
@@ -1,5 +1,12 @@
1
1
  """Ramifice - Set of mixins for Models and Fields."""
2
2
 
3
+ __all__ = (
4
+ "AddValidMixin",
5
+ "HooksMixin",
6
+ "IndexMixin",
7
+ "JsonMixin",
8
+ )
9
+
3
10
  from ramifice.utils.mixins.add_valid import AddValidMixin
4
11
  from ramifice.utils.mixins.hooks import HooksMixin
5
12
  from ramifice.utils.mixins.indexing import IndexMixin
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ramifice
3
- Version: 0.8.14
3
+ Version: 0.8.15
4
4
  Summary: ORM-pseudo-like API MongoDB for Python language.
5
5
  Project-URL: Homepage, https://github.com/kebasyaty/ramifice
6
6
  Project-URL: Documentation, https://kebasyaty.github.io/ramifice/
@@ -62,6 +62,11 @@ Description-Content-Type: text/markdown
62
62
  <a href="https://docs.astral.sh/ruff/" alt="Code style: Ruff"><img src="https://img.shields.io/badge/code%20style-Ruff-FDD835.svg" alt="Code style: Ruff"></a>
63
63
  <a href="https://github.com/kebasyaty/ramifice" alt="PyPI implementation"><img src="https://img.shields.io/pypi/implementation/ramifice" alt="PyPI implementation"></a>
64
64
  <a href="https://github.com/kebasyaty/ramifice" alt="GitHub repository"><img src="https://img.shields.io/badge/--ecebeb?logo=github&logoColor=000000" alt="GitHub repository"></a>
65
+ <br>
66
+ <a href="https://pypi.org/project/ramifice"><img src="https://img.shields.io/pypi/format/ramifice" alt="Format"></a>
67
+ <a href="https://github.com/kebasyaty/ramifice"><img src="https://img.shields.io/github/languages/top/kebasyaty/ramifice" alt="Top"></a>
68
+ <a href="https://github.com/kebasyaty/ramifice"><img src="https://img.shields.io/github/repo-size/kebasyaty/ramifice" alt="Size"></a>
69
+ <a href="https://github.com/kebasyaty/ramifice"><img src="https://img.shields.io/github/last-commit/kebasyaty/ramifice/main" alt="Last commit"></a>
65
70
  </p>
66
71
  <p align="center">
67
72
  Ramifice is built around <a href="https://pypi.org/project/pymongo/" alt="PyMongo">PyMongo</a>.
@@ -145,7 +150,7 @@ class User:
145
150
  """Model of User."""
146
151
 
147
152
  def fields(self) -> None:
148
- """For adding fields."""
153
+ """Adding fields."""
149
154
  # For custom translations.
150
155
  gettext = translations.gettext
151
156
  # ngettext = translations.ngettext
@@ -67,18 +67,18 @@ ramifice/paladins/groups/slug_group.py,sha256=QCO0ry0-E7bO9tsD4NajPMMbB0chGmuLyz
67
67
  ramifice/paladins/groups/text_group.py,sha256=2CyhZxQgFDv-uGRKIxgngB15_BfgPmhxp4N_X7WXsSQ,4538
68
68
  ramifice/utils/__init__.py,sha256=wdOon9X-38jYpgOy1qyN-u7IzbGEXXuXudnzj5xFQGI,54
69
69
  ramifice/utils/constants.py,sha256=VFvzFaOfzzhfoLMrI9nH9Dz_P5ktI8cOdqTINFHUEo4,2624
70
- ramifice/utils/errors.py,sha256=S23nvSwxkNR7W5ByE8HssQSrSfWoEY_Ftn4iOtCU68c,2977
70
+ ramifice/utils/errors.py,sha256=L_eZttzoLvv5_ukCan7vTmCbYcSbuGfOvfd4q4Cy17s,2953
71
71
  ramifice/utils/fixtures.py,sha256=R6lHvNp5hvA6Bryom2XNu3CvT-zwXpBGH8AZa3gRC1Q,3357
72
- ramifice/utils/migration.py,sha256=ZOAiv-9hJbmm5zZt69G3Y4kMGV4EyG4sDbwR0Ta0WAo,11562
72
+ ramifice/utils/migration.py,sha256=IZ3MFJD2n61uJ0Nl90Ll28GJwjUJf_2IOVbATTHDS_A,11529
73
73
  ramifice/utils/tools.py,sha256=LZyA715HnkNO7TcBu4Ia29A6Ko3n-F2BRULzIyNKt9o,3279
74
74
  ramifice/utils/translations.py,sha256=Jh0nzwcn3bhUU2TjPAQboe3_pkVyhYQYdeINyC5SQo8,4701
75
75
  ramifice/utils/unit.py,sha256=ToBeu92tzOY32fuzLdxScNeYXvGIDr0nx7yTv2DShVo,2604
76
- ramifice/utils/mixins/__init__.py,sha256=1W6HoabjN73crpzJ_rmhI10KM9C2RbPZn5Em6Gi9Aig,283
76
+ ramifice/utils/mixins/__init__.py,sha256=fTsjH8h4OGvFC4zGawLLbU2i-c2OBdPftC3A-ZT5Pbw,379
77
77
  ramifice/utils/mixins/add_valid.py,sha256=vYq4wGdpfA4iLMts7G0NvDALZBwupOScsajDFWCmmYg,472
78
78
  ramifice/utils/mixins/hooks.py,sha256=h8coNstWWHI4VwPgpjx0NWTj93-5NDAGtav0VFh-fk4,1031
79
79
  ramifice/utils/mixins/indexing.py,sha256=WVLxmkLKg-C_LHn2hq6LJuOkSr9eS-XUUvCMgK-pKYo,387
80
80
  ramifice/utils/mixins/json_converter.py,sha256=qBqFYol3Pbq1kX33EWB6FsYUL3AGSdYNtQE97HQ9jy4,1225
81
- ramifice-0.8.14.dist-info/METADATA,sha256=l8x1wfwuS1w3fEOaVN5_aQEVZufoWWkgO8yeQA_dBUc,20361
82
- ramifice-0.8.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
- ramifice-0.8.14.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
84
- ramifice-0.8.14.dist-info/RECORD,,
81
+ ramifice-0.8.15.dist-info/METADATA,sha256=vQ7R_-JH-IBtlnJYLSNYMVM0jCmS25dLfvJNOrimQdM,20928
82
+ ramifice-0.8.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
+ ramifice-0.8.15.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
84
+ ramifice-0.8.15.dist-info/RECORD,,