nci-cidc-api-modules 1.2.18__py3-none-any.whl → 1.2.20__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.
cidc_api/shared/utils.py CHANGED
@@ -5,4 +5,7 @@ def strip_whitespaces(df):
5
5
  else:
6
6
  return x
7
7
 
8
- return df.map(stripper)
8
+ df.rename(columns=stripper, inplace=True)
9
+ df = df.map(stripper)
10
+
11
+ return df
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nci_cidc_api_modules
3
- Version: 1.2.18
3
+ Version: 1.2.20
4
4
  Summary: SQLAlchemy data models and configuration tools used in the NCI CIDC API
5
5
  Home-page: https://github.com/NCI-CIDC/cidc-api-gae
6
6
  License: MIT license
@@ -28,8 +28,9 @@ Requires-Dist: pyarrow>=22.0.0
28
28
  Requires-Dist: python-dotenv>=1.2.1
29
29
  Requires-Dist: requests>=2.32.5
30
30
  Requires-Dist: sqlalchemy>=2.0.44
31
+ Requires-Dist: sqlalchemy-mixins~=2.0.5
31
32
  Requires-Dist: werkzeug>=3.1.3
32
- Requires-Dist: nci-cidc-schemas==0.28.8
33
+ Requires-Dist: nci-cidc-schemas==0.28.9
33
34
  Dynamic: description
34
35
  Dynamic: description-content-type
35
36
  Dynamic: home-page
@@ -217,13 +218,14 @@ gcloud auth application-default login
217
218
  In your .env file, comment out `POSTGRES_URI` and uncommment
218
219
  `CLOUD_SQL_INSTANCE_NAME CLOUD_SQL_DB_USER CLOUD_SQL_DB_NAME` Replace `CLOUD_SQL_DB_USER` with your NIH email.
219
220
 
220
- ### Running database migrations
221
+ ### Creating/Running database migrations
221
222
 
