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.
Files changed (16) hide show
  1. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/PKG-INFO +1 -1
  2. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/openapi.py +18 -3
  3. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/pyproject.toml +1 -1
  4. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/README.md +0 -0
  5. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/__init__.py +0 -0
  6. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/assets/default_apps.json +0 -0
  7. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/assets/landing_page.html +0 -0
  8. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/main.py +0 -0
  9. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/query_models.py +0 -0
  10. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/response_models.py +0 -0
  11. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/__init__.py +0 -0
  12. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/api.py +0 -0
  13. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_agents.py +0 -0
  14. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_apps.py +0 -0
  15. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/merge_widgets.py +0 -0
  16. {openbb_platform_api-1.3.3 → openbb_platform_api-1.3.4}/openbb_platform_api/utils/widgets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openbb-platform-api
3
- Version: 1.3.3
3
+ Version: 1.3.4
4
4
  Summary: OpenBB Platform API: Launch script and widgets builder for the Open Data Platform REST API and Workspace Backend Connector.
5
5
  License: AGPL-3.0-only
6
6
  Author: OpenBB
@@ -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
- p["available_providers"] = valid_provider_list
545
- # Check if any of our current providers match the validated available providers list
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 valid_provider_list]
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"
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"