okdata-cli 2.0.0__py3-none-any.whl → 3.0.0__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.
okdata/cli/command.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import json
2
2
  import logging
3
3
  import sys
4
+ from importlib import metadata
4
5
 
5
6
  from docopt import docopt, DocoptExit
6
7
  from okdata.sdk import SDK
@@ -13,11 +14,7 @@ BASE_COMMAND_OPTIONS = """
13
14
 
14
15
 
15
16
  class BaseCommand:
16
- version = "2.0.0"
17
- # TODO: Can use `importlib` in Python 3.8 and up instead of hard coding the
18
- # version here:
19
- #
20
- # version = importlib.metadata.version("okdata-cli")
17
+ version = metadata.version("okdata-cli")
21
18
 
22
19
  __doc__ = f"""okdata-cli {version}
23
20
 
@@ -350,7 +350,14 @@ Options:{BASE_COMMAND_OPTIONS}
350
350
  "trace_id": res["trace_id"],
351
351
  }
352
352
  out.add_row(data)
353
- self.print(f"Uploaded file to dataset: {dataset_id}", out)
353
+
354
+ summary = [f"Uploaded file to dataset: {dataset_id}", str(out)]
355
+ if res["trace_id"]:
356
+ summary += [
357
+ "\nYou can check the data processing status by running:\n",
358
+ f" okdata status {res['trace_id']}",
359
+ ]
360
+ self.print("\n".join(summary))
354
361
 
355
362
  def download_files(self, source, target):
356
363
  dataset_id, version, edition = self._dataset_components_from_uri(source)
@@ -8,7 +8,7 @@
8
8
  "key": "file"
9
9
  },
10
10
  "Uploaded": {
11
- "name": "Upload status",
11
+ "name": "Uploaded?",
12
12
  "key": "uploaded"
13
13
  },
