okdata-cli 2.0.1__tar.gz → 3.0.0__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.
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/PKG-INFO +2 -3
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/command.py +2 -5
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/datasets/datasets.py +8 -10
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata_cli.egg-info/PKG-INFO +2 -3
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata_cli.egg-info/requires.txt +1 -1
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/pyproject.toml +1 -1
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/setup.py +3 -4
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/LICENSE +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/README.md +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/__init__.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/__init__.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/__main__.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/__init__.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/datasets/__init__.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/datasets/questions.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/datasets/validators.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/datasets/wizards.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/permissions.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/pubreg/__init__.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/pubreg/client.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/pubreg/pubreg.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/pubreg/questions.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/pubreg/wizards.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/status.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/teams/questions.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/teams/teams.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/teams/util.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/teams/wizards.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/commands/wizard.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_copy_file_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_copy_file_config_2.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_dataset_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_dataset_version_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_dataset_version_edition_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_dataset_version_edition_distributions_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_dataset_versions_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/my_permissions_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/permissions_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/pubreg_audit_log_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/pubreg_clients_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/pubreg_multiple_client_keys_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/pubreg_single_client_keys_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/status_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/status_history_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/team_members_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/teams_config.json +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/date.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/io.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/output.py +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata_cli.egg-info/SOURCES.txt +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata_cli.egg-info/dependency_links.txt +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata_cli.egg-info/entry_points.txt +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata_cli.egg-info/namespace_packages.txt +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata_cli.egg-info/top_level.txt +0 -0
- {okdata-cli-2.0.1 → okdata-cli-3.0.0}/setup.cfg +0 -0
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: okdata-cli
|
|
3
|
-
Version:
|
|
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.
|
|
16
|
+
Requires-Python: >=3.8
|
|
18
17
|
Description-Content-Type: text/markdown
|
|
19
18
|
License-File: LICENSE
|
|
20
19
|
|
|
@@ -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 =
|
|
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,16 +350,14 @@ Options:{BASE_COMMAND_OPTIONS}
|
|
|
350
350
|
"trace_id": res["trace_id"],
|
|
351
351
|
}
|
|
352
352
|
out.add_row(data)
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
)
|
|
362
|
-
)
|
|
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))
|
|
363
361
|
|
|
364
362
|
def download_files(self, source, target):
|
|
365
363
|
dataset_id, version, edition = self._dataset_components_from_uri(source)
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: okdata-cli
|
|
3
|
-
Version:
|
|
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.
|
|
16
|
+
Requires-Python: >=3.8
|
|
18
17
|
Description-Content-Type: text/markdown
|
|
19
18
|
License-File: LICENSE
|
|
20
19
|
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="okdata-cli",
|
|
8
|
-
version="
|
|
8
|
+
version="3.0.0",
|
|
9
9
|
author="Oslo Origo",
|
|
10
10
|
author_email="dataplattform@oslo.kommune.no",
|
|
11
11
|
description="CLI for services provided by Oslo Origo",
|
|
@@ -25,14 +25,13 @@ setuptools.setup(
|
|
|
25
25
|
install_requires=[
|
|
26
26
|
"PrettyTable",
|
|
27
27
|
"docopt",
|
|
28
|
-
"okdata-sdk>=2.
|
|
28
|
+
"okdata-sdk>=2.4.0,<3.0.0",
|
|
29
29
|
"questionary>=1.10.0,<2.0.0",
|
|
30
30
|
"requests",
|
|
31
31
|
],
|
|
32
32
|
entry_points={"console_scripts": ["okdata=okdata.cli.__main__:main"]},
|
|
33
33
|
classifiers=[
|
|
34
34
|
"Development Status :: 5 - Production/Stable",
|
|
35
|
-
"Programming Language :: Python :: 3.7",
|
|
36
35
|
"Programming Language :: Python :: 3.8",
|
|
37
36
|
"Programming Language :: Python :: 3.9",
|
|
38
37
|
"Programming Language :: Python :: 3.10",
|
|
@@ -40,5 +39,5 @@ setuptools.setup(
|
|
|
40
39
|
"License :: OSI Approved :: MIT License",
|
|
41
40
|
"Operating System :: OS Independent",
|
|
42
41
|
],
|
|
43
|
-
python_requires=">=3.
|
|
42
|
+
python_requires=">=3.8",
|
|
44
43
|
)
|
|
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
|
|
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
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_copy_file_config.json
RENAMED
|
File without changes
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_copy_file_config_2.json
RENAMED
|
File without changes
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/datasets_dataset_config.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/my_permissions_config.json
RENAMED
|
File without changes
|
|
File without changes
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/pubreg_audit_log_config.json
RENAMED
|
File without changes
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/pubreg_clients_config.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/status_history_config.json
RENAMED
|
File without changes
|
{okdata-cli-2.0.1 → okdata-cli-3.0.0}/okdata/cli/data/output-format/team_members_config.json
RENAMED
|
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
|