cs-models 0.0.558__py3-none-any.whl → 0.0.559__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/LLMQueue/__init__.py +0 -0
- cs_models/resources/LLMQueue/models.py +38 -0
- cs_models/resources/LLMQueue/schemas.py +20 -0
- {cs_models-0.0.558.dist-info → cs_models-0.0.559.dist-info}/METADATA +1 -1
- {cs_models-0.0.558.dist-info → cs_models-0.0.559.dist-info}/RECORD +7 -4
- {cs_models-0.0.558.dist-info → cs_models-0.0.559.dist-info}/WHEEL +0 -0
- {cs_models-0.0.558.dist-info → cs_models-0.0.559.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from sqlalchemy import (
|
|
2
|
+
Column,
|
|
3
|
+
Integer,
|
|
4
|
+
DateTime,
|
|
5
|
+
Boolean,
|
|
6
|
+
String,
|
|
7
|
+
Text,
|
|
8
|
+
)
|
|
9
|
+
from datetime import datetime
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class LLMQueueModel(Base):
|
|
15
|
+
__tablename__ = 'llm_queue'
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
source_type = Column(String(50), nullable=False)
|
|
19
|
+
source_id = Column(
|
|
20
|
+
Integer,
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
llm_task_type = Column(String(50), nullable=False)
|
|
24
|
+
processed = Column(
|
|
25
|
+
Boolean,
|
|
26
|
+
nullable=True,
|
|
27
|
+
)
|
|
28
|
+
error = Column(Text, nullable=True)
|
|
29
|
+
submitted = Column(Boolean, nullable=True)
|
|
30
|
+
submitted_date = Column(DateTime, nullable=True)
|
|
31
|
+
historical = Column(Boolean, nullable=True)
|
|
32
|
+
updated_at = Column(
|
|
33
|
+
DateTime,
|
|
34
|
+
nullable=False,
|
|
35
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
36
|
+
default=lambda: datetime.utcnow(),
|
|
37
|
+
onupdate=lambda: datetime.utcnow(),
|
|
38
|
+
)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class LLMQueueResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
source_type = fields.String(required=True)
|
|
13
|
+
source_id = fields.Integer(required=True)
|
|
14
|
+
llm_task_type = fields.String(required=True)
|
|
15
|
+
processed = fields.Boolean(allow_none=True)
|
|
16
|
+
error = fields.String(allow_none=True)
|
|
17
|
+
submitted = fields.Boolean(allow_none=True)
|
|
18
|
+
submitted_date = fields.DateTime(allow_none=True)
|
|
19
|
+
historical = fields.Boolean(allow_none=True)
|
|
20
|
+
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -391,6 +391,9 @@ cs_models/resources/InvestorBucket/schemas.py,sha256=gwPUdJtWWi9-BliGkBuVu3QVAG0
|
|
|
391
391
|
cs_models/resources/LLMCache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
392
392
|
cs_models/resources/LLMCache/models.py,sha256=Std5BPOsMFvGArvzIbIs5Mscwg1vtsuaTlTJbDzIC34,776
|
|
393
393
|
cs_models/resources/LLMCache/schemas.py,sha256=7RTxC4ZqNyd3c2r_NqbG-d6QoIaOMS6U4-Bcw7py4pE,483
|
|
394
|
+
cs_models/resources/LLMQueue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
395
|
+
cs_models/resources/LLMQueue/models.py,sha256=zlnidRfeLOYBrqLkNAeerdMb3b_Nh2_qWJ18W-VleUU,975
|
|
396
|
+
cs_models/resources/LLMQueue/schemas.py,sha256=k7J-38xB4ENk9kMz7f3lUXPSNbkgBWOn64iYpGnQYok,650
|
|
394
397
|
cs_models/resources/LatestPipelineProduct/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
395
398
|
cs_models/resources/LatestPipelineProduct/models.py,sha256=UZKXNTaDpAsr13miUx_lHkrwhbTYehpcB0TwLgAz--k,988
|
|
396
399
|
cs_models/resources/LatestPipelineProduct/schemas.py,sha256=_yTbddbRov58yE8MdiZk4_VBK92EYQU9VXPUMw7bf18,1476
|
|
@@ -907,7 +910,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
907
910
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
908
911
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
909
912
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
910
|
-
cs_models-0.0.
|
|
911
|
-
cs_models-0.0.
|
|
912
|
-
cs_models-0.0.
|
|
913
|
-
cs_models-0.0.
|
|
913
|
+
cs_models-0.0.559.dist-info/METADATA,sha256=IRTirUNaK5jNaoZEvzD_aon8dJpIT8WEB6U7hNpsEXk,791
|
|
914
|
+
cs_models-0.0.559.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
915
|
+
cs_models-0.0.559.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
916
|
+
cs_models-0.0.559.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|