datacommons-cli 1.1.5__tar.gz → 1.1.7__tar.gz

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.
@@ -1,3 +1,14 @@
1
+ Metadata-Version: 2.4
2
+ Name: datacommons-cli
3
+ Version: 1.1.7
4
+ Summary: Data Commons CLI
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/datacommonsorg/datacommons
7
+ Requires-Python: >=3.11
8
+ Description-Content-Type: text/markdown
9
+ Requires-Dist: click>=8.1.7
10
+ Requires-Dist: datacommons-admin==1.1.7
11
+
1
12
  # Data Commons CLI
2
13
 
3
14
  <p align="center">
@@ -129,11 +140,10 @@ These options can be passed to `datacommons admin` for any administrative comman
129
140
  | Command | Description |
130
141
  | --- | --- |
131
142
  | **`init`** | Scaffolds a localized Terraform deployment directory for the Data Commons Platform on Google Cloud Platform (GCP). |
132
- | **`init-db`** | Configures database schemas and seeds baseline tables on Cloud Spanner via the Ingestion Helper service. |
143
+ | **`init-db`** | Configures database schema and applies migrations on Cloud Spanner. |
133
144
  | **`migrate-db`** | Checks and applies pending schema migrations to the Cloud Spanner database. |
134
- | **`seed-db`** | Seeds or re-applies base geographic entities and schema definitions to Cloud Spanner. |
135
145
  | **`ingest start`** | Triggers a Cloud Workflows + Cloud Run background data ingestion pipeline for custom datasets. |
136
- | **`ingest show-config`**| Displays current background ingestion parameters, service URLs, and Cloud Run job environment variables. |
146
+ | **`ingest show-config`**| Displays the ingestion job configuration from Terraform outputs. |
137
147
 
138
148
  ---
139
149
 
@@ -155,7 +165,7 @@ Key Options:
155
165
  - `--force`: Overwrite existing files in the target directory if present.
156
166
 
157
167
  #### `datacommons admin init-db`
158
- Initializes database schema, applies all migrations, and seeds baseline geographic data on Cloud Spanner. If the database has already been initialized, the command safely detects it and prompts you to use `migrate-db` or `seed-db`.
168
+ Initializes database schema and applies all pending migrations on Cloud Spanner.
159
169
 
160
170
  ```bash
161
171
  # Local state mode:
@@ -163,9 +173,6 @@ datacommons admin init-db
163
173
 
164
174
  # Remote state mode:
165
175
  datacommons admin --project-id my-project --instance-name my-instance init-db
166
-
167
- # Initialize schemas and migrations only (skip baseline data seeding):
168
- datacommons admin init-db --init-only
169
176
  ```
170
177
 
171
178
  #### `datacommons admin migrate-db`
@@ -182,15 +189,6 @@ datacommons admin --project-id my-project --instance-name my-instance migrate-db
182
189
  Key Options:
183
190
  - `-y`, `--yes`: Automatically confirm and apply pending migrations without interactive prompts.
184
191
 
185
- #### `datacommons admin seed-db`
186
- Seeds baseline geographic nodes and schema mappings on Cloud Spanner via the Ingestion Helper service.
187
-
188
- ```bash
189
- datacommons admin seed-db
190
- # Or via remote state:
191
- datacommons admin --project-id my-project --instance-name my-instance seed-db
192
- ```
193
-
194
192
  #### `datacommons admin ingest start`
195
193
  Triggers an asynchronous data ingestion workflow using Google Cloud Workflows and Cloud Run. Prints the execution ID and a direct Google Cloud Console link for live monitoring.
196
194
 
@@ -204,7 +202,7 @@ Key Options:
204
202
  - `--imports TEXT` *(required)*: Comma-separated names of the configured imports to run.
205
203
 
206
204
  #### `datacommons admin ingest show-config`
207
- Fetches and inspects the active environment variables and configuration for the Cloud Run ingestion job.
205
+ Prints the ingestion job configuration from Terraform outputs.
208
206
 
