cs-models 0.0.557__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.

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)
@@ -27,6 +27,7 @@ class LicensingCollabOutboxModel(Base):
27
27
  sentences = Column(Text, nullable=True)
28
28
  reviewed = Column(Boolean, nullable=True)
29
29
  historical = Column(Boolean, nullable=True)
30
+ llm_output = Column(Text, nullable=True)
30
31
  updated_at = Column(
31
32
  DateTime,
32
33
  nullable=False,
@@ -17,6 +17,7 @@ class LicensingCollabOutboxResourceSchema(Schema):
17
17
  milestones = fields.String(allow_none=True)
18
18
  sentences = fields.String(allow_none=True)
19
19
  reviewed = fields.String(allow_none=True)
20
+ llm_output = fields.String(allow_none=True)
20
21
  historical = fields.Boolean(allow_none=True)
21
22
  updated_at = fields.DateTime()
22
23
 
@@ -6,6 +6,8 @@ from sqlalchemy import (
6
6
  DateTime,
7
7
  ForeignKey,
8
8
  Text,
9
+ String,
10
+ Boolean,
9
11
  )
10
12
 
11
13
  from ...database import Base
@@ -21,6 +23,8 @@ class LicensingCollabSentenceModel(Base):
21
23
  nullable=False,
22
24
  )
23
25
  text = Column(Text, nullable=False, index=True)
