Commit Graph

51 Commits

Author SHA1 Message Date
montezdesousa
9dbc7b97b5 Fix buggy docstring in python package methods (#5548)
* fix buggy docstring for methods

* remove space

* fix typing

* avoid name collision with validator

* Revert "avoid name collision with validator"

This reverts commit 8a30a44555.

* typing

* rebuild

* python 3.8, ParamSpec not available

* lint

* ruff noqa
2023-10-12 14:49:08 +01:00
Theodore Aptekarev
e7942e6310 Update dependencies and linting on the CI (#5550)
* Remove ruff and black from platform dependencies

* Update codespell configuration

* Lint python code

* Add toml and tomli to root dev dependencies

* Update requirements.txt files
2023-10-12 15:42:30 +02:00
Pratyush Shukla
73171d701c Standard convention for multi-ticker symbols (#5549)
* standardize symbol input param in forex and crypto historical data

* static

* linting
2023-10-12 18:24:13 +05:30
Pratyush Shukla
86aaf827f3 validator -> field_validator in standard models 2023-10-12 17:40:22 +05:30
Pratyush Shukla
7298d7689c Small QA to rename SDK to Platform (#5544)
* SDK -> Platform in docs

* renamed in core

* renamed in openbb `init`

* `sdk` variable renamed as `platform`

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-10-12 09:37:25 +01:00
Igor Radovanovic
6a640434e8 Lint 2023-10-11 23:34:25 +02:00
Igor Radovanovic
003e3830e0 Merge 2023-10-11 23:30:31 +02:00
Danglewood
162cfd4cf0 change ticker field in Stock Search to is_symbol 2023-10-11 14:00:33 -07:00
Pratyush Shukla
c36518667c ticker. symbol. consistent. @piiq 2023-10-12 01:24:50 +05:30
Danglewood
27956ccc4e Merge branch 'feature/add-v4-standard-models' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-11 10:43:07 -07:00
Danglewood
f11a9d4801 Merge branch 'feature/openbb-sdk-v4' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-11 10:41:58 -07:00
Igor Radovanovic
6a4f47d1a3 Merge pull request #5542 from OpenBB-finance/hotfix/fix-econometrics
Hotfix/fix econometrics
2023-10-11 19:35:38 +02:00
Theodore Aptekarev
58717ece01 Another attempt to resolve even more linting errors 2023-10-11 19:18:41 +02:00
Theodore Aptekarev
bfa57dde04 Resolve more linter errors 2023-10-11 18:53:15 +02:00
Igor Radovanovic
20dfda472b Revert dep 2023-10-11 16:19:06 +02:00
Igor Radovanovic
8cc230c452 revert the revert 2023-10-11 15:44:20 +02:00
Igor Radovanovic
2e1d9012f8 revert pydantic 2023-10-11 15:39:20 +02:00
Diogo Sousa
1d3a6e997d pydantic v2: self.dict -> self.model_dump 2023-10-11 14:36:25 +01:00
Diogo Sousa
c12ba468b1 pydantic v2: remove deprecated Extra 2023-10-11 14:26:02 +01:00
Danglewood
77a4a5b6d4 Merge branch 'feature/openbb-sdk-v4' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-10 18:43:47 -07:00
James Maslek
41be83ff76 Add OECD Provider for economy extension (#5534) 2023-10-11 01:20:54 +05:30
hjoaquim
a775242ee6 chaging pro validation hash 2023-10-10 13:18:54 +01:00
Danglewood
aeb0e0a28a merge branch feature/openbb-sdk-v4 2023-10-09 17:02:29 -07:00
hjoaquim
24ce3e9bb8 making linters happy (i guess) 2023-10-09 12:25:54 +01:00
Theodore Aptekarev
ee4decd217 Update some docstrings, fix typos and lint 2023-10-09 11:50:25 +02:00
hjoaquim
2f89ee09f7 solving naming issues on pytest 2023-10-09 10:42:21 +01:00
hjoaquim
6835838007 ruff 2023-10-08 11:42:06 +01:00
hjoaquim
baf3bd3c67 tests for command_runner 2023-10-08 11:33:36 +01:00
Danglewood
63d733031b Merge branch 'feature/openbb-sdk-v4' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/add-v4-standard-models 2023-10-07 19:05:00 -07:00
Danglewood
549af389a0 make the changes and some etf models 2023-10-07 18:59:43 -07:00
Diogo Sousa
66f9ffd845 update docstrings and readme 2023-10-06 18:24:33 +01:00
Diogo Sousa
59fcce4466 forgot to check auth here 2023-10-06 18:22:38 +01:00
Diogo Sousa
65ecfd75aa update docker readme 2023-10-06 18:19:20 +01:00
Diogo Sousa
bbe40da843 coverage router should not be here 2023-10-06 18:12:27 +01:00
Diogo Sousa
47821e22de some routers included if dev + chg hub backend var 2023-10-06 18:09:54 +01:00
Diogo Sousa
b03e06d3a5 include Darren auth suggestions 2023-10-06 17:50:58 +01:00
James Maslek
41b9e62c5c adding pydantic to core 2023-10-05 16:56:20 -04:00
James Maslek
4e587b263b Relock 2023-10-05 15:55:14 -04:00
montezdesousa
a7c4574919 Feature/basic auth (#5525)
* disable auth by default

* add startup banner

* banner

* create user_auth extension

* add back pymongo for user db

* lint

* add back hub option

* update toml

* remove form

* split auth_hook code

* pydantic v2

* allow db connection

* remove print

* move deps

* remove pymongo from core userservice

* reorg folders

* move props

* fix import

* create inits

* ruff

* rename user service

* rename userservice

* remove unused properties

* rename get_user_service

* ruff

* bad import

* bad import again

* fix userauth service

* now yes

* userdbservice needs to be unique

* move repository code to extension

* move remaining users code to extension

* lint

* pydantic v2

* rename default methods

* rename update to merge

* set merge_dict to private

* user_service: remove singleton

* set user_service as parent class

* fix typing

* add back default settings method used for tests

* + property

* add setter for default user settings

* revert previous: need lunch

* move back some code and start basic auth

* add auth hook

* load ext

* remove userauth ext

* remove from toml

* lint

* set ext name as param

* remove unused env var

* adding admin/pass

* add user/pass and return user_settings

* remove empty file

* improve type hints

* revert some func name changes

* 1 more

* black

* docs

* rename service

* fix tests

* rename env vars

* disable auth by default

* update ext loading

* remove unused pref

* update readme

* update readme + remove default user/pass

* separate user from authentication + lock some rout

* lint

* fix circular import

* fix tests

* readme

* remove comment

* Update README.md

* remove unused repository code

* fix auth env flag

* creds

* update readme

* only disables command auth

* remove link

* pydantic v2

* move app loader

* docstring
2023-10-05 16:25:32 +01:00
Danglewood
16f93a6b65 add some more 2023-10-04 20:37:54 -07:00
Danglewood
035e8448d9 one-year --> three-year 2023-10-03 22:47:05 -07:00
Danglewood
35f19e6b92 add some blank standard models 2023-10-03 22:26:38 -07:00
hjoaquim
798b049637 fix charting_service tests 2023-10-03 18:37:42 +01:00
Henrique Joaquim
f0278890d7 try except ftw (#5512) 2023-10-03 15:59:26 +01:00
Henrique Joaquim
82e8806e55 Hotfix/data processing int tests (#5499)
* improve/fix the generator

* fix ta/cones

* adding new test for economy menu

* test for ta

* newly generated qa file

* fixing breaking changes introduced by pydantic v2

* fixing charting

* one more little fix to charts

* fix qa/capm

* tmp fix on om

* qa stocks

* ruff n black

* remove non float columns

* mini fix so the corr result is serializable

* econometrics tests

* simplifying a bit and making ruff happy

* docstring

* docstring
2023-10-02 16:19:06 +01:00
Henrique Joaquim
a8e6d646fc Hotfix/colab logs (#5480)
* forcing logging.basicConfig() so that it overrides default calls (on notebooks)

* chaging terminal_version to platform_version instead
2023-10-02 14:50:32 +01:00
Henrique Joaquim
d2471a9c4f Hotfix/int tests python fixture (#5504)
* fix command runner tests that were generating logs

* use the import behind a fixture

* updating the generator
2023-10-02 14:43:27 +01:00
Danglewood
ad0bb2428b rename sec_filings -> company_filings (#5501) 2023-10-02 17:16:19 +05:30
Igor Radovanovic
16e94db6d1 Add toml to dev deps, fix to_df() edge case 2023-09-30 16:58:28 +02:00
Henrique Joaquim
45a1241849 Feature/charting service unit tests (#5477)
* test_check_and_get_charting_extension_name

* test_check_charting_extension_installed

* using fixtures

* test_get_extension_router

* ruff

* test_handle_back_end

* test_get_chart_format

* test_get_chart_function

* test_get_implemented_charting_functions

* test_to_chart

* test_to_chart

* test_chart

* ruff and mypy
2023-09-30 10:29:27 +01:00