openbb-platform-api 1.3.3__tar.gz → 1.3.4__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.
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/PKG-INFO +1 -1
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/openapi.py +18 -3
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/pyproject.toml +1 -1
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/README.md +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/__init__.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/assets/default_apps.json +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/assets/landing_page.html +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/main.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/query_models.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/response_models.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/__init__.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/api.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_agents.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_apps.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_widgets.py +0 -0
- {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/widgets.py +0 -0
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/openapi.py
RENAMED
|
@@ -355,6 +355,12 @@ def _extract_provider_description(full_description: str, provider: str) -> str:
|
|
|
355
355
|
if is_matching_provider and i > 0:
|
|
356
356
|
# The description is the part before this marker
|
|
357
357
|
desc = parts[i - 1].strip()
|
|
358
|
+
# When a preceding text contains multiple sections separated by
|
|
359
|
+
# ";\n " (e.g. "general desc ...;\n provider-specific desc"),
|
|
360
|
+
# extract the last section which belongs to this provider marker.
|
|
361
|
+
sections = re.split(r";\s*\n\s*", desc)
|
|
362
|
+
if len(sections) > 1:
|
|
363
|
+
desc = sections[-1].strip()
|
|
358
364
|
# Remove leading semicolons and whitespace from continuation sections
|
|
359
365
|
desc = re.sub(r"^;\s*", "", desc).strip()
|
|
360
366
|
# Remove "Multiple comma separated items allowed" suffix
|
|
@@ -541,11 +547,20 @@ def process_parameter(
|
|
|
541
547
|
]
|
|
542
548
|
|
|
543
549
|
if valid_provider_list:
|
|
544
|
-
|
|
545
|
-
#
|
|
550
|
+
# If set_parameter_options already determined a broader
|
|
551
|
+
# available_providers list (by inspecting actual schema entries),
|
|
552
|
+
# prefer that over the narrower title/description-based list.
|
|
553
|
+
existing_providers = p.get("available_providers")
|
|
554
|
+
if not existing_providers or len(valid_provider_list) > len(
|
|
555
|
+
existing_providers
|
|
556
|
+
):
|
|
557
|
+
p["available_providers"] = valid_provider_list
|
|
558
|
+
|
|
559
|
+
effective_providers = p["available_providers"]
|
|
560
|
+
# Check if any of our current providers match the available providers list
|
|
546
561
|
valid_for_current_providers = any(
|
|
547
562
|
current_provider.lower()
|
|
548
|
-
in [valid_p.lower() for valid_p in
|
|
563
|
+
in [valid_p.lower() for valid_p in effective_providers]
|
|
549
564
|
for current_provider in providers
|
|
550
565
|
)
|
|
551
566
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "openbb-platform-api"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.4"
|
|
4
4
|
description = "OpenBB Platform API: Launch script and widgets builder for the Open Data Platform REST API and Workspace Backend Connector."
|
|
5
5
|
authors = ["OpenBB <hello@openbb.co>"]
|
|
6
6
|
license = "AGPL-3.0-only"
|
|
File without changes
|
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/assets/default_apps.json
RENAMED
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/assets/landing_page.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/response_models.py
RENAMED
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_agents.py
RENAMED
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_apps.py
RENAMED
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_widgets.py
RENAMED
|
File without changes
|
{openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/widgets.py
RENAMED
|
File without changes
|