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.

Files changed (99) hide show
  1. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/PKG-INFO +1 -1
  2. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/integrations.py +2 -2
  3. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/settings.py +1 -1
  4. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/utils.py +2 -1
  5. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/ocean_types.py +1 -1
  6. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/logger_setup.py +3 -1
  7. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/port_defaults.py +1 -1
  8. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/pyproject.toml +1 -1
  9. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/LICENSE +0 -0
  10. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/README.md +0 -0
  11. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/__init__.py +0 -0
  12. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/__init__.py +0 -0
  13. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cli.py +0 -0
  14. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/__init__.py +0 -0
  15. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/list_integrations.py +0 -0
  16. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/main.py +0 -0
  17. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/new.py +0 -0
  18. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/pull.py +0 -0
  19. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/sail.py +0 -0
  20. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/commands/version.py +0 -0
  21. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/cookiecutter.json +0 -0
  22. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.dockerignore +0 -0
  23. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.gitignore +0 -0
  24. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/.gitignore +0 -0
  25. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/spec.yaml +0 -0
  26. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/CHANGELOG.md +0 -0
  27. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Dockerfile +0 -0
  28. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Makefile +0 -0
  29. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/README.md +0 -0
  30. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/changelog/.gitignore +0 -0
  31. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/config.yaml +0 -0
  32. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/debug.py +0 -0
  33. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/main.py +0 -0
  34. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/poetry.toml +0 -0
  35. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/pyproject.toml +0 -0
  36. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/tests/__init__.py +0 -0
  37. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/cli/utils.py +0 -0
  38. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/__init__.py +0 -0
  39. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/__init__.py +0 -0
  40. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/authentication.py +0 -0
  41. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/client.py +0 -0
  42. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/__init__.py +0 -0
  43. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/blueprints.py +0 -0
  44. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/mixins/entities.py +0 -0
  45. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/types.py +0 -0
  46. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/clients/port/utils.py +0 -0
  47. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/__init__.py +0 -0
  48. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/base.py +0 -0
  49. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/config/dynamic.py +0 -0
  50. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/consumers/__init__.py +0 -0
  51. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/consumers/base_consumer.py +0 -0
  52. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/consumers/kafka_consumer.py +0 -0
  53. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/context/__init__.py +0 -0
  54. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/context/event.py +0 -0
  55. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/context/ocean.py +0 -0
  56. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/__init__.py +0 -0
  57. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/base.py +0 -0
  58. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/__init__.py +0 -0
  59. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/base.py +0 -0
  60. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/factory.py +0 -0
  61. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/http/event_listener.py +0 -0
  62. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/kafka/event_listener.py +0 -0
  63. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/polling/event_listener.py +0 -0
  64. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/event_listener/polling/utils.py +0 -0
  65. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/__init__.py +0 -0
  66. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/__init__.py +0 -0
  67. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/base.py +0 -0
  68. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/port/__init__.py +0 -0
  69. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entities_state_applier/port/applier.py +0 -0
  70. {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
  71. {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
  72. {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
  73. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entity_processor/__init__.py +0 -0
  74. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entity_processor/base.py +0 -0
  75. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/entity_processor/jq_entity_processor.py +0 -0
  76. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/__init__.py +0 -0
  77. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/api.py +0 -0
  78. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/base.py +0 -0
  79. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/handlers/port_app_config/models.py +0 -0
  80. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/__init__.py +0 -0
  81. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/base.py +0 -0
  82. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/__init__.py +0 -0
  83. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/events.py +0 -0
  84. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/handler.py +0 -0
  85. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/integrations/mixins/sync.py +0 -0
  86. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/models.py +0 -0
  87. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/core/utils.py +0 -0
  88. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/__init__.py +0 -0
  89. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/api.py +0 -0
  90. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/base.py +0 -0
  91. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/clients.py +0 -0
  92. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/context.py +0 -0
  93. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/core.py +0 -0
  94. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/exceptions/port_defaults.py +0 -0
  95. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/middlewares.py +0 -0
  96. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/ocean.py +0 -0
  97. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/py.typed +0 -0
  98. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/port_ocean/run.py +0 -0
  99. {port_ocean-0.1.4.dev7 → port_ocean-0.1.4.dev9}/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.4.dev7
3
+ Version: 0.1.4.dev9
4
4
  Summary: Port Ocean is a CLI tool for managing your Port projects.
5
5
  Home-page: https://app.getport.io
6
6
  Keywords: ocean,port-ocean,port
@@ -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(
@@ -9,7 +9,7 @@ LogLevelType = Literal["ERROR", "WARNING", "INFO", "DEBUG", "CRITICAL"]
9
9
 
10
10
 
11
11
  class ApplicationSettings(BaseSettings):
12
- log_level: LogLevelType = "DEBUG"
12
+ log_level: LogLevelType = "INFO"
13
13
  port: int = 8000
14
14
 
15
15
  class Config:
@@ -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([result])[0]
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[RAW_ITEM]
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> | {extra}"
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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "port-ocean"
3
- version = "0.1.4dev7"
3
+ version = "0.1.4dev9"
4
4
  description = "Port Ocean is a CLI tool for managing your Port projects."
5
5
  readme = "README.md"
6
6
  homepage = "https://app.getport.io"
File without changes