222
223
  This project uses [`Flask Migrate`](https://flask-migrate.readthedocs.io/en/latest/) for managing database migrations. To create a new migration and upgrade the database specified in your `.env` config:
223
224
 
224
225
  ```bash
225
226
  export FLASK_APP=cidc_api/app.py
226
- # Generate the migration script
227
+ # First, make your changes to the model(s)
228
+ # Then, let flask automatically generate the db change. Double check the migration script!
227
229
  flask db migrate -m "<a message describing the changes in this migration>"
228
230
  # Apply changes to the database
229
231
  flask db upgrade
@@ -3,13 +3,15 @@ cidc_api/config/db.py,sha256=CRgpyw7uVP9v7CTAa7_1dcXURqrfjRcLNjGgZC7iPQE,1627
3
3
  cidc_api/config/logging.py,sha256=abhVYtn8lfhIt0tyV2WHFgSmp_s2eeJh7kodB6LH4J0,1149
4
4
  cidc_api/config/secrets.py,sha256=jRFj7W43pWuPf9DZQLCKF7WPXf5cUv-BAaS3ASqhV_Q,1481
5
5
  cidc_api/config/settings.py,sha256=ttOGvk_6zVMn4dtxIZ2-0w3wF2fpAUVfGpVZbKJ2b6s,4653
6
- cidc_api/models/__init__.py,sha256=bl445G8Zic9YbhZ8ZBni07wtBMhLJRMBA-JqjLxx2bw,66
7
- cidc_api/models/migrations.py,sha256=gp9vtkYbA9FFy2s-7woelAmsvQbJ41LO2_DY-YkFIrQ,11464
8
- cidc_api/models/models.py,sha256=_D8kJeBGQkoiko0y4EH3dM4xnfOb7xBVY6ZFEgu4KOU,148034
6
+ cidc_api/models/__init__.py,sha256=cTyK0Z1ttLo9itwZVRFr-d6aX-zX633YhqipqPgoGfE,115
7
+ cidc_api/models/data.py,sha256=evv9JJcW3U_g-74MgKdxtB_gGJBTRQjtnsVKwa3DzFE,638
8
+ cidc_api/models/migrations.py,sha256=UlS5How3J4ryaRuZT6F5VQtAKikkl0LTv9MgMO_ltiQ,11161
9
+ cidc_api/models/models.py,sha256=2ENATE2dbl93uaKSqveqAVuhv1SvxOkcw4pWDTolng0,148484
9
10
  cidc_api/models/schemas.py,sha256=6IE2dJoEMcMbi0Vr1V3cYKnPKU0hv9vRKBixOZHe88s,2766
11
+ cidc_api/models/types.py,sha256=9dInLZ6gN39zhEe3xhBXyz2xVMr11CeE1-GCOmT_OjY,29928
10
12
  cidc_api/models/files/__init__.py,sha256=8BMTnUSHzUbz0lBeEQY6NvApxDD3GMWMduoVMos2g4Y,213
11
13
  cidc_api/models/files/details.py,sha256=sZkGM7iEV4-J6IDQCdiMV6KBDLbPxCOqUMaU3aY9rX8,65153
12
- cidc_api/models/files/facets.py,sha256=RZoe0FadRGJw8_-jzJQkc4dIVSuaYlunNrsopb2dYho,33325
14
+ cidc_api/models/files/facets.py,sha256=BGx6FeQkK-ujCs-0Y8dUlba8uOmXgAqdY5u1EQqOnFM,33612
13
15
  cidc_api/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
16
  cidc_api/shared/auth.py,sha256=PHqmVGkqDjbmUofytVFwD_9ssgUomESl3fFtFHPwZYQ,9062
15
17
  cidc_api/shared/email_layout.html,sha256=pBoTNw3ACHH-ncZFaNvcy5bXMqPwizR78usb0uCYtIc,7670
@@ -18,9 +20,9 @@ cidc_api/shared/file_handling.py,sha256=UP3KZ61Km5RNmNfk126_upKv-jGkDzpc5Pvk1s7c
18
20
  cidc_api/shared/gcloud_client.py,sha256=ovXGS2ynaBgB_23prj23H10GNN4fectiVF7Hj4LJXQk,37302
19
21
  cidc_api/shared/jose.py,sha256=-qzGzEDAlokEp9E7WtBtQkXyyfPWTYXlwYpCqVJWmqM,1830
20
22
  cidc_api/shared/rest_utils.py,sha256=RwR30WOUAYCxL7V-i2totEyeriG30GbBDvBcpLXhM9w,6594
21
- cidc_api/shared/utils.py,sha256=oDGC8MHxEf7MDuzWynZuE66OfNUnRZE8z7Yn2Q9kYO8,178
22
- nci_cidc_api_modules-1.2.18.dist-info/licenses/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
23
- nci_cidc_api_modules-1.2.18.dist-info/METADATA,sha256=_vBchGh4tClTOJTEl-cE9DeJqcl_qZkxOcsa-LU-R2w,39540
24
- nci_cidc_api_modules-1.2.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- nci_cidc_api_modules-1.2.18.dist-info/top_level.txt,sha256=rNiRzL0lJGi5Q9tY9uSoMdTbJ-7u5c_D2E86KA94yRA,9
26
- nci_cidc_api_modules-1.2.18.dist-info/RECORD,,
23
+ cidc_api/shared/utils.py,sha256=FdZJiynmh6BIzWyCTcUAcUMKCAtzEyp_HLdXEticNcI,237
24
+ nci_cidc_api_modules-1.2.20.dist-info/licenses/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
25
+ nci_cidc_api_modules-1.2.20.dist-info/METADATA,sha256=Hwm9zDw1u4x_zfWr2hWV8D0WKQZBtRZ-7e0ifVXBt-o,39691
26
+ nci_cidc_api_modules-1.2.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ nci_cidc_api_modules-1.2.20.dist-info/top_level.txt,sha256=rNiRzL0lJGi5Q9tY9uSoMdTbJ-7u5c_D2E86KA94yRA,9
28
+ nci_cidc_api_modules-1.2.20.dist-info/RECORD,,