port-ocean 0.1.0.dev5__tar.gz → 0.1.0.dev7__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.

Potentially problematic release.


This version of port-ocean might be problematic. Click here for more details.

Files changed (79) hide show
  1. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/PKG-INFO +1 -1
  2. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/commands.py +9 -11
  3. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Makefile +0 -1
  4. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/client.py +1 -1
  5. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/config/integration.py +1 -1
  6. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/ocean.py +1 -1
  7. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/pyproject.toml +1 -1
  8. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/README.md +0 -0
  9. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/__init__.py +0 -0
  10. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/__init__.py +0 -0
  11. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cli.py +0 -0
  12. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/cookiecutter.json +0 -0
  13. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.dockerignore +0 -0
  14. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.gitignore +0 -0
  15. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Dockerfile +0 -0
  16. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/README.md +0 -0
  17. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/main.py +0 -0
  18. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/poetry.toml +0 -0
  19. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/pyproject.toml +0 -0
  20. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/tests/__init__.py +0 -0
  21. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/download_git_folder.py +0 -0
  22. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/cli/list_integrations.py +0 -0
  23. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/__init__.py +0 -0
  24. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/__init__.py +0 -0
  25. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/authentication.py +0 -0
  26. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/mixins/__init__.py +0 -0
  27. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/mixins/entities.py +0 -0
  28. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/mixins/integrations.py +0 -0
  29. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/types.py +0 -0
  30. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/utils.py +0 -0
  31. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/config/__init__.py +0 -0
  32. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/config/base.py +0 -0
  33. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/consumers/__init__.py +0 -0
  34. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/consumers/base_consumer.py +0 -0
  35. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/consumers/kafka_consumer.py +0 -0
  36. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/context/__init__.py +0 -0
  37. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/context/event.py +0 -0
  38. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/context/ocean.py +0 -0
  39. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/__init__.py +0 -0
  40. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/base.py +0 -0
  41. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/__init__.py +0 -0
  42. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/__init__.py +0 -0
  43. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/base.py +0 -0
  44. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/jq_manipulation.py +0 -0
  45. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/__init__.py +0 -0
  46. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/api.py +0 -0
  47. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/base.py +0 -0
  48. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/models.py +0 -0
  49. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/__init__.py +0 -0
  50. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/base.py +0 -0
  51. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/__init__.py +0 -0
  52. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/get_related_entities.py +0 -0
  53. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/order_by_entities_dependencies.py +0 -0
  54. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/transport.py +0 -0
  55. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/validate_entity_relations.py +0 -0
  56. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/__init__.py +0 -0
  57. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/base.py +0 -0
  58. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/__init__.py +0 -0
  59. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/events.py +0 -0
  60. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/handler.py +0 -0
  61. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/sync.py +0 -0
  62. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/models.py +0 -0
  63. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/__init__.py +0 -0
  64. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/base.py +0 -0
  65. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/factory.py +0 -0
  66. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/http.py +0 -0
  67. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/kafka.py +0 -0
  68. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/settings.py +0 -0
  69. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/types.py +0 -0
  70. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/core/utils.py +0 -0
  71. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/__init__.py +0 -0
  72. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/api.py +0 -0
  73. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/base.py +0 -0
  74. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/clients.py +0 -0
  75. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/context.py +0 -0
  76. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/core.py +0 -0
  77. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/logger_setup.py +0 -0
  78. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/middlewares.py +0 -0
  79. {port_ocean-0.1.0.dev5 → port_ocean-0.1.0.dev7}/port_ocean/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.1.0.dev5
3
+ Version: 0.1.0.dev7
4
4
  Summary: Port Ocean is a CLI tool for managing your Port projects.
5
5
  Author: Daniel Sinai
6
6
  Author-email: daniel@getport.io
@@ -5,7 +5,6 @@ import os
5
5
  import click
6
6
  import toml
7
7
  from cookiecutter.main import cookiecutter # type: ignore
8
- from rich import print
9
8
  from rich.console import Console
10
9
 
11
10
  from port_ocean.cli.download_git_folder import download_folder
@@ -13,6 +12,7 @@ from port_ocean.cli.list_integrations import list_git_folders
13
12
  from port_ocean.logger_setup import LogLevelType
14
13
 
15
14
  CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
15
+ console = Console()
16
16
 
17
17
 
18
18
  def print_logo() -> None:
