cs-models 0.0.637__py3-none-any.whl → 0.0.638__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.
- cs_models/resources/B3CRSS/__init__.py +0 -0
- cs_models/resources/B3CRSS/models.py +25 -0
- cs_models/resources/B3CRSS/schemas.py +14 -0
- {cs_models-0.0.637.dist-info → cs_models-0.0.638.dist-info}/METADATA +1 -1
- {cs_models-0.0.637.dist-info → cs_models-0.0.638.dist-info}/RECORD +7 -4
- {cs_models-0.0.637.dist-info → cs_models-0.0.638.dist-info}/WHEEL +0 -0
- {cs_models-0.0.637.dist-info → cs_models-0.0.638.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
String,
|
|
6
|
+
Integer,
|
|
7
|
+
DateTime,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
from ...database import Base
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class B3CRSSModel(Base):
|
|
14
|
+
__tablename__ = "b3c_rss"
|
|
15
|
+
|
|
16
|
+
id = Column(Integer, primary_key=True)
|
|
17
|
+
article_id = Column(String(128), nullable=False, index=True)
|
|
18
|
+
article_date = Column(DateTime, nullable=False)
|
|
19
|
+
updated_at = Column(
|
|
20
|
+
DateTime,
|
|
21
|
+
nullable=False,
|
|
22
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
23
|
+
default=lambda: datetime.utcnow(),
|
|
24
|
+
onupdate=lambda: datetime.utcnow(),
|
|
25
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class B3CRSSResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
article_id = fields.String(required=True)
|
|
13
|
+
article_date = fields.DateTime(required=True)
|
|
14
|
+
updated_at = fields.DateTime()
|
|
@@ -52,6 +52,9 @@ cs_models/resources/AssistantSession/schemas.py,sha256=v4orSJwiNDzmcjdUHoW9CZpkS
|
|
|
52
52
|
cs_models/resources/AssistantUserQuery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
53
53
|
cs_models/resources/AssistantUserQuery/models.py,sha256=fCM9N65laJanb_hVzFgTMzVLV09KuqSQKa27RuHhnMU,1753
|
|
54
54
|
cs_models/resources/AssistantUserQuery/schemas.py,sha256=dGAHxkNxY7v8iD0EtKi_XJrIBF67ie-r7j6wNnAewP0,716
|
|
55
|
+
cs_models/resources/B3CRSS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
|
+
cs_models/resources/B3CRSS/models.py,sha256=rl538IgpQSzZu0FzpfxbDDCRWGkAGTpqcw9or5tMOg8,629
|
|
57
|
+
cs_models/resources/B3CRSS/schemas.py,sha256=mArXYiVl15oEFaz9RLQ6WN68ueI0ec83NeLrNnP-sMM,346
|
|
55
58
|
cs_models/resources/BatchJobStatus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
59
|
cs_models/resources/BatchJobStatus/models.py,sha256=gPXjlPRUjuMogwPcwKe-JP2P5GV3V_AcaP4UPJXsW9Y,1117
|
|
57
60
|
cs_models/resources/BatchJobStatus/schemas.py,sha256=FbUFFFCHZjYj6fF0QI9E2uK4NVR3UxZFSwWRSlPK0gw,679
|
|
@@ -1042,7 +1045,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1042
1045
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1043
1046
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1044
1047
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1045
|
-
cs_models-0.0.
|
|
1046
|
-
cs_models-0.0.
|
|
1047
|
-
cs_models-0.0.
|
|
1048
|
-
cs_models-0.0.
|
|
1048
|
+
cs_models-0.0.638.dist-info/METADATA,sha256=eQZImFeS2y18papgqqLWsjQ6u0F6gJGWPJ92umk3S2g,792
|
|
1049
|
+
cs_models-0.0.638.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1050
|
+
cs_models-0.0.638.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1051
|
+
cs_models-0.0.638.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|