22 Commits

Author SHA1 Message Date
Danglewood
d3537dd155 [Feature] Add Support For Python 3.14 (#7349)
* add support for Python 3.14

* escape % in argparse_translator in help strings

* black

* cli python version string

* fix test param placeholder

* fix integration_tests_testers

* add 3.14 to ODP Desktop environment creation choices

* partial lock update

* update lock files

* and the rest of the locks

---------

Co-authored-by: deeleeramone <>
2026-02-18 00:40:18 +00:00
Rin
f962b1a420 fix(cli): prevent internal type annotations from leaking into help descriptions (#7302)
* fix(cli): prevent internal type annotations from leaking into help descriptions

* fix(cli): remove whitespace from blank line to satisfy linting rules

* fix(cli): resolve linting issues in argparse_translator.py

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2026-01-11 20:37:30 +00:00
Danglewood
1bbf209060 [BugFix] openbb-cli: Handle Pipe Union Types in argparse_translator (#7257)
* handle pipe union types in argparse_translator

* lock file
2025-10-30 02:00:14 +00:00
Danglewood
9f0d592839 [Feature] Remove Python 3.9 (#7235)
* remove python 3.9 support and code

* black

* more cli lint

* more linting

* more lint

* fix for tests

* docstring grammar police

* add lock to to build function to avoid async import race conditions

* grammar police

* lots more linting

* relock
2025-10-10 23:16:16 +00:00
Danglewood
a1b95cf604 [Feature] FOMC Documents With Workspace Multi-File Viewer Widget (#7065)
* add endpoint for FOMC documents with multi-file viewer widget in Workspace

* handle basic cli

* fix router_testers

* lint

* lint

* lint

* add widget to default_templates
2025-03-30 02:36:37 +00:00
Danglewood
5c33b0723b [BugFix] Fixes Docstring Generator Broken By #7066 (#7069)
* fix the docstring generator.

* de-duplicate multiple comma separated  items allowed line

* linting

* linting

* linting

* linting

* patch argparse_translator

* openbb-build before CLI tests in noxfile

* lint

* fix List in CLI tests..?

* undo nox

* lint

* lint

* nice edge case import primitives from typing extension

* actually nip it

* black

* docstrings in custom routers and response models

* lint

* lint

* widget process parameter sequence

* lint

* partial fix test

* edge with Query object as default value

* deduplicate choices

* type: ignore

* fix provider discovery for widgets.json

* more fixies

* more updates

* initialize docstring local

* better

* dedent defaults wrapper
2025-03-24 16:17:45 +00:00
Danglewood
7d7456a938 [BugFix] Run ruff check --fix (#6984)
* run ruff check --fix on openbb-core

* rest of the repo

* black

* type: ignore

* more linting
2024-12-07 14:18:05 +00:00
Danglewood
a4ed8ab623 [Feature] Add Finviz Screener Presets (V3 Compatible) (#6601)
* add finviz screener presets

* codespell

* init docstring

* no-else-raise

* test params

* not needed in json_schema_extra

* order by settings

* preset description
2024-07-30 16:16:18 +00:00
Henrique Joaquim
fdfacc8363 [Feature] Improved cached results (#6506)
* flag to store cached results, or not

* using keys to reference obbjects in the registry and data processing commands

* out of bonds check

* controlling results, by index or key and displaying charts

* autocompletion

* deps

* forward ref

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-06-18 14:19:39 +00:00
Danglewood
8b9f461dca [Enhancement] Convert Params Models To Dictionary Before Assigning As Private Attribute In OBBject. (#6492)
* convert params models to dict

* update cli test

* fix test_static_command_runner_chart

* mock_obbject results

* minor linting adjustments

* review changes

* charting test mock obbject

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-06-13 08:12:55 +00:00
Henrique Joaquim
413cce8302 remove remember contexts setting (#6496) 2024-06-12 10:56:03 +00:00
montezdesousa
a52b24c16b [BugFix] - Fix pylint possibly-used-before-assignment (#6484)
* fix: comply w/ possibly used before assignment

* remove disabe from .pylintrc

* remove reset test

* remove reset test

* fix: update missing keys message
2024-06-05 15:40:24 +00:00
Henrique Joaquim
f860c6d797 [Feature] Optional choices (#6463)
* using the custom argument to leverage validation

* restructure

* better handling of variables and props

* optional choices

* utilities module

* proper handling of optional choices attr

* setattr

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-06-04 07:57:36 +00:00
Henrique Joaquim
f91791dbf9 [BugFix] Revamp the usage of list syntax on routines (#6450)
* using list syntax on routines

* black

* ruff

* simplify

* black
2024-05-22 11:46:19 +00:00
Henrique Joaquim
c2f5f7a3e6 [Feature] Styling adjustments (#6408)
* styling adjustments

* auto completion for main menu commands; cached results style

* move platform settings above

* don't check if obbject.results - we want to have the error message if smt goes wrong with the to_df()

* register only if there are results

* minor style change

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-14 13:35:17 +00:00
Henrique Joaquim
88cdd75a6d [Feature] Custom Provider choices available on the reference.json (#6409)
* change package builder and argparse translator to account for custom chocies defined in providers

* default reference
2024-05-14 12:15:33 +00:00
Henrique Joaquim
922fc547f5 [BugFix] Fix broken --sheet-name argument (#6401)
* remove hold command and its references

* remove --local flag as we don't use it anymore @IgorWounds

* reset package folder

* reset reference

* unnecessary line break removed

* better handling of obbjects before printing/table/chart also fixes the sheet_name issue when writing to excel

* fix linting; also, dataframe creation in the right place

* proper handling of sheet name

* orient to columns instead

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-14 07:03:17 +00:00
Henrique Joaquim
13a62486de [Feature] Misc improvements on the Platform CLI (#6370)
* section description

* remove comment

* show msg only if it's an OBBject

* ommit coverage from menus

* styling: no new lines after settings

* Bugfix/cli max rows (#6374)

* fix: cli max rows

* fix: settings menu

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>

* add a new line only to separate menus and commands

* if there's no menu description on reference.json, use the commands of that menu to create a pseudo description

* use the PATH instead in the top of the menu help

* default name len to 23

* keep command on the obbject so it can be shown on the results

* left spacing regardless description

* display cached results on every platform menu's help

* display info instead of sections and display cached results

* prepend OBB to use on the --data

* config to set number of cached results to display

* correct hub link

* Save routines locally if not logged in.

* Change the exit message

* Point to new docs on first launch.

* proper checking of max_obbjects_exceeded

* fix global flag on local routines

* Remove language from settings as it is not supported.

* Remove rcontext flag

* export to account multiple formats

* Revert "Remove rcontext flag"

This reverts commit 8a1f64b71c.

* Remove

* leftover

* properly match provider being used with provider arguments so that kwargs are correctly filtered

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2024-05-10 13:39:28 +00:00
montezdesousa
0b9b12d198 [Feature] - Redefined standard fields & multiple_items_allowed property changes (#6377)
* feat: add field annotation and replace multiple items by dict

* comments & details

* fix: fix api & update docs website

* ^

* remove empty info

* descriptions

* descriptions

* fix reference.json

* remove debug code

* remove debug code

* docstring

* docstring

* fix: standard fields propagate to providers

* comment

* better

* better

* better

* better

* better

* mypy fixes

* mypy fixes

* reference

* cli fix: if the argument is required (aka standard) it means we don't want to touch it, unless choices need to be added

* cli fix: touch the help message (with the available providers) only if it's not on the signature (aka standard field)

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: hjoaquim <henriquecjoaquim@gmail.com>
2024-05-09 17:50:24 +00:00
Henrique Joaquim
756eebdf07 [Feature] Handle repeated non standard arguments (#6366)
* remove about message

* handle repeated arguments

* accomodate all the choices from different providers

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-07 13:57:35 +00:00
Henrique Joaquim
380891de4e [Feature] Improve OBBject Registry (#6364)
* registry belongs to the session instead

* help message on results

* abstract the update_completer a bit and also force the re-link of newly created obbjects so they're immidiatly available

* new settings to control the obbject registry

* new method to remove a certain index from the stack

* using the new flags to control messages on the registyr

* fix: add spaces to results --help

* Update cli/openbb_cli/controllers/feature_flags_controller.py

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* rename to settings_controller

* typo wrong attr

* better messages and actually removing the oldest obbject

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-06 14:49:22 +00:00
montezdesousa
cc15a770da [Feature] - Rename terminal folder (#6349)
* rename terminal folder

* docstring

* Rename to openbb_cli

* rename constant

* rename .his file

* pyproject.toml

* Update pre-commit and remove docker-build.yml
2024-04-30 12:42:31 +00:00