montezdesousa
291344b9c0
Autogenerate credentials model from json ( #4624 )
...
* autogenerate credentials model
* revert to to_dict
* black
* mypy
* ruff
* ignore mypy
* degiro secret to replace me
* add safeguard for people not flashing keys
* ruff
* split local and hub keys
* warn if writing to .env
* warn if sending to hub
* update user on what's going on...
* update fixture
* rewrite expected
* rewrite cassettes
* rewrite controller cassettes
* too much changes, let's revert here
* rever env handler
* rewrite std output
* patch usermodel and rewrite cassettes
* delete unecessary cassettes and std out records
* remove controller cassettes
* ruff
* add exception for inconclusive api tests opening controller
* fix twitter key and env handler prints
* fix twitter test
---------
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt >
2023-04-03 09:12:01 +00:00
montezdesousa
b6b42afd71
Hub | Add colors, sources sync ( #4546 )
...
* fix show version
* update login prompt and account
* update set preference
* fix account controller
* block login/logout if not called from account
* change conditions to start terminal
* fix required args account model
* add not to login command
* pylint
* accounte controller messages
* set default user when logout
* logout then show menu
* remove unused functions
* fix logging bug
* ruff
* fix account unittests
* fix session unittests
* refactor colors preference
* no theme, no party
* add colors sync
* dynamic theme
* add comment
* add colors to settings
* ruff
* linting
* update menu desc
* adjust keys sync flag
* write to dotenv sync flag
* english
* fix pull command
* fix edge cases
* handle some errors
* small bug
* change func name
* pylint
* no light
* colors preview
* ruff
* fix login logout preferences
* ruff
* delete folder
* pylint
* default, custom, hub
* fix clear
* docstring
* add preference exceptions
* set only rich style
* request theme only if hub
* linting
* change guest msg
* add option to update chart style on the fly
* apply style
* rollback to old terminal style
* fix console theme
* remove print
* remove hub rich style
* ruff
* mypy
* black
* Hub | Add sources sync (#4565 )
* Add sources model
* adapt session model
* fetch sources dict
* rename local funcs
* set sources inside current user
* set sources inside current user
* generate sources dict from hub
* fix dict generator
* send request to hub
* fix conflict
* revert datasources to develop head
* fix docstring
* avoid invalid patch types
* add default option to sources
* fix small bug on sources
* ruff
* black
* remove (
* mypy failing only on git
* ignore mypy
* pylint
* fix settings controller
* Tests: fix keys model writing to .env
* fix keys controller test writing to .env
* ruff
* Test: fix account controller
* Test: fix account controller pull
* Tests: fix launch terminal
* Test: add sources to user object
* Tests: fix clear cmd tests
* ruff
* revert core/sdk changes
* TerminalStyle docstring
* upload config docstring
* remove comment
* remove unecessary pylint disable
* revert openbb_terminal/sdk changes
* Terminal style docstring
* docstring
* remove unecessary changes
* add TODO
* add other todo
* Tests: prevent sync from being written in .env
* change clear msg
* display sources source on menu
* update settings controller
* display keys source
* black
* sync not needed for pull
* remove sync from apply configs
* change func name for consistency
* Update test_keys_model.py
* save rich style in user folder
* search recursively inside styles
* set hub theme by default
* remove debug print
* allow any plot style
* comment plotstyle sync for now
* fix sources set terminal to hub
* ruff
* rewrite cassettes
* remove repeated settings
* rewrite expected
2023-03-27 16:59:36 +00:00
Henrique Joaquim
937d033160
Adds BaseModel and SystemModel ( #4491 )
...
* adding BaseModel
* initial version of the system model
* creating setup functions and removing constants from config_terminal
* removing log_supress const
* fix test
* merge
* system handler
* fix import
* centralized configs setup
* repr to use the BaseModel
* updating i18n dict location
* ignoring warning on wrong type-var
* ruff
* Update openbb_terminal/core/models/system_model.py
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
* Update openbb_terminal/core/models/system_model.py
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
* import literal
* loading env files before the plot backend is called
* fix tests/openbb_terminal/test_terminal_helper.py
* tests need to have i18n initialized
* fix seeking_alpha tests
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
2023-03-22 15:00:58 +00:00
montezdesousa
18b82a7d80
Hub | save preferences locally ( #4494 )
...
* remove preferences sync
* refactor preferences handler
* change func name
* remove credentials handler + add writedotenv
* remove flair and sync from cloud
* read flair from env dict
* remove unused func
* simplify func
* ruff
* mypy
* remove token from keys
* simplify handle credential
* save exception load env just in case
* uncomment dev link
* pylint
* fix accounte controller
* fix sdk keys bug
* fix bug on apply_configs
* fix feature flags controller tests
* mock properly
* remove comment
* fix more tests
* fix test
* fix screeninfo
* update ff controller after develop merge
* fix sync test
2023-03-16 16:58:10 +00:00
montezdesousa
5a69fba516
Prefix OPENBB_ for .env vars ( #4475 )
...
* prefix OPENBB_ for .env vars
* black
* remove prefix only for dataclass
* remove openbb_ from setters
* don't send pref if sync disabled
* fix last commit
* add fields methods to handlers
2023-03-14 13:42:47 +00:00
jose-donato
40cfe8148d
Interactive tables using react ( #4386 )
...
* feat: experimenting tables with react
* feat: adding new interactive tables
* feat: adding more table features
* small changes
* update
* Update backend.py
* Update backend.py
* fix: dark mode?
* feat: lot of table improvements
* fix: my b
* fix: load only when prod
* feat: naive detect links and dates
* handle index and column names
* increased min width
* codespell
* mypy, pylint
* fix: added new chart, export, etc
* testing
* updates
* fix : add PLOT_OPEN_EXPORT, USE_INTERACTIVE_DF to user dataclass
* bump pywry version, readd removed `plots_backend().start()`
* req files
* Update unit-test.yml
* Update unit-test.yml
* Update unit-test.yml
* updates
* fixing some date things
* update table
* fix formatting with timezones
* fixing some long prints and tables
* Mickey Mouse
Co-authored-by: teh_coderer <tehcoderer@users.noreply.github.com >
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com >
* fix: ?!?!?
* adding limit arg to all print_rich_table
* tests
* lint
* simple by Default on interactive charts
* playing with some css (thks jose)
* Fix #4426
* Edit some structure
* fix sdk generation
* Update backend.py
* fa menu tested and working
* fix #4460
* fix #4460 drop indices
* update tests
* update tests
* Update helper_funcs.py
* tests
* Update unit-test.yml
* Update etf.ipynb
---------
Co-authored-by: teh_coderer <me@tehcoderer.com >
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com >
Co-authored-by: teh_coderer <tehcoderer@users.noreply.github.com >
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-03-13 17:50:48 +00:00
montezdesousa
38e819896c
Fix preferences handler bug + dataclass repr ( #4468 )
...
* move tradier to data providers
* fix handlers
2023-03-13 15:59:28 +00:00
montezdesousa
bea21dff28
Handle pydantic ValidationError reading .env ( #4456 )
...
* move tradier to data providers
* handle env load errors
* improve message
* detail model in message
2023-03-10 23:07:40 +00:00
montezdesousa
475ebb5acd
[WIP] Migrate user, feature flags and configurations to dataclass ( #4309 )
...
* implement user and change is guest
* replace User methods
* move remaining functions to user
* fix bug
* portfolio test
* fix tests
* fix tests
* uncomment skip
* ruff
* start credentials model implementation
* change deault structure
* refacto quandl
* change default struct and file names
* bug
* start using global user
* add comments
* move update flair
* change cfg references in keys model
* reddit & fmp
* refactore additional keys
* remaing config keys
* remove unsude imports and fix hub keys
* ruff
* fix line too long
* unblock unittests
* fix keys model tests
* remove os patch
* fix account controller tests
* fix account controller tests
* fix account model
* account fixed
* fix user tests
* User Model
* User Model
* User Model
* Move session folder
* User Model : grouping the models
* User Model : fix bugs
* Config Plot + bug fix
* User Model : Refactoring plots
* Feature flags
* Remove dup
* clean comments a fix some vars
* fix feature flags controller
* refactor obbff from settings controller
* refactor a bunch of obbff variables
* fix bug blocking terminal
* fix integration tests
* refactor controllers with obbff
* refactor remaining ffs
* remove comments
* log not started
* mispelled variable
* set current user on local model
* User Model : moving files + updating
* User Preferences
* User : Refactor is_guest function + bug fix
* User : refactor is_guest function
* Fix conftest.py
* remove lost obbffs
* typo on fileoverwrite
* Plot config: move variables and start plot dpi
* User : tests
* refactor plot dpi references
* remove plot dpi imports
* refactor some config terminal leftover
* /account/sync : fix bug
* remove configs reload
* start path refactor
* installation paths vs user paths
* remove cfg_plot
* Tests : User Refactoring
* user prefix only for preferences
* user prefix only for preferences
* move user paths
* remove comment
* update apply remote configs
* fix tz not updating
* save some copys
* small fix
* create interface for credentials and preferences
* wrong docstrings fixed
* ruff core
* fix some pref setting
* login is better
* ruff
* ruff
* remove Literal
* add small comment
* Tests : User Refactoring
* Credentials Model : add DataBento
* Fix helper_funcs
* Fixing code
* Tests : fixing
* User Model : freezing the models
* Fixed Income + Databento
* Tests : fixing keys
* black
* ruff
* Tests : user model
* Tests : user model
* Fix linting
* Fix linting
* Linting
* Linting
* Fixing code and tests
* Fix tests
* mypy
* SDK
* Clean ruff cache
* Fix syntax issue
* Update fred_view
* Black
* Linting
* Update code
* Update tests
* Linting
* Linting
* Tests
* Black
* Linting
* Linting
* Mock os.listdir to avoid looking for file that doesnt exist
* Mock options paths
* lint
* Tests : fix
* Code : update
* Tests + Linting
* Tests
* Ruff
* Code : update
* Tests
* Code : update
* Fix workflow
* Code : update
---------
Co-authored-by: Chavithra PARANA <chavithra@gmail.com >
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-03-05 00:37:19 +01:00