cs-models 0.0.698__py3-none-any.whl → 0.0.699__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/SalesEstimate/__init__.py +0 -0
- cs_models/resources/SalesEstimate/models.py +35 -0
- cs_models/resources/SalesEstimate/schemas.py +22 -0
- cs_models/resources/SalesEstimateCompany/__init__.py +0 -0
- cs_models/resources/SalesEstimateCompany/models.py +0 -0
- cs_models/resources/SalesEstimateCompany/schemas.py +0 -0
- cs_models/resources/SalesEstimateCondition/__init__.py +0 -0
- cs_models/resources/SalesEstimateCondition/models.py +0 -0
- cs_models/resources/SalesEstimateCondition/schemas.py +0 -0
- cs_models/resources/SalesEstimateIntervention/__init__.py +0 -0
- cs_models/resources/SalesEstimateIntervention/models.py +0 -0
- cs_models/resources/SalesEstimateIntervention/schemas.py +0 -0
- cs_models/resources/SalesEstimateTarget/__init__.py +0 -0
- cs_models/resources/SalesEstimateTarget/models.py +0 -0
- cs_models/resources/SalesEstimateTarget/schemas.py +0 -0
- cs_models/resources/Transcript/models.py +1 -0
- cs_models/resources/Transcript/schemas.py +1 -0
- {cs_models-0.0.698.dist-info → cs_models-0.0.699.dist-info}/METADATA +1 -1
- {cs_models-0.0.698.dist-info → cs_models-0.0.699.dist-info}/RECORD +21 -6
- {cs_models-0.0.698.dist-info → cs_models-0.0.699.dist-info}/WHEEL +0 -0
- {cs_models-0.0.698.dist-info → cs_models-0.0.699.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
String,
|
|
8
|
+
DECIMAL,
|
|
9
|
+
Float,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
from ...database import Base
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class SalesEstimateModel(Base):
|
|
16
|
+
__tablename__ = "sales_estimates"
|
|
17
|
+
|
|
18
|
+
id = Column(Integer, primary_key=True)
|
|
19
|
+
fiscal_year = Column(Integer, nullable=True)
|
|
20
|
+
request_id = Column(String(20), nullable=True)
|
|
21
|
+
drug_name = Column(String(128), nullable=False, index=True),
|
|
22
|
+
currency = Column(String(20), nullable=True)
|
|
23
|
+
fiscal_end_date = Column(DateTime, nullable=True)
|
|
24
|
+
mean = Column(DECIMAL(13, 2), nullable=True)
|
|
25
|
+
median = Column(DECIMAL(13, 2), nullable=True)
|
|
26
|
+
sd = Column(Float, nullable=True)
|
|
27
|
+
high = Column(DECIMAL(13, 2), nullable=True)
|
|
28
|
+
low = Column(DECIMAL(13, 2), nullable=True)
|
|
29
|
+
updated_at = Column(
|
|
30
|
+
DateTime,
|
|
31
|
+
nullable=False,
|
|
32
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
33
|
+
default=lambda: datetime.utcnow(),
|
|
34
|
+
onupdate=lambda: datetime.utcnow(),
|
|
35
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SalesEstimateResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
fiscal_year = fields.Integer(allow_none=True)
|
|
13
|
+
request_id = fields.String(allow_none=True)
|
|
14
|
+
drug_name = fields.String(required=True)
|
|
15
|
+
currency = fields.String(allow_none=True)
|
|
16
|
+
fiscal_end_date = fields.DateTime(allow_none=True)
|
|
17
|
+
mean = fields.Decimal(allow_none=True)
|
|
18
|
+
median = fields.Decimal(allow_none=True)
|
|
19
|
+
sd = fields.Float(allow_none=True)
|
|
20
|
+
high = fields.Decimal(allow_none=True)
|
|
21
|
+
low = fields.Decimal(allow_none=True)
|
|
22
|
+
updated_at = fields.DateTime()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -21,6 +21,7 @@ class TranscriptModel(Base):
|
|
|
21
21
|
event_type = Column(String(50), nullable=True)
|
|
22
22
|
event_tags = Column(Text, nullable=True)
|
|
23
23
|
human_verified = Column(Boolean, nullable=True)
|
|
24
|
+
transcription_status = Column(String(50), nullable=True)
|
|
24
25
|
audio_url = Column(String(191), nullable=True)
|
|
25
26
|
updated_at = Column(
|
|
26
27
|
DateTime,
|
|
@@ -16,4 +16,5 @@ class TranscriptResourceSchema(Schema):
|
|
|
16
16
|
event_tags = fields.String(allow_none=True)
|
|
17
17
|
human_verified = fields.Boolean(allow_none=True)
|
|
18
18
|
audio_url = fields.String(allow_none=True)
|
|
19
|
+
transcription_status = fields.String(allow_none=True)
|
|
19
20
|
updated_at = fields.DateTime()
|
|
@@ -860,6 +860,21 @@ cs_models/resources/SRCIdCondition/schemas.py,sha256=w_cvdCMZSI17PLftw4tST_9r1yT
|
|
|
860
860
|
cs_models/resources/Sales/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
861
861
|
cs_models/resources/Sales/models.py,sha256=gJeTtpVVKo3OKb5fYRuxdLorPrXV7RJh4b0-YFIywDg,954
|
|
862
862
|
cs_models/resources/Sales/schemas.py,sha256=GTA2CNBOxn65mUornpk2eGM4exkPm7W7zO1ZJ4yiLW8,559
|
|
863
|
+
cs_models/resources/SalesEstimate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
864
|
+
cs_models/resources/SalesEstimate/models.py,sha256=MfxCtV8XyWoUneYhFfgyNBaUVcp1n9c-7K1Dal8jFko,1054
|
|
865
|
+
cs_models/resources/SalesEstimate/schemas.py,sha256=gA48HN9zzN77meQBM9aOCYNr1P4oHLAqAwW2MqbiXGk,713
|
|
866
|
+
cs_models/resources/SalesEstimateCompany/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
867
|
+
cs_models/resources/SalesEstimateCompany/models.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
868
|
+
cs_models/resources/SalesEstimateCompany/schemas.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
869
|
+
cs_models/resources/SalesEstimateCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
870
|
+
cs_models/resources/SalesEstimateCondition/models.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
871
|
+
cs_models/resources/SalesEstimateCondition/schemas.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
872
|
+
cs_models/resources/SalesEstimateIntervention/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
873
|
+
cs_models/resources/SalesEstimateIntervention/models.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
874
|
+
cs_models/resources/SalesEstimateIntervention/schemas.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
875
|
+
cs_models/resources/SalesEstimateTarget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
876
|
+
cs_models/resources/SalesEstimateTarget/models.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
877
|
+
cs_models/resources/SalesEstimateTarget/schemas.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
863
878
|
cs_models/resources/SalesProductsMap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
864
879
|
cs_models/resources/SalesProductsMap/models.py,sha256=kObHYA2q2wNY8QTqZd0mP5nSdFGoqnXRwlzOSSjvdK8,858
|
|
865
880
|
cs_models/resources/SalesProductsMap/schemas.py,sha256=zocpRe3by4_wUKwy-Cp2I190-scyG9wbgjZs37Je728,401
|
|
@@ -911,8 +926,8 @@ cs_models/resources/TickerCompany/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
|
911
926
|
cs_models/resources/TickerCompany/models.py,sha256=trbXLaiO0GPke7pzDxZ-cXSspmOaYi3EF0bendx6pjg,884
|
|
912
927
|
cs_models/resources/TickerCompany/schemas.py,sha256=5PwrHDwYxDQyEdC5hLq8lD9bbYDFJMgLcPtAtu0-pwY,1152
|
|
913
928
|
cs_models/resources/Transcript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
914
|
-
cs_models/resources/Transcript/models.py,sha256=
|
|
915
|
-
cs_models/resources/Transcript/schemas.py,sha256=
|
|
929
|
+
cs_models/resources/Transcript/models.py,sha256=dZMz-JjbDiBHXfo0AN08qh8HXpQrYfiRuK6LHD1ykDs,821
|
|
930
|
+
cs_models/resources/Transcript/schemas.py,sha256=fxhdWjAydlk5iwBP7xpfEsHxGvd45BEOzClnLs3oxb0,636
|
|
916
931
|
cs_models/resources/TranscriptCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
917
932
|
cs_models/resources/TranscriptCondition/models.py,sha256=WqFUWpIjqDRBkvyjW4D8QwN4bUePzSAFdAZ0nsH0nvY,946
|
|
918
933
|
cs_models/resources/TranscriptCondition/schemas.py,sha256=096N5lJ1oSP1ziMraeaaXuTIhVTR3AY2jGmFei2K5XM,494
|
|
@@ -1147,7 +1162,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1147
1162
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1148
1163
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1149
1164
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1150
|
-
cs_models-0.0.
|
|
1151
|
-
cs_models-0.0.
|
|
1152
|
-
cs_models-0.0.
|
|
1153
|
-
cs_models-0.0.
|
|
1165
|
+
cs_models-0.0.699.dist-info/METADATA,sha256=XH1zCPBHfW_Vy9seqn5OfEpu96lJUSVS08e4m2846uE,792
|
|
1166
|
+
cs_models-0.0.699.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1167
|
+
cs_models-0.0.699.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1168
|
+
cs_models-0.0.699.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|