Commit Graph

14 Commits

Author SHA1 Message Date
LBolte29
0f61f0b08e Log exceptions (#1393)
* log user settings, errors and exceptions
2022-02-26 10:56:10 +01:00
LBolte29
fd58219282 adjusted format of logs (#1292)
adjusted format of logs
2022-02-17 12:33:59 +01:00
minhhoang1023
53945ddbae Fix stocks asthetic style (#1355)
* Fix Theo's comment

* Fix tests failing

* Fix tests

* Make plot lines thinner

* Make ticks thinner globally by default

* Apply global style when any controller is initialized

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-02-14 19:11:05 +03:00
Colin Delahunty
1e26ec7d46 Crypto Base (#1278)
* Refactored load, refactored coin name

* Fixed issue

* Fixed some tests

* Removed load tests

* Fixed black

* Fixed black

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-02-04 13:51:52 -05:00
Colin Delahunty
7bb378015c Added fix and test (#1302) 2022-02-02 09:56:40 -05:00
Colin Delahunty
973d2f476f Debug Patch (#1297)
* Remove none error

* Noted where issue is beign silenced

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-02-01 23:26:24 +00:00
LBolte29
fabd814175 Added logger to baseclass controller (#1270)
* Added loger to baseclass controller
refined sequential logic of switch
fixed prefix / for multiple commands at terminal startup
2022-01-30 10:59:19 +01:00
Colin Delahunty
29dbc0da9a Base Stock Controller (#1267)
* Added stock controller

* Fixed tests
2022-01-27 21:02:54 -05:00
Colin Delahunty
3b73898f1a Refactored Call Resources (#1217) 2022-01-19 23:04:23 +00:00
didierlopes.eth
c568747ab4 Several fixes (#1143) 2022-01-18 01:29:49 +00:00
Colin Delahunty
9e671aeba9 Remember Contexts (#1187)
* Refacotred classes

* Handling for new instance desired

* Added feature flag

* Converted all menu calls
2022-01-16 16:57:23 -05:00
Colin Delahunty
82747072c5 Terminal Wide Rich (#1161)
* My idea for how we handle Rich moving forward

* remove independent consoles

* FIxed pylint issues

* add a few vars

* Switched print to console

* More transitions

* Changed more prints

* Replaced all prints

* Fixing tabulate

* Finished replace tabulate

* Finished removing rich from Tabulate

* add Panel around menu

* add GST watermark under feature flag

* Fixed 46 tests

* Delete test_screener[False].yaml

* Delete test_screener[True].yaml

* Fixed the rest of the tests

* add help and source color vars and use rgb

* rich on stocks/options

* update rich on disc, dps, sia

* rich in gov, ins and scr menus

* ba and ca menus with rich

* Fixed import issue

* Fixed some tests

* removed termcolor

* Removed prettytable

* add rich to remaining stocks menus

* FIxed linting issue

* Added James' changes

* Updated dependencies

* Add rich to cryptocurrency menu

* refactor economy and forex

* refactor etf with rich

* refactor mfunds

* refactor rich rest

* not specify style so default color works well on any background

* Fixing mypy issues

* Updated tests

* More test fixes

* James' test fixes

* Updating tests : stocks/screener - fix cassettes using BR

* Updating tests : crypto

* Updating tests : disable DEBUG_MODE

* Updating tests : stocks/fa/yfinance

* minor fixes that escape

* Improve the rich table function (that replaces tabulate :D )

* Fixed bad code

* delete rogue file + dcf fix + NoConsole

* sia mypy

* fuck you linter

* fuck you linter pt 2

* skip hehe

* i hate the black linter

* ubuntu mypy attempt

* Update : rich_config + gtff

* Updating tests : conftest

* Updating tests : stocks

* Update : rich_config

* Updating : rich_config

* make panel configurable for Theodore :b

* colors update

* Merged

* Updating : rich_config + feature_flags

* Updating : rich_config

* Updating tests : stocks

* Updating : feature_flags

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
2022-01-15 02:06:00 +00:00
devwolff
80a4796405 print_help when jump back to previous menu (#1168)
* print_help when jump back to previous menu

* help when quitting

* default flag to False

Co-authored-by: theorish <tep@foundian.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-01-10 13:34:27 -05:00
Colin Delahunty
006b3570b7 Baseclass (#1141)
* A working decorator

* Basic intro

* Added more

* Refactor

* Refactor

* Cleaned code

* Simplified function (thanks Chavi)

* Small change

* Updating tests : fix issue with mock

* Updating tests : fix remaining mocks after merging

* Updating tests : black

* Cleaned up

* Finished base cases

* Notes

* Slight changes

* Added dynamic options handling, error persists

* Fixed pylint issues

* Fixed mock

* fix decorator with dynamic dictionary of args

* move choices from dynamic to const in crypto/ov

* Updated var names

* Check

* Moved decorators

* Fixed import issues

* Fixed tests, update payoff controller

* Fixed tests

* Fixed pylint

* Updated files

* Added base class

* Added reset

* Improved base class

* For James

* More menues converted

* Added contexts

* 24 controllers left

* 18 Controllers left

* Changes choices

* 9 controllers left

* Added all controllers

* Fixed glitch

* Replaced all improper callings of class

* Removed menu decorator

* refactored try_except

* Last commit

* Black fix

* Bug fix

* Added James' new menus

* Fixed tests

* Fixed 8 tests

* Fixing mypy issue

* Updating tests : stocks/options

* Fixed options

* Fixed tests

* Updating tests : stocks/options

* Fixed tests

* More test fixes

* Updating tests : stocks/ba

* Fixed options test

* More bug fixes

* Fixed tests

* fixed pylint

* Skipped test_call_load

* Add typings to base class

* Fix issue with appending auto completer options + bugfixes

* Add typings to base class

* Terminal throws error for bad path

* sexy solution to auto completer in runtime

* more sexy reset with reset_level stored

* no so sexy jump between indirect menus

* Removing choices argument

* refactor custom_reset

* Fixed tests

* Theo fixes

* Added back function

* Fixed tests

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-01-08 19:30:03 +00:00