Colin Delahunty
3147577fc9
bye bye shroom ( #5351 )
...
* bye bye shroom
* missed one
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2023-08-21 21:26:03 +00:00
James Maslek
3fcb64d5f2
Fix the CPI CSV and remove twitter functionalities ( #5350 )
...
* remove twitter functions
* remove twitter functions and all references to it
* remove twitter functions
* remove twitter functions and all references to it
* Fix units on cpi
* crlf - lf
* missed one
* update ba menu integration test
---------
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com >
2023-08-18 18:07:48 +00:00
teh_coderer
df9a15497d
post main merge
2023-04-26 10:41:58 -04:00
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
bdbd6a12f8
fix test keys written on .env file ( #4599 )
2023-03-27 14:43:06 +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
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
DidierRLopes
f1a824a179
Add tweet news in terminal toolbar ( #3757 )
...
* Add tweet news in terminal toolbar
* allow to store tweet news settings
* update dependencies
* Add tweet news in terminal toolbar
* lint
* dependencies
* 5s timeout for twitter api
* poetry update for resolve
* reqs
* set news to false by default
* update tweepy
* update reqs
* update reqs again?
* update setuptools
* small improv
* Add tweet news in terminal toolbar
* update packages
* black linting
* black formatting
* ruff fixes
* fix settings controller
* Reqs
* fix tz issue
* add keywords selection
* linting
* helper funcs mypy
* pylint fixes
* Checkout poetry.lock + pyproject.toml
* Update dependencies
* Remove integration test file
* News Toolbar : Fix bugs
* Tests : News Toolbar
* Update dependencies
* Tests : change variable name
* Remove unused keys
* Remove unecessary global variable
* Fix linting
* Lighter API call
* Ruff
* Linting + Remove keys
* Linting
* Dotenv loading issue.
* Ruff
* Revert "Dotenv loading issue."
This reverts commit 4493f1a3e7 .
* Tests : fix
* Tests : fix test_settings_controller.py
* Twitter Toolbar : avoid checking API when not enabled
* Tests : news toolbar
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com >
Co-authored-by: Chavithra PARANA <chavithra@gmail.com >
2023-02-23 13:22:22 +01:00
montezdesousa
825b8955df
Set guest by default and put authentication behind environment variable ( #4197 )
...
* small bug
* small bug on routines list
* guest as default
* limit logout to users2
* simpler this way
* add logout
* move logout to account & add env var
* put authentication under env var
* fix tests
* remove login
* remove openbb vars on login
* ruff
* revert .toml
* Delete Icon
* Update .env
* fix sdk guest not loading keys
* ruff
* remove press enter & --login
* ruff
* move env load
* load env
* move dot env loading to terminal.py
* fix user sdk login mixing .env with user
* now it works
* fix reset
* fix tests
* ruff
* Login on the SDK using the OpenBB Personal Access Token (#4206 )
* openbb key on keys menu
* adding sdk endpoints
* adding login via token to the sdk
* base url
* rename to personal access token
* added docstrings and examples
* openbb is special
* removing extra break line
* making keys working with the personal access token
* resolve conflicting tests
* Revert "resolve conflicting tests"
This reverts commit 2fca2c0ec3 .
* using custom requests
* tests
* tests
* tests
* using process_session_response instead
* rewriting some tests
* Fix sdk guest not loading keys (#4207 )
* fix sdk guest not loading keys
* ruff
* remove comment
* tests
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com >
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com >
Co-authored-by: James Maslek <jmaslek11@gmail.com >
* test record mode vcr none
* remove yes from tests yml
* specify modules to reload
* try disable check api
* UPdate spec file
* Small stocks bug
* avoid reloading in test mode
* will this work?
* skip session tests
* try with env var as well
* mock sdk reload
* pylint
* bump poetry on python 3.8
* adapt to python 3.8
* adapt to python 3.8 remaining tests
* Tests : update cassettes
* Fix linting
* Makes login conditions simpler
* Tests : txt
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com >
Co-authored-by: Chavithra <chavithra@gmail.com >
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt >
2023-02-14 09:56:03 +00:00
James Maslek
2a7ec56000
Sunset some dependencies ( #4215 )
...
* Sunset some dependencies
* Mypy
* Last iex refs
* remove ref to investpy
* tests
---------
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
2023-02-13 08:54:54 -05:00
montezdesousa
1186939884
Fix keys menu: tokenterminal & shroom bug fix ( #2781 )
...
* fix tikenterminal and shroom
* add unittests
* add the 2 keys to api
2022-10-11 10:16:28 +01:00
montezdesousa
732a614937
Allow users to change api keys through OpenBB SDK ( #2642 )
...
* set fred keys through api
* linting
* doc change
* expose api keys dict
* allow optional persistency of api key change
* black
* place decorators
* add keys paths
* av and fmp keys
* some fixes
* rewrite av, fmp, fred cassettes
* quandl key
* polygon key
* rewrite polygon cassette
* news and tradier
* cmc key
* change some docstring
* change some docstring
* filtered keys dict on mykeys
* simplify mykeys collection
* revert arg to persist
* finnhub
* iex key
* reddit key
* reddit docstring
* check for prefix before removing
* glassnode key
* glassnode virtual path
* bitquery keys
* twitter key
* robinhood key
* degiro keys
* oanda key
* binance keys
* si key
* coinbase key
* refactor btcrb dates and logic
* walert key
* coinglass key
* regenerate cassettes
* cpanic keys
* ethplorer keys
* replace ouput status failed msg
* smartstake keys
* gitub keys
* messari keys
* eodhd keys
* santiment keys
* remove unused imports
* typo formatting test
* remove forbidden arg
* fix btcrb test
* fix test import
* revert cassette changes
* fix more tests
* fix last failing
* black
* try to change status to int code
* change status to int
* first try at keys controller refactoring
* fix some tests accordingly
* display msg on set
* change some vars
* remove elifs
* add progress bar and remove duplicate key check
* add mykeys and refresh to menu
* remove unused import
* change mykeys output to df
* remove check keys from keys ctrl tests
* update test split to new structure
* reduce duplicate code
* upper case
* change var name
* rename mykeys df cols
* add keys integrations tests
* add mykeys test to keys controller
* fix mykeys
* fix wrong eodhd var name
* pylint
* test_set_key
* black
* patch dotenv kinda
* fix mypy
* remove refresh
* filter mykeys df
* filter mykeys df
* update integration tests
* first unit test for set api key
* add 2 more test cases to fred
* add persist test to fred unittest
* add av unittest
* add polygon unittest
* generate av cassettes
* add unittests av, fmp, quandl, polygon, fred
* change si token to key
* forgot controller func
* unittest: news, tradier, cmc, finnhub, iex, bitquery
* add si unittest
* update eodhd key name
* add unittest: walert, glassnode, coinglass, cpanic, ethplorer, github, messari, eodhd, santiment
* black
* add reddit unittest
* refactor unittests to handle multi args
* regenerate cassettes
* add more unittests
* add degiro, oanda and rh unittest
* generate oanda records
* fix rh and degiro unittest
* fix oanda unittest
* black
* flake8
* fix si controller test
* move tmp
* pylint
* fix av test
* fix fmp key check
* rewrite fmp
* rewrite oanda output
* fix quandl check
* rewrite expected
* supress logger exception
* fix iex cloud key
* remove iex warning
* fix coinglass check key
* cpanic fix
* regenerate cpanic cassettes
* flake8
* fix smartstake keys check
* regenerate expected output
* fix eodhd
* try at binance
* black
* fix controller tests
* pylint
* disable warning
* flake
* add option to show keys
* add Enum to model
* regenerate test output
* update contributing
* flake
* fix type hint
* remove status msg dict
* pylint
* regenerate and remove unecessary cassettes
* remove duplicate return
* supress traceback
* remove unused imports
* update some docstrings
* add todo
* add export option to mykeys
* minor change
* refactor color scheme
* update contributing
* update contributing
* regenerate cassettes
* fix check output
* small msg change
* small details
* rewrite some tests
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt >
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
2022-10-08 12:30:23 +02:00
Colin Delahunty
5bc7bc070e
Tests over API Best Practices ( #2344 )
...
* Started new tests
* Added special function
* Improved dict
* Finished new test
* Got bad functions to 75
* Got bad func to 73
* Bad func down to 60
* Bad func down to 50
* Bad func down to 35
* Got bad func to 30
* No more bad functions
* Added tests
* Added fix
* Fixed some tests
* Fixed some tests
* Fixed some tests
* Fixed some tests
* Added tests to CI
* Fixed CI tests
* Fixed CI tests
* Imrproved CI tests
* Fixed reports
* Fixed reports
* Added stuff
* Removed CI
* Fixed
* Fixed some typing'
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com >
2022-09-22 22:31:46 +01:00
soggyomelette
824373cad1
Adds santiment to keys menu in response to #2224 ( #2238 )
...
* 'Adds santiment key in keys_controller.py and adds tests for santiment and messari keys'
* fix linting
* fix linting
* Fixed \n issue
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com >
Co-authored-by: colin99d <colin99delahunty@gmail.com >
2022-08-05 10:53:44 -04:00
Colin Delahunty
37e2597bb4
Added fixes for coinbase ( #2202 )
...
* Added fixes for coinbase
* Fixed tests
Co-authored-by: James Maslek <jmaslek11@gmail.com >
2022-07-29 19:20:34 +01:00
didierlopes.eth
385d12803a
Add bottom toolbar hint feature flag - helps new users in getting started ( #1873 )
2022-05-26 16:43:04 +01:00
Colin Delahunty
8994168e45
openbb_terminal tests: coverage (61% -> 65%) ( #1664 )
...
* Attempting more tests
* Began adding tests
* Added keys controller tests
* Added tests for settings and econometrics controller
* Prevented tests from changing .env files
* Fixed issues with tests
* Added econometrics tests
* fixed pylint issues
* Added folder
* Added QA tests
* Fixed qa tests
* Fixed qa tests
* Fixed tests
* Removed skip
* Added mock to tests
* Update helper_funcs.py
Fix any windows path issues
* Update helper_funcs.py
oops forgot import lol
* Skipped display_hist
* expanded tests
* Maybe mocked matplotlib everywhere
Co-authored-by: teh_coderer <me@tehcoderer.com >
2022-04-19 20:44:15 -04:00