cs-models 0.0.796__py3-none-any.whl → 0.0.798__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 cs-models might be problematic. Click here for more details.

File without changes
@@ -0,0 +1,27 @@
1
+ from sqlalchemy import (
2
+ Column,
3
+ Integer,
4
+ String,
5
+ Text,
6
+ DateTime,
7
+ )
8
+ from datetime import datetime
9
+ from ...database import Base
10
+
11
+
12
+ class PromptIndicesModel(Base):
13
+ __tablename__ = 'prompt_indices'
14
+
15
+ id = Column(Integer, primary_key=True)
16
+ prompt_index = Column(String(128), nullable=False)
17
+ text = Column(Text, nullable=False)
18
+ metadata = Column(Text, nullable=False)
19
+ vector = Column(Text, nullable=False)
20
+ search_type = Column(String(50), nullable=True)
21
+ updated_at = Column(
22
+ DateTime,
23
+ nullable=False,
24
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
25
+ default=lambda: datetime.utcnow(),
26
+ onupdate=lambda: datetime.utcnow(),
27
+ )
@@ -0,0 +1,17 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class PromptIndicesSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ prompt_index = fields.String(required=True)
13
+ text = fields.String(required=True)
14
+ metadata = fields.String(required=True)
15
+ vector = fields.String(required=True)
16
+ search_type = fields.String(allow_none=True)
17
+ updated_at = fields.DateTime()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.796
3
+ Version: 0.0.798
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -853,6 +853,9 @@ cs_models/resources/ProceedingStage/test_proceeding_stage.py,sha256=3B1g1EZckQf9
853
853
  cs_models/resources/ProductReview/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
854
854
  cs_models/resources/ProductReview/models.py,sha256=YMSKz_F4GnPgOVIcuS1jQmAj6axzBaF6ZF6Lh_gEBlY,1504
855
855
  cs_models/resources/ProductReview/schemas.py,sha256=T03rEXc3DhqKWbg3E-cQjvbKmL23fkjC2zkLLrz7D-Y,1539
856
+ cs_models/resources/PromptIndices/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
857
+ cs_models/resources/PromptIndices/models.py,sha256=CFVeLaAJJSEjqXa9hOe4hOtcpaA9MAD3zrW8d84gB-M,767
858
+ cs_models/resources/PromptIndices/schemas.py,sha256=NQTxEftLn0cidlnoMskcc9LVtpMj6vZ6RoZmL_bYGc0,472
856
859
  cs_models/resources/Pubmed/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
857
860
  cs_models/resources/Pubmed/models.py,sha256=1eNkNLrubgkHdEkqJSbFYQgpThF9Q_YPGZ4W32PDhTI,1829
858
861
  cs_models/resources/Pubmed/schemas.py,sha256=CM4fQV6UGC9r7iJsKciSPexqBOq8H4Z_PTLryq7XTqg,1922
@@ -1291,7 +1294,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1291
1294
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1292
1295
  cs_models/utils/utils.py,sha256=BzCDk3u1np7DoJQqCZIJN4f80JNHvJoWO4qEFgolN-8,4474
1293
1296
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1294
- cs_models-0.0.796.dist-info/METADATA,sha256=AP40bUVhwzOFmHJm-VKQxc-khCnPGI-u6QjnZMdhK0w,751
1295
- cs_models-0.0.796.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1296
- cs_models-0.0.796.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1297
- cs_models-0.0.796.dist-info/RECORD,,
1297
+ cs_models-0.0.798.dist-info/METADATA,sha256=agyczq8c6kWgBADwnnkN39zhwYZtUToU_872zXNi1no,751
1298
+ cs_models-0.0.798.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1299
+ cs_models-0.0.798.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1300
+ cs_models-0.0.798.dist-info/RECORD,,