cs-models 0.0.649__py3-none-any.whl → 0.0.650__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,33 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ Text,
8
+ Boolean,
9
+ String,
10
+ )
11
+
12
+ from ...database import Base
13
+
14
+
15
+ class ExplorerColumnModel(Base):
16
+ __tablename__ = "explorer_columns"
17
+
18
+ id = Column(Integer, primary_key=True)
19
+ artifact_id = Column(
20
+ String(50),
21
+ nullable=False,
22
+ index=True
23
+ )
24
+ prompt = Column(String(128), nullable=False, index=True)
25
+ answer = Column(Text, nullable=True)
26
+ is_completed = Column(Boolean, nullable=True)
27
+ updated_at = Column(
28
+ DateTime,
29
+ nullable=False,
30
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
31
+ default=lambda: datetime.utcnow(),
32
+ onupdate=lambda: datetime.utcnow(),
33
+ )
@@ -0,0 +1,16 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class ExplorerColumnResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ artifact_id = fields.String(required=True)
13
+ prompt = fields.String(required=True)
14
+ answer = fields.String(allow_none=True)
15
+ is_completed = fields.Boolean(allow_none=True)
16
+ updated_at = fields.DateTime()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.649
3
+ Version: 0.0.650
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -283,6 +283,9 @@ cs_models/resources/EmptyCompany/schemas.py,sha256=U6fjKheQMxosVsS14C3Vz7zVNHHso
283
283
  cs_models/resources/Event/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
284
284
  cs_models/resources/Event/models.py,sha256=wkRLT1tkFjXId8Ga1BiThwflXK5lRaCFqEf_guIwWM0,1227
285
285
  cs_models/resources/Event/schemas.py,sha256=63C0x7i-JUu5Q0aAZeNBd1O0_XZ7cahM3KTpkLCbCM8,1690
286
+ cs_models/resources/ExplorerColumn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
287
+ cs_models/resources/ExplorerColumn/models.py,sha256=t448jSUDUNpN3MPlA1-nf2H-K9KVfMkKIV7ruB-DSks,799
288
+ cs_models/resources/ExplorerColumn/schemas.py,sha256=0qsNjOCkilZNa_Ly083dzp43h72MrAFM39dp2s8CnmY,442
286
289
  cs_models/resources/FDALabel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
287
290
  cs_models/resources/FDALabel/models.py,sha256=eocy19GuoNjFZwLXvNuES3sLrNUnHo3kAC7A4k5hxxs,1123
288
291
  cs_models/resources/FDALabel/schemas.py,sha256=ZIDxBVsJ-Ha7ao7EVbfcGT2cukn73fy4ZiUhMaXWKk8,693
@@ -1063,7 +1066,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1063
1066
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1064
1067
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1065
1068
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1066
- cs_models-0.0.649.dist-info/METADATA,sha256=EYlap9wvn37UbYKMudIu0pRzNWvahUfexijr0wGAOpE,792
1067
- cs_models-0.0.649.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1068
- cs_models-0.0.649.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1069
- cs_models-0.0.649.dist-info/RECORD,,
1069
+ cs_models-0.0.650.dist-info/METADATA,sha256=dw_g1zQeB-4UtBhdZK9OW9P5jxq7ibHxaVW_X6uENqg,792
1070
+ cs_models-0.0.650.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1071
+ cs_models-0.0.650.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1072
+ cs_models-0.0.650.dist-info/RECORD,,