openbb-platform-api 1.3.5__tar.gz → 1.3.6__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.5 → openbb_platform_api-1.3.6}/PKG-INFO +2 -2
  2. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/assets/default_apps.json +0 -98
  3. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/main.py +7 -3
  4. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/pyproject.toml +2 -2
  5. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/README.md +0 -0
  6. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/__init__.py +0 -0
  7. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/assets/landing_page.html +0 -0
  8. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/query_models.py +0 -0
  9. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/response_models.py +0 -0
  10. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/utils/__init__.py +0 -0
  11. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/utils/api.py +0 -0
  12. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/utils/merge_agents.py +0 -0
  13. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/utils/merge_apps.py +0 -0
  14. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/utils/merge_widgets.py +0 -0
  15. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/openbb_platform_api/utils/openapi.py +0 -0
  16. {openbb_platform_api-1.3.5 → openbb_platform_api-1.3.6}/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.5
3
+ Version: 1.3.6
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
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.12
14
14
  Classifier: Programming Language :: Python :: 3.13
15
15
  Classifier: Programming Language :: Python :: 3.14
16
16
  Requires-Dist: deepdiff (>=8.6.2)
17
- Requires-Dist: openbb-core (>=1.6.4,<2.0.0)
17
+ Requires-Dist: openbb-core (>=1.6.10,<2.0.0)
18
18
  Project-URL: Documentation, https://docs.openbb.co/odp/python/extensions/interface/openbb-api
19
19
  Project-URL: Homepage, https://openbb.co
20
20
  Project-URL: Repository, https://github.com/openbb-finance/openbb
@@ -435,103 +435,5 @@
435
435
  }
436
436
  },
437
437
  "groups": []
438
- },
439
- {
440
- "name": "The United States Congress",
441
- "img": "https://www.congress.gov/img/opengraph1200by630.jpg",
442
- "img_dark": "https://www.congress.gov/img/opengraph1200by630.jpg",
443
- "img_light": "https://www.congress.gov/img/opengraph1200by630.jpg",
444
- "description": "Find and view US federal legislative information and complete bill text.",
445
- "allowCustomization": true,
446
- "tabs": {
447
- "": {
448
- "id": "",
449
- "name": "",
450
- "layout": [
451
- {
452
- "i": "uscongress_bills_congress_gov_obb",
453
- "x": 0,
454
- "y": 0,
455
- "w": 40,
456
- "h": 11,
457
- "state": {
458
- "params": {
459
- "bill_url": "119/hr/1"
460
- },
461
- "chartView": {
462
- "enabled": false,
463
- "chartType": "line"
464
- },
465
- "columnState": {
466
- "default": {
467
- "columnVisibility": {
468
- "hiddenColIds": [
469
- "origin_chamber_code"
470
- ]
471
- },
472
- "columnOrder": {
473
- "orderedColIds": [
474
- "update_date",
475
- "latest_action_date",
476
- "bill_url",
477
- "congress",
478
- "bill_number",
479
- "origin_chamber",
480
- "origin_chamber_code",
481
- "bill_type",
482
- "title",
483
- "latest_action",
484
- "update_date_including_text"
485
- ]
486
- },
487
- "focusedCell": {
488
- "colId": "bill_url",
489
- "rowIndex": 2,
490
- "rowPinned": null
491
- }
492
- }
493
- }
494
- }
495
- },
496
- {
497
- "i": "uscongress_bill_text_congress_gov_obb",
498
- "x": 16,
499
- "y": 11,
500
- "w": 24,
501
- "h": 41,
502
- "state": {
503
- "params": {
504
- "bill_url": "119/hr/1"
505
- }
506
- }
507
- },
508
- {
509
- "i": "uscongress_bill_info_congress_gov_obb",
510
- "x": 0,
511
- "y": 11,
512
- "w": 16,
513
- "h": 41,
514
- "state": {
515
- "params": {
516
- "bill_url": "119/hr/1"
517
- }
518
- }
519
- }
520
- ]
521
- }
522
- },
523
- "groups": [
524
- {
525
- "name": "Group 1",
526
- "type": "param",
527
- "paramName": "bill_url",
528
- "defaultValue": "119/hr/1",
529
- "widgetIds": [
530
- "uscongress_bills_congress_gov_obb",
531
- "uscongress_bill_text_congress_gov_obb",
532
- "uscongress_bill_info_congress_gov_obb"
533
- ]
534
- }
535
- ]
536
438
  }
537
439
  ]
@@ -194,6 +194,7 @@ if not has_root_apps:
194
194
 
195
195
  if has_additional_apps(app):
196
196
  additional_apps = await get_additional_apps(app)
197
+
197
198
  if additional_apps:
198
199
  for apps in additional_apps.values():
199
200
  if not apps:
@@ -225,7 +226,8 @@ if not has_root_apps:
225
226
  if _tabs := template.get("tabs"):
226
227
  for v in _tabs.values():
227
228
  if v.get("layout", []) and all(
228
- item.get("i") in widgets_json
229
+ item.get("i", "").startswith("rich_note")
230
+ or item.get("i") in widgets_json
229
231
  for item in v.get("layout")
230
232
  ):
231
233
  new_templates.append(template)
@@ -233,7 +235,9 @@ if not has_root_apps:
233
235
  elif (
234
236
  template.get("layout")
235
237
  and all(
236
- item.get("i") in widgets_json for item in template["layout"]
238
+ item.get("i", "").startswith("rich_note")
239
+ or item.get("i") in widgets_json
240
+ for item in template["layout"]
237
241
  )
238
242
  and template not in new_templates
239
243
  ):
@@ -282,7 +286,7 @@ else:
282
286
 
283
287
 
284
288
  def launch_api(**_kwargs): # noqa PRL0912
285
- """Main function."""
289
+ """Start the API server."""
286
290
  host = _kwargs.pop("host", os.getenv("OPENBB_API_HOST", "127.0.0.1"))
287
291
  if not host:
288
292
  logger.info(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "openbb-platform-api"
3
- version = "1.3.5"
3
+ version = "1.3.6"
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"
@@ -15,7 +15,7 @@ openbb-api = "openbb_platform_api.main:main"
15
15
 
16
16
  [tool.poetry.dependencies]
17
17
  python = ">=3.10,<4"
18
- openbb-core = "^1.6.4"
18
+ openbb-core = "^1.6.10"
19
19
  deepdiff = ">=8.6.2"
20
20
 
21
21
  [build-system]