James Maslek
cc876cd256
openbb.dev -> openbb.co ( #4854 )
...
* openbb.dev -> openbb.co
* Get rid of warning on login
2023-04-21 20:42:16 +00:00
montezdesousa
3d243b361a
Sync with hub on reset + routines fixes ( #4842 )
...
* keep session alive on reset
* remove print
* silence routines
* ruff
* skip login if is papermill
* ruff
* move is_papermill to avoid prompt_toolkit warning fd is not a terminal
* move is_papermill back and check for atty instead
* only download routines and update sources if terminal
* only starts prompt toolkit if isatty
* black
* avoid duplicate files after reset/login
* remove hub routines on reset
* comment
* fix unittest
* forgot this debugging prints
2023-04-21 16:12:09 +00:00
montezdesousa
889ff94f12
Extend "Remember me?" login prompt option ( #4802 )
...
* add remember attribute to user
* don't save hist if not remember
* remove routines on exit if not remember
* fix unittests
* remove hub routines on exit
* check if user is local first
* remove hist file on exit if not remember
* comma
* Fix `exe --file` choices on login (#4799 )
* download and save routines in sync, to have choices immediatly available
* fix: docs min
---------
Co-authored-by: jose-donato <zmcdonato@gmail.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
---------
Co-authored-by: jose-donato <zmcdonato@gmail.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-04-17 17:53:09 +00:00
montezdesousa
7d3172a5f5
Make default routines available & download personal routines on login ( #4737 )
...
* make default routines available
* remove unecessary change
* user to personal
* rename some funcs
* add last update to tables
* add routines download on login
* move some routines funcs to controller
* fix tests
* add space
* wrap some funcs inside try, except
* fix account test
* suppress outputs
* rewrite docstring
* remove circular import
* reverse order
* update docstring
* allow exe with spaces in file name
* fix exe with input
* Update terminal_controller.py
* fix regex for file extensions
* pylint
* put default routines url inside constants
---------
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-04-13 12:44:31 +00:00
montezdesousa
f0b5cc0aaa
Hub | Fallback to .env + don't upload keys + update support link ( #4756 )
...
* fallback to .env
* dont send keys to hub
* remove keys from upload_config
* display keys hierarchy
* pylint
* fix unittest
* Update session_model.py
* point terminal support to .dev
* rewrite tests
2023-04-13 12:40:02 +00:00
Henrique Joaquim
b03ac8b5f7
add bootup when login prompt ( #4743 )
...
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com >
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
2023-04-12 19:58:39 +00:00
montezdesousa
e7b209507e
Terminal/hub QA ( #4678 )
...
* move update flair
* sort repr
* remove packaged sys model var
* update decorator for check api key
* ruff
* change if stat
* ruff
* no need for new var
* pylint
2023-04-05 11:54:44 +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
montezdesousa
1a1e8c0ed4
Add login command ( #4509 )
...
* 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
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-03-21 10:13:59 +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