Commit Graph

12 Commits

Author SHA1 Message Date
teh_coderer
6a9308c3e7 Feature/sdk v4 pydantic v2 (#5458)
* init

* Update provider_interface.py

* docstring

* pydantic v2

* Update __init__.py

* build package v2 support

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* `alises` to `aliases`

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* updates

* Update registry.py

* validate_arguments -> validate_call

* update terminal classes

* response_model_by_alias = False

* query_params by alias

* Update major_indices_constituents.py

* add alias to Query in `provider_interface`

* yfinance

* build package, add param defaults and correct `OBBject` results type

* fix cpi validation errors

* Update risk_premium.py

* fix `forex_pairs` active query param annotation, set default when only 1 provider

* fix and refactor intrinio `options_chains`

* Update poetry.lock

* fix benzinga news, build package, add intrinio fred_historical fetcher

* Update extension_map.json

* ruff

* Update unit_test_generator.py

* updates

* add `default=None` on Optional fields

* `parse_obj` -> `model_validate`

* add alias to dup fields on providers with `__alias_dict__`, fix `test_generate_model_docstring`

* Update package_builder.py

* fix validation errors, fix tests

* tests http

* `fred_historical` record

* Update test_intrinio_fetchers.py

* Update test_intrinio_fetchers.py

* Update test_intrinio_fetchers.py

* Update available_indices.py

* Update stock_historical.py

* build package

* build package without optional

* change `SystemSettings` -> `MockSystemSettings` in `test_system_settings.py`

* `openbb_figure.py`/`backend.py` terminal changes  , update deps/lock files

* `linearmodels>4.26`  auto installs `setuptools-scm` which cause error messages

* clean up

* `dev_install.py` for local development

* ruff

* dup `# noqa`

* build

* Update bitquery_model.py

* records

* rec

* f

* worky?

* update `integration_test_generator.py` and `unit_test_generator.py`

* renamed test to tests in file

* fix import due to change in file name

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-09-27 09:40:07 +01:00
Igor Radovanovic
e012aa82da MyPy 2023-09-07 16:30:31 +02:00
Igor Radovanovic
55bb192f2f Merge and fixes 2023-09-04 12:16:47 +02:00
Henrique Joaquim
2aeb9e059b Services refactor (#5396)
* removing unused service related code

* unsued

* rename from managers to services

* changing the way we initialize and use services

* tests

* init in the top

* making system service a singleton

* diferentiating between logging app/subapp

* user service as a singleton

* ruff

* avoid new instances of CommandRunner

* ruff

* elif instead

* merge conflict, bad import

* rename method to fix test

* fixing tests

* @montezdesousa suggestion

---------

Co-authored-by: montezdesousa <montezdesousa@gmail.com>
2023-09-04 10:14:00 +01:00
Theodore Aptekarev
5723b0e46e Add init files to test folders to improve discoverability 2023-08-31 19:59:22 +02:00
Igor Radovanovic
bc28dff7cc Linting 2023-08-31 12:14:41 +02:00
Henrique Joaquim
0a521a087e Feature/remove unncessary stuff (#5346)
* removing the journal service from the command_runner

* remove the journal service and fix tests

* removing journal from the command_runner

* removing journal entry references and adding optional metadata

* rebuilding static assets

* removing all references to journal entry

* removing all references to journal and journal repository

* removing journal query references

* restructuring the command runner

* fix argument mismatch and settings to user mismatch

* dropping command runner session

* re generation of static assets

* ruff n black

* removing introduced bug

* removing duplicate reference due to merging

* 3.8 compatible static assets

* changing the way we deal with erros - removing the Error model

* removing unncessary filters

* fixing tests

* regenerating static assets

* remving mongodb references from user service

* remving mongodb references

* updating dependencies with removed pymongo

* updating dependencies with removed pymongo

* removing useless call

* fix typo

* ruff

* fixing tests

* ruff

* removing leftovers

* making registry map 3.8 compatible
2023-08-21 17:46:14 +01:00
montezdesousa
45c907555a rename .settings to .user for consistency 2023-08-20 19:25:26 +01:00
Igor Radovanovic
631308bc9b Rename test files 2023-07-28 17:15:21 +02:00
Igor Radovanovic
a7e1d2bc1f Test router coverage, system, and settings. 2023-07-28 12:02:15 +02:00
Igor Radovanovic
4f86b6c8f8 Edits 2023-07-27 16:17:50 +02:00
Igor Radovanovic
a3c6cf9807 API dependency tests 2023-07-27 15:30:59 +02:00