@@ -55,13 +55,13 @@ def version(short: bool) -> None:
55
55
  """
56
56
  app_version = toml.load("pyproject.toml")["tool"]["poetry"]["version"]
57
57
  if short:
58
- print(f"{app_version}")
58
+ console.print(f"{app_version}")
59
59
  else:
60
- print(f"🌊 Ocean version: {app_version}")
60
+ console.print(f"🌊 Ocean version: {app_version}")
61
61
 
62
62
 
63
63
  @cli_start.command()
64
- @click.argument("path", default="", type=click.Path(exists=True))
64
+ @click.argument("path", default=".", type=click.Path(exists=True))
65
65
  @click.option(
66
66
  "-l",
67
67
  "--log-level",
@@ -75,7 +75,7 @@ is DEBUG.""",
75
75
  )
76
76
  def sail(path: str, log_level: LogLevelType) -> None:
77
77
  """
78
- Runs the integration in the given PATH.
78
+ Runs the integration in the given PATH. if no PATH is provided, the current directory will be used.
79
79
 
80
80
  PATH: Path to the integration.
81
81
  """
@@ -83,7 +83,7 @@ def sail(path: str, log_level: LogLevelType) -> None:
83
83
 
84
84
  print_logo()
85
85
 
86
- print("Setting sail... ⛵️⚓️⛵️⚓️ All hands on deck! ⚓️")
86
+ console.print("Setting sail... ⛵️⚓️⛵️⚓️ All hands on deck! ⚓️")
87
87
  run(path, log_level)
88
88
 
89
89
 
@@ -97,19 +97,18 @@ def new(path: str) -> None:
97
97
  """
98
98
  print_logo()
99
99
 
100
- console = Console()
101
100
  console.print(
102
- "🚢 Unloading cargo... Setting up your integration at the port.", style="bold"
101
+ "🚢 Unloading cargo... Setting up your integration at the dock.", style="bold"
103
102
  )
104
103
 
105
104
  result = cookiecutter(f"{os.path.dirname(__file__)}/cookiecutter", output_dir=path)
106
105
  name = result.split("/")[-1]
107
106
 
108
107
  console.print(
109
- "\n🌊 Ahoy, Captain! Your project has set sail into the vast ocean of possibilities!",
108
+ "\n🌊 Ahoy, Captain! Your project is ready to set sail into the vast ocean of possibilities!",
110
109
  style="bold",
111
110
  )
112
- console.print("Here are your next steps: \n", style="bold")
111
+ console.print("Here are your next steps:\n", style="bold")
113
112
  console.print(
114
113
  "⚓️ Install necessary packages: Run [bold][blue]make install[/blue][/bold] to install all required packages for your project.\n"
115
114
  f"▶️ [bold][blue]cd {path}/{name} && make install && . .venv/bin/activate[/blue][/bold]\n"
@@ -129,7 +128,6 @@ def list_integrations() -> None:
129
128
  """
130
129
  List all available public integrations.
131
130
  """
132
- console = Console()
133
131
  console.print("🌊 Here are the integrations available to you:", style="bold")
134
132
  options = list_git_folders("https://github.com/port-labs/pulumi", "examples")
135
133
 
@@ -1,4 +1,3 @@
1
- SHELL := /bin/bash
2
1
  ACTIVATE := . .venv/bin/activate
3
2
 
4
3
  define run_lint
@@ -22,7 +22,7 @@ class PortClient(EntityClientMixin, IntegrationClientMixin):
22
22
  integration_identifier: str,
23
23
  integration_type: str,
24
24
  ):
25
- self.api_url = f"{base_url}/api/v1"
25
+ self.api_url = f"{base_url}/v1"
26
26
  self.auth = PortAuthentication(
27
27
  client_id,
28
28
  client_secret,
@@ -13,7 +13,7 @@ from port_ocean.core.trigger_channel.settings import (
13
13
  class PortSettings(BaseSettings):
14
14
  client_id: str = Field(alias="clientId")
15
15
  client_secret: str = Field(alias="clientSecret")
16
- base_url: str = Field(alias="baseUrl", default="https://api.getport.io/v1")
16
+ base_url: str = Field(alias="baseUrl", default="https://api.getport.io")
17
17
 
18
18
 
19
19
  class IntegrationSettings(BaseSettings):
@@ -108,7 +108,7 @@ class Ocean:
108
108
  await self.fast_api_app(scope, receive, send)
109
109
 
110
110
 
111
- def run(path: str, log_level: LogLevelType = "DEBUG") -> None:
111
+ def run(path: str = ".", log_level: LogLevelType = "DEBUG") -> None:
112
112
  setup_logger(log_level)
113
113
  sys.path.append(".")
114
114
  try:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "port-ocean"
3
- version = "0.1.0.dev5"
3
+ version = "0.1.0.dev7"
4
4
  description = "Port Ocean is a CLI tool for managing your Port projects."
5
5
  readme = "README.md"
6
6
  authors = ["Daniel Sinai <daniel@getport.io>", "Yair Siman-Tov <yair@getport.io>"]