port-ocean 0.2.1__tar.gz → 0.2.2.dev1__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.
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/PKG-INFO +1 -1
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/config/base.py +13 -10
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/pyproject.toml +1 -1
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/LICENSE +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/README.md +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cli.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/commands/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/commands/list_integrations.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/commands/main.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/commands/new.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/commands/pull.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/commands/sail.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/commands/version.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/cookiecutter.json +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.dockerignore +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.gitignore +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/.gitignore +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/spec.yaml +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/CHANGELOG.md +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Dockerfile +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Makefile +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/README.md +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/changelog/.gitignore +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/config.yaml +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/debug.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/main.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/poetry.toml +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/pyproject.toml +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/tests/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/cli/utils.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/authentication.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/client.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/mixins/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/mixins/blueprints.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/mixins/entities.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/mixins/integrations.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/types.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/clients/port/utils.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/config/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/config/dynamic.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/config/settings.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/consumers/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/consumers/base_consumer.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/consumers/kafka_consumer.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/context/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/context/event.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/context/ocean.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/base.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/base.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/factory.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/http/event_listener.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/kafka/event_listener.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/polling/event_listener.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/polling/utils.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/base.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/port/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/port/applier.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/port/get_related_entities.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/port/order_by_entities_dependencies.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/port/validate_entity_relations.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entity_processor/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entity_processor/base.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entity_processor/jq_entity_processor.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/port_app_config/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/port_app_config/api.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/port_app_config/base.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/port_app_config/models.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/integrations/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/integrations/base.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/integrations/mixins/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/integrations/mixins/events.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/integrations/mixins/handler.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/integrations/mixins/sync.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/integrations/mixins/utils.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/models.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/ocean_types.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/utils.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/exceptions/__init__.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/exceptions/api.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/exceptions/base.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/exceptions/clients.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/exceptions/context.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/exceptions/core.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/exceptions/port_defaults.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/logger_setup.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/middlewares.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/ocean.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/port_defaults.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/py.typed +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/run.py +0 -0
- {port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/utils.py +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import re
|
|
3
3
|
from pathlib import Path
|
|
4
|
+
from types import GenericAlias
|
|
4
5
|
from typing import Any
|
|
5
6
|
|
|
6
7
|
import yaml
|
|
@@ -70,18 +71,20 @@ def parse_config(
|
|
|
70
71
|
"""
|
|
71
72
|
for key, value in config.items():
|
|
72
73
|
decamelize_key = decamelize(key)
|
|
73
|
-
if isinstance(value, dict):
|
|
74
|
+
if isinstance(value, dict) and settings_model is not None:
|
|
74
75
|
# If the value is ModelMetaClass typed then its a nested model, and we need to parse it
|
|
75
|
-
# If the value is a dict then we need to decamelize the keys and not recurse into the values
|
|
76
|
+
# If the value is a primitive dict then we need to decamelize the keys and not recurse into the values because its no longer part of the model
|
|
76
77
|
_type = settings_model.__annotations__[decamelize_key]
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
is_primitive_dict_type = _type is dict or (
|
|
79
|
+
isinstance(_type, GenericAlias) and _type.__origin__ is dict
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
if is_primitive_dict_type:
|
|
83
|
+
_type = None
|
|
84
|
+
|
|
85
|
+
existing_data[decamelize_key] = parse_config(
|
|
86
|
+
_type, value, existing_data.get(decamelize_key, {})
|
|
87
|
+
)
|
|
85
88
|
|
|
86
89
|
elif isinstance(value, str):
|
|
87
90
|
# If the value is a provider, we try to load it from the provider
|
|
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
|
|
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
|
|
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.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/http/event_listener.py
RENAMED
|
File without changes
|
{port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/kafka/event_listener.py
RENAMED
|
File without changes
|
{port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/event_listener/polling/event_listener.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entities_state_applier/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entity_processor/__init__.py
RENAMED
|
File without changes
|
{port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/entity_processor/base.py
RENAMED
|
File without changes
|
|
File without changes
|
{port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/port_app_config/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{port_ocean-0.2.1 → port_ocean-0.2.2.dev1}/port_ocean/core/handlers/port_app_config/models.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|