26
+ type = Column(String(50), nullable=True)
27
+ llm_output = Column(Boolean, nullable=True)
24
28
  updated_at = Column(
25
29
  DateTime,
26
30
  nullable=False,
@@ -11,4 +11,6 @@ class LicensingCollabSentenceResourceSchema(Schema):
11
11
  id = fields.Integer(dump_only=True)
12
12
  licensing_collab_id = fields.Integer(required=True)
13
13
  text = fields.String(required=True, validate=not_blank)
14
+ type = fields.String(allow_none=True)
15
+ llm_output = fields.Boolean(allow_none=True)
14
16
  updated_at = fields.DateTime()
@@ -24,6 +24,7 @@ class MergerOutboxModel(Base):
24
24
  counsels = Column(Text, nullable=True)
25
25
  sentences = Column(Text, nullable=True)
26
26
  reviewed = Column(Boolean, nullable=True)
27
+ llm_output = Column(Text, nullable=True)
27
28
  historical = Column(Boolean, nullable=True)
28
29
  updated_at = Column(
29
30
  DateTime,
@@ -17,6 +17,7 @@ class MergerOutboxResourceSchema(Schema):
17
17
  counsels = fields.String(allow_none=True)
18
18
  sentences = fields.String(allow_none=True)
19
19
  reviewed = fields.Boolean(allow_none=True)
20
+ llm_output = fields.String(allow_none=True)
20
21
  historical = fields.Boolean(allow_none=True)
21
22
  updated_at = fields.DateTime()
22
23
 
@@ -6,6 +6,8 @@ from sqlalchemy import (
6
6
  DateTime,
7
7
  ForeignKey,
8
8
  Text,
9
+ String,
10
+ Boolean,
9
11
  )
10
12
 
11
13
  from ...database import Base
@@ -21,6 +23,8 @@ class MergerSentenceModel(Base):
21
23
  nullable=False,
22
24
  )
23
25
  text = Column(Text, nullable=False, index=True)
26
+ type = Column(String(50), nullable=True)
27
+ llm_output = Column(Boolean, nullable=True)
24
28
  updated_at = Column(
25
29
  DateTime,
26
30
  nullable=False,
@@ -11,4 +11,6 @@ class MergerSentenceResourceSchema(Schema):
11
11
  id = fields.Integer(dump_only=True)
12
12
  merger_id = fields.Integer(required=True)
13
13
  text = fields.String(required=True, validate=not_blank)
14
+ type = fields.String(allow_none=True)
15
+ llm_output = fields.Boolean(allow_none=True)
14
16
  updated_at = fields.DateTime()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.557
3
+ Version: 0.0.559
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -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
@@ -407,11 +410,11 @@ cs_models/resources/LicensingCollabIntervention/__init__.py,sha256=47DEQpj8HBSa-
407
410
  cs_models/resources/LicensingCollabIntervention/models.py,sha256=OY3vPH4yILb7LqihPJgLeYy4UFw3EvJKAj7122Wn-zs,983
408
411
  cs_models/resources/LicensingCollabIntervention/schemas.py,sha256=smLz2PTr1io9HZNXEFi5xUvfxPF0kQ3fjPxPE_x9rcU,514
409
412
  cs_models/resources/LicensingCollabOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
410
- cs_models/resources/LicensingCollabOutbox/models.py,sha256=XoMcZRFxO7wo5HNeEaCwm5b2iG1v3NasYUXXrvCPxvg,944
411
- cs_models/resources/LicensingCollabOutbox/schemas.py,sha256=-_lK1fQkBOyutsuHCEoeQD4_ZYsnyrXLrQnxwMuosmQ,917
413
+ cs_models/resources/LicensingCollabOutbox/models.py,sha256=eWqwjohRqVMmji6slV4yHIgKqHAOobNT8od4VmojCjc,989
414
+ cs_models/resources/LicensingCollabOutbox/schemas.py,sha256=_4PMGxusxfonGUEHut-K2xK3ojEEZmFelhq-fEHwPjA,965
412
415
  cs_models/resources/LicensingCollabSentences/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
413
- cs_models/resources/LicensingCollabSentences/models.py,sha256=kyEPzhSZOTsxxHe-oo3kY-kbCQQ-TQkLjhAuWZe578I,738
414
- cs_models/resources/LicensingCollabSentences/schemas.py,sha256=WbhqJTlPOqQaLpvOoURBzNzZSt4xXTKPBVVE30xN5PY,383
416
+ cs_models/resources/LicensingCollabSentences/models.py,sha256=mcyLYLnJxTbMIt5i6EFLQpO_0JBofArE2_yRMrIvmXg,856
417
+ cs_models/resources/LicensingCollabSentences/schemas.py,sha256=3efKLBydShsZiZMg-5a8BJSSyjr68mEOXFvoie4FwzM,474
415
418
  cs_models/resources/LicensingCollabTarget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
416
419
  cs_models/resources/LicensingCollabTarget/models.py,sha256=AofVwKxsGt6kf0YGQqY3r3I1GVrbSh5lHV1QUUfiB7c,959
417
420
  cs_models/resources/LicensingCollabTarget/schemas.py,sha256=jijLVNnVxOMWBMYfij-8-ZLz8m8A51cOn_U37Xqkg2Y,502
@@ -438,14 +441,14 @@ cs_models/resources/MergerAmount/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
438
441
  cs_models/resources/MergerAmount/models.py,sha256=fwHnW6Z_vR09UBVra0aZG9JVxmr5FPMDth7GUXMaCsg,811
439
442
  cs_models/resources/MergerAmount/schemas.py,sha256=Z7WwpVIZZbday1cWZQ3C0kJOJ-gvuW7HWD1_4x9uB0c,432
440
443
  cs_models/resources/MergerOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
441
- cs_models/resources/MergerOutbox/models.py,sha256=limwmXZZebF0mVM3XM56LDdcs2tHvUheHJy_JTtSb0g,991
442
- cs_models/resources/MergerOutbox/schemas.py,sha256=tAamWJF3aLpV_3NHAAasqsU9opsZSKCRA7K1LT33yCM,682
444
+ cs_models/resources/MergerOutbox/models.py,sha256=X5M3rgeygH0CBlpxrR8-VZKvWZEOLThs2E_ZyfroGFo,1036
445
+ cs_models/resources/MergerOutbox/schemas.py,sha256=Xr2GyTB5NXGwJ559nl8CuVl2hBhV_Xgcbf5YDqJu1O4,730
443
446
  cs_models/resources/MergerOutboxCompany/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
444
447
  cs_models/resources/MergerOutboxCompany/models.py,sha256=seR4a8OL9wNXmuOijOEeZdsqurQRWablFkpH3RybwPs,906
445
448
  cs_models/resources/MergerOutboxCompany/schemas.py,sha256=PpXAGPuk_tHR9ydmFEPr4euZdX3ZIzE4EUQGZRfTTZ8,1103
446
449
  cs_models/resources/MergerSentences/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
447
- cs_models/resources/MergerSentences/models.py,sha256=s-LJhgm8PeN_OeAE0McHt3fnoFfmq2lCRyyS7OZkX5o,700
448
- cs_models/resources/MergerSentences/schemas.py,sha256=qX9dteAmspe2UHZdxLNCYTma05LK0sSvZTx2vOMUeWU,364
450
+ cs_models/resources/MergerSentences/models.py,sha256=I3q9pP9Nakzs9nqqgqDt-6HMql-pRHeTZ2JpK5pfvvA,818
451
+ cs_models/resources/MergerSentences/schemas.py,sha256=WmTpRQY42wTwG2Flk-LFJ7uukqYEcYyCj6hv-49Jmwk,455
449
452
  cs_models/resources/Modality/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
450
453
  cs_models/resources/Modality/models.py,sha256=aYM_svz7MwYQizydXMvzn_fPjy8lTFi5ExbgfJK4z5s,447
451
454
  cs_models/resources/Modality/schemas.py,sha256=WdDFJ6C26XGN1eu9LdkbGBzlEDUSlvuyo0sPXdfOg_Q,296
@@ -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.557.dist-info/METADATA,sha256=9qouyGVlttrNsigbbIGu8eDV0tTu2RKlmSIdYUSP_bI,791
911
- cs_models-0.0.557.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
912
- cs_models-0.0.557.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
913
- cs_models-0.0.557.dist-info/RECORD,,
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,,