cs-models 0.0.774__py3-none-any.whl → 0.0.776__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/SalesTable/__init__.py +0 -0
- cs_models/resources/SalesTable/models.py +32 -0
- cs_models/resources/SalesTable/schemas.py +18 -0
- cs_models/resources/UserWorkbookWorkflows/__init__.py +0 -0
- cs_models/resources/UserWorkbookWorkflows/models.py +27 -0
- cs_models/resources/UserWorkbookWorkflows/schemas.py +15 -0
- {cs_models-0.0.774.dist-info → cs_models-0.0.776.dist-info}/METADATA +1 -1
- {cs_models-0.0.774.dist-info → cs_models-0.0.776.dist-info}/RECORD +10 -4
- {cs_models-0.0.774.dist-info → cs_models-0.0.776.dist-info}/WHEEL +0 -0
- {cs_models-0.0.774.dist-info → cs_models-0.0.776.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
Text,
|
|
8
|
+
Float,
|
|
9
|
+
String,
|
|
10
|
+
Boolean,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from ...database import Base
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class SalesTableModel(Base):
|
|
17
|
+
__tablename__ = "sales_tables"
|
|
18
|
+
|
|
19
|
+
id = Column(Integer, primary_key=True)
|
|
20
|
+
sec_accession_number = Column(String(128), nullable=False, index=True)
|
|
21
|
+
table_number = Column(Integer, nullable=False)
|
|
22
|
+
table_preceding_info = Column(Text, nullable=True)
|
|
23
|
+
table_html = Column(Text, nullable=True)
|
|
24
|
+
score = Column(Float, nullable=True)
|
|
25
|
+
processed = Column(Boolean, nullable=True)
|
|
26
|
+
updated_at = Column(
|
|
27
|
+
DateTime,
|
|
28
|
+
nullable=False,
|
|
29
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
30
|
+
default=lambda: datetime.utcnow(),
|
|
31
|
+
onupdate=lambda: datetime.utcnow(),
|
|
32
|
+
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SalesTableResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
sec_accession_number = fields.Integer(required=True)
|
|
13
|
+
table_number = fields.Integer(required=True)
|
|
14
|
+
table_html = fields.String(required=True)
|
|
15
|
+
table_preceding_info = fields.String(required=True)
|
|
16
|
+
score = fields.Float(allow_none=True)
|
|
17
|
+
processed = fields.Boolean(allow_none=True)
|
|
18
|
+
updated_at = fields.DateTime()
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from sqlalchemy import (
|
|
2
|
+
Column,
|
|
3
|
+
Integer,
|
|
4
|
+
String,
|
|
5
|
+
DateTime,
|
|
6
|
+
Boolean,
|
|
7
|
+
Text,
|
|
8
|
+
)
|
|
9
|
+
from datetime import datetime
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class UserWorkbookWorkflowsModel(Base):
|
|
15
|
+
__tablename__ = 'user_workbook_workflows'
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
user_id = Column(String(128), nullable=False)
|
|
19
|
+
is_active = Column(Boolean, nullable=True)
|
|
20
|
+
workflow_template = Column(Text, nullable=True)
|
|
21
|
+
updated_at = Column(
|
|
22
|
+
DateTime,
|
|
23
|
+
nullable=False,
|
|
24
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
25
|
+
default=lambda: datetime.utcnow(),
|
|
26
|
+
onupdate=lambda: datetime.utcnow(),
|
|
27
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UserWorkbookWorkflowsResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error="Field cannot be blank")
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
user_id = fields.String(required=True, validate=not_blank)
|
|
13
|
+
is_active = fields.Boolean(required=True)
|
|
14
|
+
workflow_template = fields.String(allow_none=True)
|
|
15
|
+
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -926,6 +926,9 @@ cs_models/resources/SalesEstimateTarget/schemas.py,sha256=94kjvgpavcEkvJ9RABMo9w
|
|
|
926
926
|
cs_models/resources/SalesProductsMap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
927
927
|
cs_models/resources/SalesProductsMap/models.py,sha256=kObHYA2q2wNY8QTqZd0mP5nSdFGoqnXRwlzOSSjvdK8,858
|
|
928
928
|
cs_models/resources/SalesProductsMap/schemas.py,sha256=zocpRe3by4_wUKwy-Cp2I190-scyG9wbgjZs37Je728,401
|
|
929
|
+
cs_models/resources/SalesTable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
930
|
+
cs_models/resources/SalesTable/models.py,sha256=y5m2Nz4dKIdNB1Or5FGORTZwem7yizsK_oayLW3YWd4,869
|
|
931
|
+
cs_models/resources/SalesTable/schemas.py,sha256=K2eB4JThRY6wbO2S2zz1x4jKRzUXYaS3WQB51VAF-c4,552
|
|
929
932
|
cs_models/resources/ScratchpadTable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
930
933
|
cs_models/resources/ScratchpadTable/models.py,sha256=JGjzIMa-IaVDCk512G8nX3QgmfcvbQwCR91F6ykNA74,888
|
|
931
934
|
cs_models/resources/ScratchpadTable/schemas.py,sha256=pQPf6xpsg0ZKDM9xwesvrpdq8HwpvXXzWpEPvxw8BBU,505
|
|
@@ -1098,6 +1101,9 @@ cs_models/resources/UserWatchlistAccess/schemas.py,sha256=YLC99AAtHJBltD_1vuzIPY
|
|
|
1098
1101
|
cs_models/resources/UserWorkbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1099
1102
|
cs_models/resources/UserWorkbook/models.py,sha256=1f5V5o4AcHElMY31bME4S1wm06bm3SbLucYJrzk0ONk,759
|
|
1100
1103
|
cs_models/resources/UserWorkbook/schemas.py,sha256=0roXytt6Rv8RS6Um9WPZbWz2eYptmxacc7SEp0c2vHQ,427
|
|
1104
|
+
cs_models/resources/UserWorkbookWorkflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1105
|
+
cs_models/resources/UserWorkbookWorkflows/models.py,sha256=4d_2TL9AayfSk4r-H9F4UtfgXogatA0lTOJzNRFQslQ,714
|
|
1106
|
+
cs_models/resources/UserWorkbookWorkflows/schemas.py,sha256=oFuxrpL6zcJtXfBmNiwrBXYOq64PojPIRJ6jW51Z7Cg,443
|
|
1101
1107
|
cs_models/resources/VACompanyMap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1102
1108
|
cs_models/resources/VACompanyMap/models.py,sha256=5CQ-tXrG7OKPBIaBUICykTeeRzXJFP4Pg9TVRK8uzqs,750
|
|
1103
1109
|
cs_models/resources/VACompanyMap/schemas.py,sha256=d1UPxtu6L-scc7HucwOf_6JcQ7G1-8NlfTu8eHzZMd4,1124
|
|
@@ -1267,7 +1273,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1267
1273
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1268
1274
|
cs_models/utils/utils.py,sha256=BzCDk3u1np7DoJQqCZIJN4f80JNHvJoWO4qEFgolN-8,4474
|
|
1269
1275
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1270
|
-
cs_models-0.0.
|
|
1271
|
-
cs_models-0.0.
|
|
1272
|
-
cs_models-0.0.
|
|
1273
|
-
cs_models-0.0.
|
|
1276
|
+
cs_models-0.0.776.dist-info/METADATA,sha256=FFZPKFVSoyDkCNXUFBKEgFCxnenKpazoHFyzMZRTo_A,751
|
|
1277
|
+
cs_models-0.0.776.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
1278
|
+
cs_models-0.0.776.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1279
|
+
cs_models-0.0.776.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|