port-ocean 0.1.4.dev7__tar.gz → 0.1.4.dev9__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.4.dev7 → port_ocean-0.1.4.dev9}/PKG-INFO +1 -1
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/integrations.py +2 -2
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/settings.py +1 -1
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/utils.py +2 -1
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/ocean_types.py +1 -1
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/logger_setup.py +3 -1
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/port_defaults.py +1 -1
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/pyproject.toml +1 -1
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/LICENSE +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/README.md +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cli.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/list_integrations.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/main.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/new.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/pull.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/sail.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/version.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/cookiecutter.json +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.dockerignore +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.gitignore +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/.gitignore +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/spec.yaml +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/CHANGELOG.md +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Dockerfile +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Makefile +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/README.md +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/changelog/.gitignore +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/config.yaml +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/debug.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/main.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/poetry.toml +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/pyproject.toml +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/tests/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/utils.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/authentication.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/client.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/blueprints.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/entities.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/types.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/utils.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/dynamic.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/consumers/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/consumers/base_consumer.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/consumers/kafka_consumer.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/context/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/context/event.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/context/ocean.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/factory.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/http/event_listener.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/kafka/event_listener.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/polling/event_listener.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/polling/utils.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/port/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/port/applier.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/port/get_related_entities.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/port/order_by_entities_dependencies.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/port/validate_entity_relations.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entity_processor/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entity_processor/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entity_processor/jq_entity_processor.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/api.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/models.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/events.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/handler.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/sync.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/models.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/utils.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/__init__.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/api.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/base.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/clients.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/context.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/core.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/port_defaults.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/middlewares.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/ocean.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/py.typed +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/run.py +0 -0
- {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/utils.py +0 -0
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/integrations.py
RENAMED
|
@@ -30,9 +30,9 @@ class IntegrationClientMixin:
|
|
|
30
30
|
)
|
|
31
31
|
return response
|
|
32
32
|
|
|
33
|
-
async def get_current_integration(self) -> dict[str, Any]:
|
|
33
|
+
async def get_current_integration(self, should_raise: bool = True, should_log: bool = True) -> dict[str, Any]:
|
|
34
34
|
response = await self._get_current_integration()
|
|
35
|
-
handle_status_code(response)
|
|
35
|
+
handle_status_code(response, should_raise, should_log)
|
|
36
36
|
return response.json()["integration"]
|
|
37
37
|
|
|
38
38
|
async def create_integration(
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/utils.py
RENAMED
|
@@ -2,6 +2,7 @@ from contextlib import contextmanager
|
|
|
2
2
|
from typing import Awaitable, Generator, Callable
|
|
3
3
|
|
|
4
4
|
from loguru import logger
|
|
5
|
+
|
|
5
6
|
from port_ocean.core.ocean_types import (
|
|
6
7
|
ASYNC_GENERATOR_RESYNC_TYPE,
|
|
7
8
|
RAW_RESULT,
|
|
@@ -44,7 +45,7 @@ async def resync_generator_wrapper(
|
|
|
44
45
|
try:
|
|
45
46
|
with resync_error_handling():
|
|
46
47
|
result = await anext(generator)
|
|
47
|
-
yield validate_result(
|
|
48
|
+
yield validate_result(result)
|
|
48
49
|
except OceanAbortException as error:
|
|
49
50
|
errors.append(error)
|
|
50
51
|
except StopAsyncIteration:
|
|
@@ -15,7 +15,7 @@ class EntityDiff(TypedDict):
|
|
|
15
15
|
|
|
16
16
|
RAW_ITEM = dict[Any, Any]
|
|
17
17
|
RAW_RESULT = list[RAW_ITEM]
|
|
18
|
-
ASYNC_GENERATOR_RESYNC_TYPE = AsyncIterator[
|
|
18
|
+
ASYNC_GENERATOR_RESYNC_TYPE = AsyncIterator[RAW_RESULT]
|
|
19
19
|
RESYNC_RESULT = list[RAW_ITEM | ASYNC_GENERATOR_RESYNC_TYPE]
|
|
20
20
|
|
|
21
21
|
LISTENER_RESULT = Awaitable[RAW_RESULT] | ASYNC_GENERATOR_RESYNC_TYPE
|
|
@@ -10,8 +10,10 @@ def setup_logger(level: LogLevelType) -> None:
|
|
|
10
10
|
logger_format = (
|
|
11
11
|
"<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | "
|
|
12
12
|
"<level>{level: <8}</level> | "
|
|
13
|
-
"<level>{message}</level>
|
|
13
|
+
"<level>{message}</level>"
|
|
14
14
|
)
|
|
15
|
+
if level == "DEBUG":
|
|
16
|
+
logger_format += " | {extra}"
|
|
15
17
|
|
|
16
18
|
logger.remove()
|
|
17
19
|
logger.add(
|
|
@@ -41,7 +41,7 @@ class Defaults(BaseModel):
|
|
|
41
41
|
|
|
42
42
|
async def _is_integration_exists(port_client: PortClient) -> bool:
|
|
43
43
|
try:
|
|
44
|
-
await port_client.get_current_integration()
|
|
44
|
+
await port_client.get_current_integration(should_log=False)
|
|
45
45
|
return True
|
|
46
46
|
except httpx.HTTPStatusError as e:
|
|
47
47
|
if e.response.status_code != status.HTTP_404_NOT_FOUND:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/list_integrations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/blueprints.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
|
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/polling/utils.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
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entity_processor/base.py
RENAMED
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/__init__.py
RENAMED
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/api.py
RENAMED
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/base.py
RENAMED
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/__init__.py
RENAMED
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/events.py
RENAMED
|
File without changes
|
{port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/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
|