cs-models 0.0.647__py3-none-any.whl → 0.0.649__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,29 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ String,
7
+ DateTime,
8
+ Text,
9
+ Boolean,
10
+ )
11
+
12
+ from ...database import Base
13
+
14
+
15
+ class DocMarkdownTableModel(Base):
16
+ __tablename__ = "doc_markdown_tables"
17
+
18
+ id = Column(Integer, primary_key=True)
19
+ artifact_id = Column(String(50), nullable=False, index=True)
20
+ markdown_table = Column(Text, nullable=False)
21
+ markdown_table_description = Column(Text, nullable=True)
22
+ has_table_description = Column(Boolean, nullable=True)
23
+ updated_at = Column(
24
+ DateTime,
25
+ nullable=False,
26
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
27
+ default=lambda: datetime.utcnow(),
28
+ onupdate=lambda: datetime.utcnow(),
29
+ )
@@ -0,0 +1,16 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class DocMarkdownTableResourceSchema(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
+ markdown_table = fields.Integer(required=True)
14
+ markdown_table_description = fields.String(allow_none=True)
15
+ has_table_description = fields.Boolean(allow_none=True)
16
+ updated_at = fields.DateTime(dump_only=True)
File without changes
@@ -0,0 +1,33 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ ForeignKey,
8
+ Boolean,
9
+ String,
10
+ )
11
+
12
+ from ...database import Base
13
+
14
+
15
+ class PubmedVectorIndexModel(Base):
16
+ __tablename__ = "pubmed_vector_index"
17
+
18
+ id = Column(Integer, primary_key=True)
19
+ pubmed_id = Column(
20
+ Integer,
21
+ ForeignKey('pubmed.id'),
22
+ nullable=False,
23
+ )
24
+ embedding_created = Column(Boolean, nullable=True)
25
+ embedding_s3_key = Column(String(128), nullable=True)
26
+ vector_indexed = 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 PubmedVectorIndexResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ pubmed_id = fields.Integer(required=True)
13
+ embedding_created = fields.Boolean(allow_none=True)
14
+ embedding_s3_key = fields.String(allow_none=True)
15
+ vector_indexed = 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.647
3
+ Version: 0.0.649
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -254,6 +254,9 @@ cs_models/resources/DocChunk/schemas.py,sha256=fDcASRgqpes9lM5hWd09QXl8dl5bzUrhw
254
254
  cs_models/resources/DocEmbedding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
255
255
  cs_models/resources/DocEmbedding/models.py,sha256=8nkbhp2GE-sZjtg6t6ABHGpRhw5W30BSB-77VvZ8h8k,760
256
256
  cs_models/resources/DocEmbedding/schemas.py,sha256=jaQCgkk-hj2HEaadOrRzkZqtwbuqw8bniZ-Vp85o88c,448
257
+ cs_models/resources/DocMarkdownTable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
258
+ cs_models/resources/DocMarkdownTable/models.py,sha256=Ft52Xt1RudmUrypSldJjgfX9OoztLg2wI_J7baROyOc,792
259
+ cs_models/resources/DocMarkdownTable/schemas.py,sha256=cp4S3HSPFAlsjKfIMIfC5c_jwVOrwd-2I1U2PLvASeg,496
257
260
  cs_models/resources/DocMarkdownText/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
258
261
  cs_models/resources/DocMarkdownText/models.py,sha256=BQqvn8G8F0SeyY3R_p6EmlBTbWStWYEKKIMP8dB9b84,691
259
262
  cs_models/resources/DocMarkdownText/schemas.py,sha256=k5URZhG-0BHpWZehV11LKpyMAkBcAFghIYpzOLISBe0,417
@@ -814,6 +817,9 @@ cs_models/resources/PubmedTarget/schemas.py,sha256=fY6t6JwzSgc95WVPXJUKJz5kYNZoL
814
817
  cs_models/resources/PubmedUpdateLedger/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
815
818
  cs_models/resources/PubmedUpdateLedger/models.py,sha256=3roSR67RZbpxo5sQ-ZSfYItHInrJaT1lMbSKr95JjOw,744
816
819
  cs_models/resources/PubmedUpdateLedger/schemas.py,sha256=rlXKvQNfcBUjcsYZtxbd6xBrAQslNHD5lfaLKpL2rvw,445
820
+ cs_models/resources/PubmedVectorIndex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
821
+ cs_models/resources/PubmedVectorIndex/models.py,sha256=PaCcSubMQijFEm7haiPT13-KMyz4fR0ConRUW1f1dzg,833
822
+ cs_models/resources/PubmedVectorIndex/schemas.py,sha256=U1SFhceJoe2MypkoHp78-Gz__yg4B6F6wvCyMpmTfYk,470
817
823
  cs_models/resources/PurpleBookPatent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
818
824
  cs_models/resources/PurpleBookPatent/models.py,sha256=PJ8xqjt8_OU75YjU9E1KMzyRFoW32K9izfu7LdeXZ-o,947
819
825
  cs_models/resources/PurpleBookPatent/schemas.py,sha256=x2oFaUPqXCJO0RxD-BOlaLAqFtNmZLKd1kiMo7jIXJU,573
@@ -1057,7 +1063,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1057
1063
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1058
1064
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1059
1065
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1060
- cs_models-0.0.647.dist-info/METADATA,sha256=pJFTgrM0aak2TF5WP5P-0BS1ohz3QroGMFHS3E_ecy0,792
1061
- cs_models-0.0.647.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1062
- cs_models-0.0.647.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1063
- cs_models-0.0.647.dist-info/RECORD,,
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,,