14
14
  "TraceID": {
@@ -1,25 +1,24 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: okdata-cli
3
- Version: 2.0.0
3
+ Version: 3.0.0
4
4
  Summary: CLI for services provided by Oslo Origo
5
5
  Home-page: https://github.com/oslokommune/okdata-cli/
6
6
  Author: Oslo Origo
7
7
  Author-email: dataplattform@oslo.kommune.no
8
8
  License: MIT
9
9
  Classifier: Development Status :: 5 - Production/Stable
10
- Classifier: Programming Language :: Python :: 3.7
11
10
  Classifier: Programming Language :: Python :: 3.8
12
11
  Classifier: Programming Language :: Python :: 3.9
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Operating System :: OS Independent
17
- Requires-Python: >=3.7
16
+ Requires-Python: >=3.8
18
17
  Description-Content-Type: text/markdown
19
18
  License-File: LICENSE
20
19
  Requires-Dist: PrettyTable
21
20
  Requires-Dist: docopt
22
- Requires-Dist: okdata-sdk (<3.0.0,>=2.3.0)
21
+ Requires-Dist: okdata-sdk (<3.0.0,>=2.4.0)
23
22
  Requires-Dist: questionary (<2.0.0,>=1.10.0)
24
23
  Requires-Dist: requests
25
24
 
@@ -1,7 +1,7 @@
1
- okdata_cli-2.0.0-nspkg.pth,sha256=4nrP4RXuGOCDLZ0px0sO63KvnhR4W_t4MWel1CEdd2U,539
1
+ okdata_cli-3.0.0-nspkg.pth,sha256=4nrP4RXuGOCDLZ0px0sO63KvnhR4W_t4MWel1CEdd2U,539
2
2
  okdata/cli/__init__.py,sha256=72PLqW3-JGeKxQGusk3AX78ITwcn7DDawEMNLlsurz4,27
3
3
  okdata/cli/__main__.py,sha256=Q5T-QWTB9D349j1jiBtoMH0dB-jL_Qxai0J7oN_p_hM,2534
4
- okdata/cli/command.py,sha256=Pb8WG-9kvfxlrPmYo9y0xLyxvv7CPBxR_PnwxbKC7LE,4400
4
+ okdata/cli/command.py,sha256=6XmpmN6VfUr5dTROeP3s5aqjOo6dCaf-WeaUfB44xs0,4285
5
5
  okdata/cli/date.py,sha256=6BhqMiuqAtm74WuVBZ7NeaiMu9QBgKPqTaVU-uz5sY8,163
6
6
  okdata/cli/io.py,sha256=cNm-h86fm3ez59A9rhWO0xnHBTIe-_Xj9BtcjKa34lg,730
7
7
  okdata/cli/output.py,sha256=_TC-iuKXBYgfY2BnMVcqKNZgrmXeb10mWychI1KtLzo,4802
@@ -10,7 +10,7 @@ okdata/cli/commands/permissions.py,sha256=52JPEoK7r3LCwHSWkMJk9qSosuOlQ-fiIS6Bt6
10
10
  okdata/cli/commands/status.py,sha256=rC8s-ywBgI1vrIra9Nntj6iYNPlOsXm7CfpI2BohPV4,3067
11
11
  okdata/cli/commands/wizard.py,sha256=KhM-IVYzo6L0EPh9L9D9rpjyrEChImOaEjBzu7x8deA,341
12
12
  okdata/cli/commands/datasets/__init__.py,sha256=kS1uB6u_0VI1jm_TQjaCvTMqPFHnKSQITPUuPB_SY00,69
13
- okdata/cli/commands/datasets/datasets.py,sha256=ENyZIYxcFHpBtKNid5Ttbk0LopCUNK69MuLcK21gWI0,14604
13
+ okdata/cli/commands/datasets/datasets.py,sha256=PQtorLVeTQ01byJR4-Dbg7DYwKfrOiKJOBzdodGJ6vw,14846
14
14
  okdata/cli/commands/datasets/questions.py,sha256=1VT76wEnVn_OFrDxfs3lbc0AUWsC1JbC5pTHXnjEm_k,5669
15
15
  okdata/cli/commands/datasets/validators.py,sha256=_PO3BcQW-mrz6BH6nkBjdvC5guSmoS7TUc_2inJKZoI,4461
16
16
  okdata/cli/commands/datasets/wizards.py,sha256=K3hRjvUD4nbrA2Fc536VsWRXmWawIozXX9mtlAHqHi4,3699
@@ -24,7 +24,7 @@ okdata/cli/commands/teams/teams.py,sha256=ta4RRgRp-89CACh98nvbfbaxnE3EnloHVkNslB
24
24
  okdata/cli/commands/teams/util.py,sha256=c7U6jI7CN7MUyfsK6Z3AawL0SJJBlFar4FvXfsJQzSk,456
25
25
  okdata/cli/commands/teams/wizards.py,sha256=bARELvUPdcbj5O7O1xwEL8Bcv7YNZYt2zyXqRR8ekhY,1223
26
26
  okdata/cli/data/output-format/datasets_config.json,sha256=rAvcNeBc0d53tWSAlWnt8IxvjNDWqm-b1sEgfk5IvF8,180
27
- okdata/cli/data/output-format/datasets_copy_file_config.json,sha256=I0cU3DgcznYvSuSwaxIIvAiWkR7uTDTc4l2XlXgCF3s,266
27
+ okdata/cli/data/output-format/datasets_copy_file_config.json,sha256=wAKnX_B7d1keRGdIQBwsvF25oyD1aC2ZYLTDi_KPWzY,262
28
28
  okdata/cli/data/output-format/datasets_copy_file_config_2.json,sha256=7U0ka_IgSJv6vxQ6q7La8MPMy45Vwxb39_YSlQBMha0,206
29
29
  okdata/cli/data/output-format/datasets_dataset_config.json,sha256=inZaVE4GJK1EZm4O7DlbDuoXucuYm3bvVef4aTWVt-4,359
30
30
  okdata/cli/data/output-format/datasets_dataset_version_config.json,sha256=PW1PoW7PWkJj76RyfD5xEbYoeCf1yeC94s-ua5Z1GU8,345
@@ -41,10 +41,10 @@ okdata/cli/data/output-format/status_config.json,sha256=oq9uYZbPZrM2ksWrQDd9-VWO
41
41
  okdata/cli/data/output-format/status_history_config.json,sha256=Gh-l8w9688P0hdp_DtJ9cxMc1bdv5DuNp5QBftOnb9M,721
42
42
  okdata/cli/data/output-format/team_members_config.json,sha256=CYzlVLU3f41kpxBbovXYDYRYOvhScfYU2yxtwHFMcuQ,183
43
43
  okdata/cli/data/output-format/teams_config.json,sha256=z49y_7m3b9W02guXXcSdlX9XDAaIj0rRBDcqU68m9i0,124
44
- okdata_cli-2.0.0.dist-info/LICENSE,sha256=9oNBrI2Aw9TCn-T0CamN4hpU6Dzm-IkFzX0573Q211Q,1077
45
- okdata_cli-2.0.0.dist-info/METADATA,sha256=qmWJXOwtKRKN9SkFkKJTC8rKxe_AMu0l3fF-gq8Fvn4,1206
46
- okdata_cli-2.0.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
47
- okdata_cli-2.0.0.dist-info/entry_points.txt,sha256=OyY5saQTVah33LZ9ixM40rsMPgsOKErioZA8rtVjgKo,52
48
- okdata_cli-2.0.0.dist-info/namespace_packages.txt,sha256=Pdf-ZpWHLtLL295sDedsbAP3f6H189730mXrfVAVCcY,7
49
- okdata_cli-2.0.0.dist-info/top_level.txt,sha256=cS1IEDv6oxHgvQHrGSxFxjHTv5CNc9dLowH1vpCqF_k,11
50
- okdata_cli-2.0.0.dist-info/RECORD,,
44
+ okdata_cli-3.0.0.dist-info/LICENSE,sha256=9oNBrI2Aw9TCn-T0CamN4hpU6Dzm-IkFzX0573Q211Q,1077
45
+ okdata_cli-3.0.0.dist-info/METADATA,sha256=ef4EdR6hfBgM3Ni-2mamzBlMBRxF1vC7JUbXdU-sUoE,1156
46
+ okdata_cli-3.0.0.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
47
+ okdata_cli-3.0.0.dist-info/entry_points.txt,sha256=OyY5saQTVah33LZ9ixM40rsMPgsOKErioZA8rtVjgKo,52
48
+ okdata_cli-3.0.0.dist-info/namespace_packages.txt,sha256=Pdf-ZpWHLtLL295sDedsbAP3f6H189730mXrfVAVCcY,7
49
+ okdata_cli-3.0.0.dist-info/top_level.txt,sha256=cS1IEDv6oxHgvQHrGSxFxjHTv5CNc9dLowH1vpCqF_k,11
50
+ okdata_cli-3.0.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.38.4)
2
+ Generator: bdist_wheel (0.41.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5