cs-models 0.0.588__py3-none-any.whl → 0.0.590__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/JournalScore/__init__.py +0 -0
- cs_models/resources/JournalScore/models.py +28 -0
- cs_models/resources/JournalScore/schemas.py +16 -0
- {cs_models-0.0.588.dist-info → cs_models-0.0.590.dist-info}/METADATA +1 -1
- {cs_models-0.0.588.dist-info → cs_models-0.0.590.dist-info}/RECORD +7 -4
- {cs_models-0.0.588.dist-info → cs_models-0.0.590.dist-info}/WHEEL +0 -0
- {cs_models-0.0.588.dist-info → cs_models-0.0.590.dist-info}/top_level.txt +0 -0
|
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
|
+
issn = 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
|
+
issn = 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()
|
|
@@ -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=ruRV_Dx1KkVA29H4lAjF7FoSLxngeAPaufQkLVlUuDs,732
|
|
429
|
+
cs_models/resources/JournalScore/schemas.py,sha256=amzopDxXzdEQobTtUTqCG06nB266fSw0phI5a5pOwn4,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
|
|
@@ -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.
|
|
968
|
-
cs_models-0.0.
|
|
969
|
-
cs_models-0.0.
|
|
970
|
-
cs_models-0.0.
|
|
970
|
+
cs_models-0.0.590.dist-info/METADATA,sha256=mZN1B-NG_TibuQrCwFzGB1R4izAIOuoYxkJQZrdp5_E,791
|
|
971
|
+
cs_models-0.0.590.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
972
|
+
cs_models-0.0.590.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
973
|
+
cs_models-0.0.590.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|