209
207
  ```bash
210
208
  datacommons admin ingest show-config
@@ -238,9 +236,6 @@ datacommons admin ingest start --imports my_import
238
236
  # Run migrations non-interactively without local Terraform files
239
237
  datacommons admin --project-id my-project --instance-name prod migrate-db -y
240
238
 
241
- # Re-seed Spanner database from anywhere
242
- datacommons admin --project-id my-project --instance-name prod seed-db
243
-
244
239
  # Trigger ingestion using an explicit GCS state URI
245
240
  datacommons admin --tf-state-location gs://my-project-prod-tfstate/terraform/state/prod/default.tfstate ingest start --imports my_dataset
246
241
 
@@ -1,14 +1,3 @@
1
- Metadata-Version: 2.4
2
- Name: datacommons-cli
3
- Version: 1.1.5
4
- Summary: Data Commons CLI
5
- License-Expression: Apache-2.0
6
- Project-URL: Homepage, https://github.com/datacommonsorg/datacommons
7
- Requires-Python: >=3.11
8
- Description-Content-Type: text/markdown
9
- Requires-Dist: click>=8.1.7
10
- Requires-Dist: datacommons-admin==1.1.5
11
-
12
1
  # Data Commons CLI
13
2
 
14
3
  <p align="center">
@@ -140,11 +129,10 @@ These options can be passed to `datacommons admin` for any administrative comman
140
129
  | Command | Description |
141
130
  | --- | --- |
142
131
  | **`init`** | Scaffolds a localized Terraform deployment directory for the Data Commons Platform on Google Cloud Platform (GCP). |
143
- | **`init-db`** | Configures database schemas and seeds baseline tables on Cloud Spanner via the Ingestion Helper service. |
132
+ | **`init-db`** | Configures database schema and applies migrations on Cloud Spanner. |
144
133
  | **`migrate-db`** | Checks and applies pending schema migrations to the Cloud Spanner database. |
145
- | **`seed-db`** | Seeds or re-applies base geographic entities and schema definitions to Cloud Spanner. |
146
134
  | **`ingest start`** | Triggers a Cloud Workflows + Cloud Run background data ingestion pipeline for custom datasets. |
147
- | **`ingest show-config`**| Displays current background ingestion parameters, service URLs, and Cloud Run job environment variables. |
135
+ | **`ingest show-config`**| Displays the ingestion job configuration from Terraform outputs. |
148
136
 
149
137
  ---
150
138
 
@@ -166,7 +154,7 @@ Key Options:
166
154
  - `--force`: Overwrite existing files in the target directory if present.
167
155
 
168
156
  #### `datacommons admin init-db`
169
- Initializes database schema, applies all migrations, and seeds baseline geographic data on Cloud Spanner. If the database has already been initialized, the command safely detects it and prompts you to use `migrate-db` or `seed-db`.
157
+ Initializes database schema and applies all pending migrations on Cloud Spanner.
170
158
 
171
159
  ```bash
172
160
  # Local state mode:
@@ -174,9 +162,6 @@ datacommons admin init-db
174
162
 
175
163
  # Remote state mode:
176
164
  datacommons admin --project-id my-project --instance-name my-instance init-db
177
-
178
- # Initialize schemas and migrations only (skip baseline data seeding):
179
- datacommons admin init-db --init-only
180
165
  ```
181
166
 
182
167
  #### `datacommons admin migrate-db`
@@ -193,15 +178,6 @@ datacommons admin --project-id my-project --instance-name my-instance migrate-db
193
178
  Key Options:
194
179
  - `-y`, `--yes`: Automatically confirm and apply pending migrations without interactive prompts.
195
180
 
196
- #### `datacommons admin seed-db`
197
- Seeds baseline geographic nodes and schema mappings on Cloud Spanner via the Ingestion Helper service.
198
-
199
- ```bash
200
- datacommons admin seed-db
201
- # Or via remote state:
202
- datacommons admin --project-id my-project --instance-name my-instance seed-db
203
- ```
204
-
205
181
  #### `datacommons admin ingest start`
206
182
  Triggers an asynchronous data ingestion workflow using Google Cloud Workflows and Cloud Run. Prints the execution ID and a direct Google Cloud Console link for live monitoring.
207
183
 
@@ -215,7 +191,7 @@ Key Options:
215
191
  - `--imports TEXT` *(required)*: Comma-separated names of the configured imports to run.
216
192
 
217
193
  #### `datacommons admin ingest show-config`
218
- Fetches and inspects the active environment variables and configuration for the Cloud Run ingestion job.
194
+ Prints the ingestion job configuration from Terraform outputs.
219
195
 
220
196
  ```bash
221
197
  datacommons admin ingest show-config
@@ -249,9 +225,6 @@ datacommons admin ingest start --imports my_import
249
225
  # Run migrations non-interactively without local Terraform files
250
226
  datacommons admin --project-id my-project --instance-name prod migrate-db -y
251
227
 
252
- # Re-seed Spanner database from anywhere
253
- datacommons admin --project-id my-project --instance-name prod seed-db
254
-
255
228
  # Trigger ingestion using an explicit GCS state URI
256
229
  datacommons admin --tf-state-location gs://my-project-prod-tfstate/terraform/state/prod/default.tfstate ingest start --imports my_dataset
257
230
 
@@ -0,0 +1 @@
1
+ 1.1.7
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datacommons-cli
3
- Version: 1.1.5
3
+ Version: 1.1.7
4
4
  Summary: Data Commons CLI
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/datacommonsorg/datacommons
7
7
  Requires-Python: >=3.11
8
8
  Description-Content-Type: text/markdown
9
9
  Requires-Dist: click>=8.1.7
