dataall-cli 0.4.1__tar.gz → 0.4.2__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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dataall-cli
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: AWS data.all CLI
5
5
  License: Apache-2.0
6
6
  Keywords: dataall,aws
@@ -15,7 +15,7 @@ Requires-Dist: atomicfile (>=1.0.1)
15
15
  Requires-Dist: boto3 (>=1.28.22)
16
16
  Requires-Dist: botocore (>=1.31.22)
17
17
  Requires-Dist: click (>=8.1.6)
18
- Requires-Dist: dataall-core (==0.4.1)
18
+ Requires-Dist: dataall-core (>=0.4.2)
19
19
  Requires-Dist: packaging (>=21.1,<24.0)
20
20
  Requires-Dist: setuptools ; python_version >= "3.12"
21
21
  Requires-Dist: typing-extensions (>=4.4.0)
@@ -16,22 +16,12 @@ import sys
16
16
 
17
17
  from dataall_core.profile import CONFIG_PATH
18
18
 
19
- from .__metadata__ import ( # noqa: F401
20
- __description__,
21
- __license__,
22
- __title__,
23
- __version__,
19
+ logging.basicConfig(
20
+ stream=sys.stderr,
21
+ format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
22
+ level=os.environ.get("dataall_cli_loglevel", "INFO").upper(),
24
23
  )
25
24
 
26
- root_logger = logging.getLogger("dataall_cli")
27
- root_logger.setLevel(os.environ.get("dataall_cli_loglevel", "INFO").upper())
28
-
29
- handler = logging.StreamHandler(sys.stdout)
30
- handler.setFormatter(
31
- logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
32
- )
33
- root_logger.addHandler(handler)
34
-
35
25
  DA_CONFIG_PATH = os.getenv("dataall_config_path", CONFIG_PATH)
36
26
  CREDS_PATH = os.getenv("dataall_creds_path", None)
37
27
  SCHEMA_PATH = os.getenv("dataall_schema_path", None)
@@ -9,8 +9,8 @@ import click
9
9
  from dataall_core.dataall_client import DataallClient
10
10
  from dataall_core.profile import CONFIG_PATH
11
11
 
12
- from .bind_commands import bind
13
- from .utils import save_config
12
+ from dataall_cli.bind_commands import bind
13
+ from dataall_cli.utils import save_config
14
14
 
15
15
  DA_CONFIG_PATH = os.getenv("dataall_config_path", CONFIG_PATH)
16
16
  CREDS_PATH = os.getenv("dataall_creds_path", None)
@@ -36,7 +36,7 @@ commands = da.op_dict
36
36
  @click.group(name="dataall_cli", invoke_without_command=True)
37
37
  def dataall_cli() -> None:
38
38
  """data.all cli groups."""
39
- click.echo("Executing dataall_cli.")
39
+ click.echo("Executing dataall_cli.", err=True)
40
40
  pass
41
41
 
42
42
 
@@ -112,7 +112,7 @@ def configure(
112
112
  profile: str,
113
113
  ) -> None:
114
114
  """Configure data.all client for a given user, use profile to setup multiple user profiles."""
115
- click.echo("Configuring data.all CLI...")
115
+ click.echo("Configuring data.all CLI...", err=True)
116
116
 
117
117
  try:
118
118
  profile_params_dict = {
@@ -143,6 +143,6 @@ def configure(
143
143
  params_dict=profile_params_dict,
144
144
  config_path=Path(DA_CONFIG_PATH),
145
145
  )
146
- click.echo("data.all CLI configured successfully.")
146
+ click.echo("data.all CLI configured successfully.", err=True)
147
147
  except Exception as e:
148
- click.echo(f"An error occurred: {e}")
148
+ click.echo(f"An error occurred: {e}", err=True)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dataall-cli"
3
- version = "0.4.1"
3
+ version = "0.4.2"
4
4
  description = "AWS data.all CLI"
5
5
  authors = [{ name = "Amazon Web Services" }]
6
6
  license = { text = "Apache License 2.0" }
@@ -22,7 +22,7 @@ dependencies = [
22
22
  "atomicfile>=1.0.1",
23
23
  "PyYAML>=6.0.1",
24
24
  "setuptools; python_version >= '3.12'",
25
- "dataall-core==0.4.1",
25
+ "dataall-core>=0.4.2",
26
26
  ]
27
27
 
28
28
  [project.scripts]
@@ -1,11 +0,0 @@
1
- """Metadata Module.
2
-
3
- Source repository: TODO
4
- Documentation: TODO
5
-
6
- """
7
-
8
- __title__: str = "dataall_cli"
9
- __description__: str = "AWS Dataall CLI"
10
- __version__: str = "0.3.0a1"
11
- __license__: str = "Apache License 2.0"
File without changes
File without changes
File without changes
File without changes