scruby 0.5.0__py3-none-any.whl → 0.5.1__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 scruby might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scruby
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: A fast key-value storage library.
5
5
  Project-URL: Homepage, https://github.com/kebasyaty/scruby
6
6
  Project-URL: Repository, https://github.com/kebasyaty/scruby
@@ -27,7 +27,9 @@ Classifier: Typing :: Typed
27
27
  Requires-Python: <4.0,>=3.12
28
28
  Requires-Dist: anyio>=4.10.0
29
29
  Requires-Dist: orjson>=3.11.3
30
- Requires-Dist: pydantic>=2.11.7
30
+ Requires-Dist: phonenumbers>=9.0.13
31
+ Requires-Dist: pydantic-extra-types>=2.10.5
32
+ Requires-Dist: pydantic[email]>=2.11.7
31
33
  Description-Content-Type: text/markdown
32
34
 
33
35
  <div align="center">
@@ -96,7 +98,8 @@ uv add scruby
96
98
  ```python
97
99
  import anyio
98
100
  import datetime
99
- from pydantic import BaseModel
101
+ from pydantic import BaseModel, EmailStr
102
+ from pydantic_extra_types.phone_numbers import PhoneNumber
100
103
  from scruby import Scruby, constants
101
104
 
102
105
  constants.DB_ROOT = "ScrubyDB" # By default = "ScrubyDB"
@@ -107,8 +110,8 @@ class User(BaseModel):
107
110
  first_name: str
108
111
  last_name: str
109
112
  birthday: datetime.datetime
110
- email: str
111
- phone: str
113
+ email: EmailStr
114
+ phone: PhoneNumber
112
115
 
113
116
  async def main() -> None:
114
117
  """Example."""
@@ -2,7 +2,7 @@ scruby/__init__.py,sha256=LnHBN1pIOtT89baSQoknQwYI1cy-hmN1Lo0k8o1Ms48,659
2
2
  scruby/constants.py,sha256=kwF0FIbeChBxsNxOCQhMsDEn1lakD7MIQKJ-PHYeSAo,328
3
3
  scruby/db.py,sha256=iG1D4-ncVrVysp7OXH-eZksnNacjNna4_8nUbMkWnSE,4409
4
4
  scruby/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- scruby-0.5.0.dist-info/METADATA,sha256=6V1NV3KWNRsc2Gb2cZbBQ4VsLYbIDMWkCiM9CjkJyxo,6509
6
- scruby-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- scruby-0.5.0.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
8
- scruby-0.5.0.dist-info/RECORD,,
5
+ scruby-0.5.1.dist-info/METADATA,sha256=47mNNYczCbwwTVMyJRoNIn03fQ2bnVNh8ynuVCm-P00,6678
6
+ scruby-0.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ scruby-0.5.1.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
8
+ scruby-0.5.1.dist-info/RECORD,,
File without changes