[Feature] CLI 2.0 - Ship With Only openbb-core Dependency#7433
Draft
deeleeramone wants to merge 10 commits intodevelopfrom
Draft
[Feature] CLI 2.0 - Ship With Only openbb-core Dependency#7433deeleeramone wants to merge 10 commits intodevelopfrom
openbb-core Dependency#7433deeleeramone wants to merge 10 commits intodevelopfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a WIP. The goal is to reduce the overhead of running CLI by making it compatible with just the
openbb-corepackage as the default, and expanding the base feature set to provide more utility.New Feature Set: CLI Feature Engineering & Output System
A full data manipulation menu at /feature/ with 16 commands:
Table management: list, select, info, view, delete, copy
Column operations: colname, coltype (including datetime and category), addcol (using DataFrame eval), dropcol, renamecol, modifycol (arithmetic or pandas method detection)
Table operations: query (pandas eval with SQLite SQL push-down optimization for simple filters), join (inner/left/right/outer with --on, --left-on, --right-on)
File I/O: save (CSV, JSON, Excel, SQLite with replace/append/fail modes)
Dynamic tab-completion for tables, columns, and command arguments
2. SQLiteTable Lazy-Loading Wrapper (new — ~100 lines)
A wrapper class for SQLite tables that defers loading. Data is only read from disk when actually accessed. This allows loading large database files without reading all rows into memory upfront.
A strategy-pattern output package with:
An abstract base class for adapters
Rich console tables (default interactive mode)
JSON output for programmatic consumption
HTML table output (for notebook/web contexts)
TSV and plain stdout stubs
The adapter is selected on the session and called uniformly with display(data, title, export, chart).
call_load — Load CSV, JSON, Excel, and SQLite files from OpenBBUserData into the OBBject registry, with --register_key, --sheet-name, and automatic max-obbjects eviction
call_results — Browse, display, chart, and export registry entries by index or key, with --chart, --export, and --sheet-name flags
Comma-value protection in argument parsing (prevents argparse from splitting AAPL,MSFT)
Credentials controller — Manage API credentials (set, show, clear)
User controller — User settings management (preferences, profile, env)
Added output_adapter property and max_obbjects_exceeded helper to the session
New settings fields for output format and data directory
25 new/extended test files covering all of the above, including real SQLite I/O tests, all controller commands, output adapters, and edge cases.