port-ocean 0.1.0.dev6__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.
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/PKG-INFO +1 -1
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/commands.py +9 -11
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Makefile +0 -1
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/client.py +1 -1
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/config/integration.py +1 -1
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/ocean.py +1 -1
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/pyproject.toml +1 -1
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/README.md +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cli.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/cookiecutter.json +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.dockerignore +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.gitignore +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Dockerfile +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/README.md +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/main.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/poetry.toml +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/pyproject.toml +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/tests/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/download_git_folder.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/list_integrations.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/authentication.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/mixins/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/mixins/entities.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/mixins/integrations.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/types.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/utils.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/config/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/config/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/consumers/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/consumers/base_consumer.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/consumers/kafka_consumer.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/context/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/context/event.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/context/ocean.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/jq_manipulation.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/api.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/models.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/get_related_entities.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/order_by_entities_dependencies.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/transport.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/validate_entity_relations.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/events.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/handler.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/sync.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/models.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/factory.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/http.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/kafka.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/trigger_channel/settings.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/types.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/utils.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/__init__.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/api.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/base.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/clients.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/context.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/exceptions/core.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/logger_setup.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/middlewares.py +0 -0
- {port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/utils.py +0 -0
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
|
@@ -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}/
|
|
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
|
|
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.
|
|
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>"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/cli/cookiecutter/cookiecutter.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/clients/port/mixins/integrations.py
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/__init__.py
RENAMED
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/manipulation/base.py
RENAMED
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/__init__.py
RENAMED
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/api.py
RENAMED
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/base.py
RENAMED
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/port_app_config/models.py
RENAMED
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/handlers/transport/port/transport.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/__init__.py
RENAMED
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/events.py
RENAMED
|
File without changes
|
{port_ocean-0.1.0.dev6 → port_ocean-0.1.0.dev7}/port_ocean/core/integrations/mixins/handler.py
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
|
|
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
|