10
- Requires-Dist: datacommons-admin==1.1.5
10
+ Requires-Dist: datacommons-admin==1.1.7
11
11
 
12
12
  # Data Commons CLI
13
13
 
@@ -140,11 +140,10 @@ These options can be passed to `datacommons admin` for any administrative comman
140
140
  | Command | Description |
141
141
  | --- | --- |
142
142
  | **`init`** | Scaffolds a localized Terraform deployment directory for the Data Commons Platform on Google Cloud Platform (GCP). |
143
- | **`init-db`** | Configures database schemas and seeds baseline tables on Cloud Spanner via the Ingestion Helper service. |
143
+ | **`init-db`** | Configures database schema and applies migrations on Cloud Spanner. |
144
144
  | **`migrate-db`** | Checks and applies pending schema migrations to the Cloud Spanner database. |
145
- | **`seed-db`** | Seeds or re-applies base geographic entities and schema definitions to Cloud Spanner. |
146
145
  | **`ingest start`** | Triggers a Cloud Workflows + Cloud Run background data ingestion pipeline for custom datasets. |
147
- | **`ingest show-config`**| Displays current background ingestion parameters, service URLs, and Cloud Run job environment variables. |
146
+ | **`ingest show-config`**| Displays the ingestion job configuration from Terraform outputs. |
148
147
 
149
148
  ---
150
149
 
@@ -166,7 +165,7 @@ Key Options:
166
165
  - `--force`: Overwrite existing files in the target directory if present.
167
166
 
168
167
  #### `datacommons admin init-db`
169
- Initializes database schema, applies all migrations, and seeds baseline geographic data on Cloud Spanner. If the database has already been initialized, the command safely detects it and prompts you to use `migrate-db` or `seed-db`.
168
+ Initializes database schema and applies all pending migrations on Cloud Spanner.
170
169
 
171
170
  ```bash
172
171
  # Local state mode:
@@ -174,9 +173,6 @@ datacommons admin init-db
174
173
 
175
174
  # Remote state mode:
176
175
  datacommons admin --project-id my-project --instance-name my-instance init-db
177
-
178
- # Initialize schemas and migrations only (skip baseline data seeding):
179
- datacommons admin init-db --init-only
180
176
  ```
181
177
 
182
178
  #### `datacommons admin migrate-db`
@@ -193,15 +189,6 @@ datacommons admin --project-id my-project --instance-name my-instance migrate-db
193
189
  Key Options:
194
190
  - `-y`, `--yes`: Automatically confirm and apply pending migrations without interactive prompts.
195
191
 
196
- #### `datacommons admin seed-db`
197
- Seeds baseline geographic nodes and schema mappings on Cloud Spanner via the Ingestion Helper service.
198
-
199
- ```bash
200
- datacommons admin seed-db
201
- # Or via remote state:
202
- datacommons admin --project-id my-project --instance-name my-instance seed-db
203
- ```
204
-
205
192
  #### `datacommons admin ingest start`
206
193
  Triggers an asynchronous data ingestion workflow using Google Cloud Workflows and Cloud Run. Prints the execution ID and a direct Google Cloud Console link for live monitoring.
207
194
 
@@ -215,7 +202,7 @@ Key Options:
215
202
  - `--imports TEXT` *(required)*: Comma-separated names of the configured imports to run.
216
203
 
217
204
  #### `datacommons admin ingest show-config`
218
- Fetches and inspects the active environment variables and configuration for the Cloud Run ingestion job.
205
+ Prints the ingestion job configuration from Terraform outputs.
219
206
 
220
207
  ```bash
221
208
  datacommons admin ingest show-config
@@ -249,9 +236,6 @@ datacommons admin ingest start --imports my_import
249
236
  # Run migrations non-interactively without local Terraform files
250
237
  datacommons admin --project-id my-project --instance-name prod migrate-db -y
251
238
 
252
- # Re-seed Spanner database from anywhere
253
- datacommons admin --project-id my-project --instance-name prod seed-db
254
-
255
239
  # Trigger ingestion using an explicit GCS state URI
256
240
  datacommons admin --tf-state-location gs://my-project-prod-tfstate/terraform/state/prod/default.tfstate ingest start --imports my_dataset
257
241
 
@@ -0,0 +1,2 @@
1
+ click>=8.1.7
2
+ datacommons-admin==1.1.7
@@ -10,7 +10,7 @@ keywords = []
10
10
  authors = []
11
11
  dependencies = [
12
12
  "click>=8.1.7",
13
- "datacommons-admin==1.1.5",
13
+ "datacommons-admin==1.1.7",
14
14
  ]
15
15
  urls = {Homepage = "https://github.com/datacommonsorg/datacommons"}
16
16
 
@@ -1 +0,0 @@
1
- 1.1.5
@@ -1,2 +0,0 @@
1
- click>=8.1.7
2
- datacommons-admin==1.1.5