cs-models 0.0.587__py3-none-any.whl → 0.0.589__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,28 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ Float,
8
+ String
9
+ )
10
+
11
+ from ...database import Base
12
+
13
+
14
+ class JournalScoreModel(Base):
15
+ __tablename__ = "journal_scores"
16
+
17
+ id = Column(Integer, primary_key=True)
18
+ isin = Column(String(50), nullable=False, index=True)
19
+ sjr_score = Column(Float, nullable=True)
20
+ best_quartile = Column(Integer, nullable=True)
21
+ h_index = Column(Float, nullable=True)
22
+ updated_at = Column(
23
+ DateTime,
24
+ nullable=False,
25
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
26
+ default=lambda: datetime.utcnow(),
27
+ onupdate=lambda: datetime.utcnow(),
28
+ )
@@ -0,0 +1,16 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class JournalScoreResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ isin = fields.String(required=True)
13
+ sjr_score = fields.Float(allow_none=True)
14
+ best_quartile = fields.Integer(allow_none=True)
15
+ h_index = fields.Float(allow_none=True)
16
+ updated_at = fields.DateTime()
@@ -13,6 +13,6 @@ class MeetingOutboxResourceSchema(Schema):
13
13
  start_date = fields.DateTime(allow_none=True)
14
14
  end_date = fields.DateTime(allow_none=True)
15
15
  meeting_id = fields.Integer(allow_none=True)
16
- news_id_id = fields.Integer(required=True)
16
+ news_id = fields.Integer(required=True)
17
17
  reviewed = fields.Boolean(allow_none=True)
18
18
  updated_at = fields.DateTime()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.587
3
+ Version: 0.0.589
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -424,6 +424,9 @@ cs_models/resources/InvestorAlias/schemas.py,sha256=Wn9ACbxGwbNaFoc9Lv86qMJTBwmM
424
424
  cs_models/resources/InvestorBucket/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
425
425
  cs_models/resources/InvestorBucket/models.py,sha256=k0pFWuYY8sUNG2JtUJJLTMtj5wzcRFXyc0Fzbnd1GPQ,691
426
426
  cs_models/resources/InvestorBucket/schemas.py,sha256=gwPUdJtWWi9-BliGkBuVu3QVAG0jUtH-QV0JtKa7Z_A,385
427
+ cs_models/resources/JournalScore/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
428
+ cs_models/resources/JournalScore/models.py,sha256=Js8PsXm6rLc3-2WOkO3EaCs0lgBjIs2V-EAgBo8PR2c,732
429
+ cs_models/resources/JournalScore/schemas.py,sha256=P_p-PqDBjd5QL6Q3dLm13MJIqzw9lItbxqadQMv1XSI,438
427
430
  cs_models/resources/LLMCache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
428
431
  cs_models/resources/LLMCache/models.py,sha256=Std5BPOsMFvGArvzIbIs5Mscwg1vtsuaTlTJbDzIC34,776
429
432
  cs_models/resources/LLMCache/schemas.py,sha256=7RTxC4ZqNyd3c2r_NqbG-d6QoIaOMS6U4-Bcw7py4pE,483
@@ -462,7 +465,7 @@ cs_models/resources/MeetingBucket/models.py,sha256=OfjmVYISxesbvtu4E2bltlpvzFZlu
462
465
  cs_models/resources/MeetingBucket/schemas.py,sha256=oZm2XHNaWEh-aoqPbsS405BGZoo06QGPtHNM6Jf-MkQ,312
463
466
  cs_models/resources/MeetingOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
464
467
  cs_models/resources/MeetingOutbox/models.py,sha256=Ij5LNe2pEP_JnnIbIipreHeu8YYcWjOo37GTokCoNdc,975
465
- cs_models/resources/MeetingOutbox/schemas.py,sha256=XYx4QxAy8AWVzQ7ZUsZxOdaSxs9-1NufhRjXHo3KjT8,546
468
+ cs_models/resources/MeetingOutbox/schemas.py,sha256=InvJJIyi596Vud64N8tUBDOYi8gpS6aRLtO6sjUgAHI,543
466
469
  cs_models/resources/Merger/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
467
470
  cs_models/resources/Merger/models.py,sha256=rlLTJ4W6a0Z3HbNtNBbI3HPL-eB162hilDJWuQ7hC0U,1349
468
471
  cs_models/resources/Merger/schemas.py,sha256=RDSYuMQsVCRzKTsLOHK-LIlDEFhSHfmY_2uDRIoW3Vo,2030
@@ -964,7 +967,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
964
967
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
965
968
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
966
969
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
967
- cs_models-0.0.587.dist-info/METADATA,sha256=757UMYobxZ3kvOiaqDTZ0sNReKewZPbS9xileLrmrjc,791
968
- cs_models-0.0.587.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
969
- cs_models-0.0.587.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
970
- cs_models-0.0.587.dist-info/RECORD,,
970
+ cs_models-0.0.589.dist-info/METADATA,sha256=m8yqEMCxjQIYlzv3zL_ZzKW7valvBuJMgJSmaQyeWcw,791
971
+ cs_models-0.0.589.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
972
+ cs_models-0.0.589.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
973
+ cs_models-0.0.589.dist-info/RECORD,,