* improving handling of logging handlers
* removing alias
* lint
* removing debug print
* adding alias back
* adding the commithash to the system so it gets logged
* doing posthog on hub_user login
* ruff
* tacking this on - docs update
* identify and alias together
* fixing conditions
* the juan way
* ruff
* don't send logs to S3 if posthog is an active handler
* branch name on the posthog logs
* removing duplicate import
* fixing tests
---------
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* Anonymize logged in users flair in logs #4838
* small improvement to regular expression
---------
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
* 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
* token generation on the terminal
* revoke and show commands
* uuid on the right column
* adding logs to the account commands
* login info at this point does not make sense anymore
* get_user_uuid function
* log formatter to use get_user_uuid function
* ruff + black
* fix tests
* fix tests
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* import order
* pylint
* no login, go to prompt
* add logout and whoami
* clear before prompt
* black
* these are unecessary
* error
* improve login prompt message
* login does not follow the controller pattern, so will name it differently
* nop
* move logout and change to results
* change return obj
* ruff
* pyupgrade
* remove user from statics
* message
* fetch configs at start
* remove unecessary func
* unecessary dataclass
* change user vars
* change login flow
* remote logout should not be used
* simplify
* fix double exit logout bug
* wrong exception
* apply keys
* change controller
* mypy
* save if no internet
* pylint
* logout everywhere
* breaking changes: move to local/hub models
* unused import
* fix logout bug
* whoami in guest mode
* add todo
* small bug guest allowed
* limit flair length
* fix bug on user pull
* logout working
* handle no connection
* logout user when logout
* remove keys push
* split logger funcs
* commant apply configs for now
* account to session
* rename user
* clear sounds better
* breaking changes: splitting guest from logged users
* pull imports up
* delete session model
* move logout func
* add ability to save and apply keys from remote
* no sensitive keys
* add support for feature flags
* unecessary print
* allow settings from differnt modules
* change setff to static
* change way to set ff
* fix bug in applying configs
* simplify obbff application
* bug on setting configs
* allow text ff
* obbff in settings
* add upload to cfg_plot 1
* data sources + backend
* this solves circular import?
* move create_session to model
* rever logs changes, not needed for now
* sync optionally
* outline account controller interface
* don't sync when guest
* block guest on installer
* or not and
* start routines
* fix bug on ff, settings
* is installer
* implementing chavi suggestions
* fix colors on installer prompt
* Logging login (#4046)
* basic logging for the login
* removing unused import
* hacking the logs custom filter to not filter the email
* black
* cooping with the new changes
* removing redundant method
* ruff
* ruff
* mypy
* SDK login (#4051)
* sdk login
* adding to the trail map
* minor fix
* improve sdk expirience
* adapting to new changes
* add docstrings
* block guest from account
* change guest msg
* change guest messages
* add sync on/off
* display onoff
* missing paragraph
* fix glitch on logout
* add sys clear
* filtering password
* filtering the email from user
* avoid writing to multiple log files if a user logs out
* fix bug, guest allowed in installer without connection
* log user on the sdk
* split login from lauch
* add clear and change messages on account
* docstrings
* start pull cmd
* change account menu description
* Fix login bug and decouple some logic (#4056)
* fix bug, guest allowed in installer without connection
* split login from lauch
* improvements on the sdk login
---------
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
* sync fix
* change account controller description
* ruff
* add help on account cmds
* update clear prompt
* fix email not in jwt
* remove jwt from requiremnts
* pull command output
* remove character
* pull cmd when no data
* add space below whoami
* fix log filenotfound exception
* changed arg name
* delete .hist on logout
* add asteriscs to password
* pylint
* uncomment rich config
* show only diffs on pull
* black#
* warn when no changes#
* pull msg was switched
* apply diff only
* breaking?: strbool change
* reduce some code
* add timeout to hub requests
* black
* add remote logout
* success msg only if success
* remove colors in prompt
* update docstrings
* keep timeout outside funcs
* update clear
* clear and patch
* delete session
* routine upload
* move .his file to .openbb folder
* change apply configs
* refactor logout
* remove mixed portfolio changes
* fix bug in lock file
* fix bug pwidth, pheight are floats
* fix sources command & add choices
* refactor timezone setting
* userdata
* fix flair
* need to cast paths
* cast on diff
* fix flair default
* save session test
* get session
* data
* test remove
* test remove with assert
* add bad test cases
* add exception cases to unittests
* test remove cli hist file
* black
* test apply configs
* test apply with sync flag
* test create session, session model
* login tests, session model
* some tests for the hub_model
* test logout user
* black
* test clear vars, reload
* test create session
* update user-json to user
* update user class
* add user tests
* tests sdk session
* tests for hub_model
* start account controller tsts
* unused import
* tests account controller: clear, pull
* tests for session_controller
* logout success bugfix
* add integration test for account
* black
* move routine related commands to other PR
* test for the user input
* completed tests for session controller
* convert to hist to str)
* fix import errors
* ruff
* ruff tests
* fix qa
* add help to settings cmds
* ruff
* fix pull keys bug
* point to dev
* account model tests
* black
* ruff
* fix for empty feature settings
* ruff
* don't display config msg if wrong token
* general msgs
* remove print
* ruff
* fix sources not updated real time
* missing return doc
* add guest if no email
* Routine remote storage (#4143)
* add upload routine command
* remove prints
* point to local again
* add commands
* add delete
* add download command and upload 409
* list comprehension
* add download & save plus upload fixe
* add user uuid folder
* add list command
* ruff
* en.yml detail
* provide choices to delete & download
* add choices to upload
* change menu text
* starting adding unit tests
* bad english
* Update test_print_help.txt
* genearl msgs
* remove print
* add docstrings
* add unit tests to account controller
* change parser
* fix routine upload test
* add to be implemented tests hub
* add to be implemented tests local
* add total pages to title
* split list into model and view
* add docstring
* print msg if character
* add local model tests
* hub tests routines
* fix test
* point to dev and glob
* fix small bug on upload
* missing return
* log decorators missing
* black
* ruff
* change prompt display
* rewrite test
* rewrite expected
* rewrite call
* try passing git action
* change .yml everywhere
---------
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* I missed some sheet_name ones :)
* Move quote to main menu and combine yahoo finance commands
* Update stocks for quote
* First update to move yfinance away from main functionality
* Small updates
* Update tests to reflect changes
* Fix some little things
* Update docs a little too
* Remove the Due Diligence menu
* Update tests for new change
* Update fa and stocks with new text and move some stuff around
* Bye bye dd
* Pls work
* work..
* work..
* work..
* Work..|
* Add tests back in
* Remove tests
* Fix fix fix
* Remove tests to fix conflicts
* Improve the `stocks/search` command (#4084)
* Improve search command
* Make it more intuitive
* Fix tests
* Update the docs
* Ok done
* Ok done 2
* Ok done 3
* Git update tests that failed
* Update commands with --sheet-name that didn't work (#4088)
* Update commands with --sheet-name that didn't work
* Fix test
* oops
* Adds auto completion to `news` (#4089)
* Fix plot look when using eval and add query to choices (#3881)
* convert index to datetime and update choices
* uncomment economy integration test
* fix treasury concat bug
* fix datasets concat on duplciates
* Lock ruff version so that new lints dont break our CI (#3905)
* Lock ruff version so that new lints dont break our CI
* Bumped pre-commit ruff version
* returning always a dataframe
* Revert "returning always a dataframe"
This reverts commit d5dbf3132f.
* quick fix to auto complete args
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* Hotfix/Windows-CLI (#4087)
* init
* Update windows10_build.yml
* Update windows10_build.yml
* Update windows10_build.yml
* Update windows10_build.yml
* Update windows10_build.yml
* Update windows10_build.yml
* oops
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* Adds end date to `forex/load` (#4077)
* Fix plot look when using eval and add query to choices (#3881)
* convert index to datetime and update choices
* uncomment economy integration test
* fix treasury concat bug
* fix datasets concat on duplciates
* Lock ruff version so that new lints dont break our CI (#3905)
* Lock ruff version so that new lints dont break our CI
* Bumped pre-commit ruff version
* returning always a dataframe
* Revert "returning always a dataframe"
This reverts commit d5dbf3132f.
* adding end date to the forex load
* added some tests
* added example
* always show msg
* rewriting test
* updating tests
* updating tests
* Redo load tests
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* Update tests to reflect changes
* work..
* Remove tests
* Fix fix fix
* Remove tests
* Update the whole test folder
* Small updates
* Revert change
* Update eodhd to reflect it requires a paid plan and update tests
* Fix all the tests
* Update tests
* Update integration tests
* Removing tests so no whining happens
* ADD ALL THE TESTS
* Fix linting
* gitignore. thanks jer
* Add back dd and redirect to fa
* Update to just display a message
* Update OpenBB SDK commands
* Fixing issues with exporting
* Fix ruff messing up
* Fix tests
* Fix the tests by disabling isort to run on tests folder
---------
Co-authored-by: Jeroen Bouma <jeroenbouma@Jeroens-MacBook-Pro.local>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
* Fix plot look when using eval and add query to choices (#3881)
* convert index to datetime and update choices
* uncomment economy integration test
* fix treasury concat bug
* fix datasets concat on duplciates
* Lock ruff version so that new lints dont break our CI (#3905)
* Lock ruff version so that new lints dont break our CI
* Bumped pre-commit ruff version
* returning always a dataframe
* Revert "returning always a dataframe"
This reverts commit d5dbf3132f.
* black everything
---------
* filtering duplicate logs
* removes the logging on the pyth model
* checks if the log file is bigger than 2mb
* check for a trail stack to know if should log or not
* using method_stack only on the OperationLogger
* getting rid of deque
* linting
* removed unusded import
* removed redundant method
* ype annotation
* fixed integrated test test_stocks_ba.openbb
* fixed integrated test test_stocks_dd.openbb
* improved and centralised the check
* fix lint
* Docker : update ci + build files
* Docker : update build and CD
* Docker : update CD
* Docker : test
* Docker : test CD
* Docker : test CD
* Docker : rename `build.sh`
* Docker : tests CD
* Docker : test CD
* Docker : update CD + build
* Docker : fix CD
* Docker : fix CD
* Docker : build
* Docker : test CD
* Docker : CD
* Docker : CD
* Docker : test
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : build + CD
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : test CD
* Docker : build
* Docker : test CD
* Docker : build + cd
* Moving `scripts`
* Checkout `helper_funcs.py` from main
* Docker : remove test file with alpine
* fixing readme errors
* fixing missed readme errors
* Docker : build
* Logging : handle docker app name
* Docker : test CD
* Docker : cd
* Doc
* Doc
* Doc : linting
* Doc
* Docker
* Doc
* Fixing `terminal_controller`
* Linting
* Doc : fixing links
* Version 1.9.1
* Docker : fix name
* Doc : add volumes in command
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Simmons <simmonsj330@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
* added console prints
* little refactor for degiro company news
* fixed message always showing even on login fail
* initial test with the api logs
* changes log_settings location in order to use it on the sdk; also, modified the actual settings logging to a json.dumps - in order to get a well formed json str
* added logger to the api
* adding decorator to the function as it's copied
* added arguments to the logging
* remove the double log_start_end decorator
* added func_name_override
* Revert "added console prints"
This reverts commit 61d8224e97.
* Revert "little refactor for degiro company news"
This reverts commit ca5239fa9e.
* Revert "fixed message always showing even on login fail"
This reverts commit 05793bff8b.
* added typing ignore
* fixed litting
* added logging of theme and keys
* added virtual path to the logging
* fix flake8
* fixing mypy
* removed predict from the settings
* changed the way we get the keys - after the keys controller pr was merged
* dict escaped to json str
* moved the settings logging for a different file
* added different logging for keys, configs and feature flags
* fixing typo
* removed locals - using directly the args and kwargs gives us the same
* fixed black
* adding sensitive words to exclude from logs
* adding chart arg to logging
* adding all args to logs - default or not
* fix linting
* suppressing logs for reports
* solving conflicts
* fix linting
* little change on the way suppression occurs
* changing decorator to get keys state during notebook execution
* removing unused import
* black
* added dashboards to supress logging on sdk
* added console prints
* little refactor for degiro company news
* fixed message always showing even on login fail
* initial test with the api logs
* changes log_settings location in order to use it on the sdk; also, modified the actual settings logging to a json.dumps - in order to get a well formed json str
* added logger to the api
* adding decorator to the function as it's copied
* added arguments to the logging
* remove the double log_start_end decorator
* added func_name_override
* Revert "added console prints"
This reverts commit 61d8224e97.
* Revert "little refactor for degiro company news"
This reverts commit ca5239fa9e.
* Revert "fixed message always showing even on login fail"
This reverts commit 05793bff8b.
* added typing ignore
* fixed litting
* added logging of theme and keys
* added virtual path to the logging
* fix flake8
* fixing mypy
* removed predict from the settings
* changed the way we get the keys - after the keys controller pr was merged
* dict escaped to json str
* moved the settings logging for a different file
* added different logging for keys, configs and feature flags
* fixing typo
* removed locals - using directly the args and kwargs gives us the same
* fixed black
* solving conflicts
* fix linting
* removing unused import
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
* add log path
* add test to check if log file is in correct dir
* env path
* black
* mypy fix
* linting
* add make_paths and change references
* terminal change
* change constants to paths
* change names
* black
* mypy
* mypy
* pylint else
* add make paths
* remove custom user dir name
Co-authored-by: Chavithra <chavithra@gmail.com>
* add log path
* add test to check if log file is in correct dir
* small change
* Adding paths
* change to paths.py
* black
Co-authored-by: Chavithra Parana <chavithra@gmail.com>
* Added openbb_terminal/logger tests
* Added tests for path_tracking
* Just in case lol
* Finished test_directories
* Added more tests
* Fixed flake8 error
* Fixed flake8 error
* Coverage for test_expired_files
* Added handling for no boto3
* Added test mock
* Added test mock
* Added fix
* Test fix
* Fix for windows
* Added int
* More tests
* Added fixes
* Fixed black issues
* Tests : update fixture examples
* Tests : core/log/generation
* Core : log/generation
* replaced conftest delete with temp_path
* Fixed mocks
* refactored get settings to use tmp_path
* reverted codespell
* Making random faillign test linux only
* Swapped to fixture
* Fixed conftest
* Logs collection : add docstring + clean lines
* Tests : fix windows specific issue
* Tests : skip unsound tests which changes logger state
* Black
* Linting
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
* Fix terminal for issues when the repository keeps GamestonkTerminal name
* the logs will work regardless of parent folder they are in
* Logging : move log folder
* Fixing bug + Refactoring + Allow calling Terminal from outside the repo
* Black
* Remove comment
* SettingsController : fix
* Black
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>