Commit Graph

6356 Commits

Author SHA1 Message Date
Danglewood
8baf4d74b2 [Feature] Government Yield Curves + Chart (#6417)
* stashing

* ecb yield curve

* field_description

* federal reserve yield curve

* econdb yield curve

* countries literal for python 3.9

* list date

* fmp yield curve

* fred yield curve

* integration tests

* chart integration tests

* static assets

* black

* ruff

* pylint

* more pylint

* more pylint

* now black

* country not a standard param

* mypy

* merge branch develop

* add more countries

* econdb date filter

* mypy

* future linting

* make to_chart work

* plot_bgcolor should be 'rbga(255,255,255,0)'

* push deprecation

* push deprecation

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: hjoaquim <henriquecjoaquim@gmail.com>
2024-05-21 17:02:19 +00:00
Theodore Aptekarev
63b8d60704 Update requests and idna to patched versions (#6448)
* Remove dev dependencies section from cli

* Remove anyio pin as it's brought in by others

* Bump idna to patched version

* Bump requests to latest
2024-05-21 16:39:15 +02:00
montezdesousa
ce57dfcf66 fix: add back api.dockerfile (#6449) 2024-05-21 16:33:56 +02:00
Theodore Aptekarev
6a10598f5b Remove PDF export capabilities (#6442)
* Bump black in devtools and pre-commit

* Remove pdf export functionality from cli and charting extensions

* print message only if the file was actually created

* Update css to use fonts from google

* Bump bundled plotly js version

* Bump dependencies

* Update static html of the charting extension to use the new plotly

* Update lock file hashes

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: hjoaquim <henriquecjoaquim@gmail.com>
2024-05-21 14:52:14 +02:00
Theodore Aptekarev
c4de0a8f36 Remove xlsx export from CLI's interactive tables (#6439)
* Remove excel export from cli interactive tables code

* Remove vulnerable dependency

* Remove posthog from interactive table html template

* Incorporate additional styles to the index.css

* Update the deploy command

* Update the built static file and deploy script

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-21 14:51:00 +02:00
montezdesousa
1994b34866 [BugFix] Bump anyio & sync pre-commit, openbb-devtools and GitHub workflows (#6443)
* fix: update anyio & ruff

* fix: ruff updates

* remove TODO

* lock cli

* bump black

* fix: lock sec

* fix: sec test

* fix: replace toml with tomlkit in test
2024-05-21 10:46:03 +00:00
Danglewood
926524778b add bs4 to sec pyproject.toml (#6440) 2024-05-21 07:57:41 +00:00
Danglewood
bf20807424 [Feature] Compare Company Facts (SEC) (#6444)
* stashing

* more stashing

* add tests

* black

* test params

* mypy

* more mypy

* grammar police

* grammar police
2024-05-21 07:56:53 +00:00
Danglewood
bffd88f96c [Feature] Forward EBITDA (#6433)
* forward ebitda

* codespell

* sort intrinio output

* get

* list instead of dict

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-20 19:03:54 +00:00
Henrique Joaquim
e292237374 [Feature] Deprecate etf.holdings_performance endpoint (#6441)
* ignore the env created on the dev container (which lives inside the project folder)

* broken urls

* remove endpoint

* empty file

* deprecate

* ruff
2024-05-20 18:05:32 +00:00
Henrique Joaquim
6fd00e7876 remove space from literals (#6438)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-20 13:28:52 +00:00
montezdesousa
96ade73ba4 fix: only update credentials on login (#6437)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-20 13:23:19 +00:00
Henrique Joaquim
c65c4adbfb use shlex for spliting the user input (#6436) 2024-05-20 10:56:43 +00:00
montezdesousa
be75bfed9c [Feature] Improve Exception handlers (#6430)
* feat: modify error handlers

* fix: clean python errors

* fix: return error kind

* fix: clean decorator

* fix: query validation error kind

* fix: no kind, API

* fix: no kind, python

* fix: rename error

* lint

* update docs

* comment

* typo

* rename handler

* rename base handler

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-20 08:16:21 +00:00
Danglewood
ef311a1fbf [Feature] Balance Of Payments For FRED (#6431)
* add balance of payments to FRED provider

* gotta commit the init file

* unused import

* mypy

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-20 08:02:50 +00:00
Danglewood
b7b5e40f16 [BugFix] FMP Screener - Convert sector param choices to lower_snake_case (#6432)
* sectors as lower_snake_case

* pylint disable unused-argument

* fix tests

* workaround for pytest

* benzinga alias

* sec form types with spaces

* fmp insider trading

* pylint disable unused argument
2024-05-18 09:42:05 +00:00
Henrique Joaquim
b33e563dc1 [Feature] OpenBB Platform DevContainer (#6426)
* devcontainer and its docs

* typo

* remove file

* remove comments from json
2024-05-17 12:51:16 +00:00
Danglewood
d903bf8006 fmp key metrics (#6428)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-17 12:50:47 +00:00
Henrique Joaquim
7efe96c4d5 [Feature] Small CLI docs style improvements (#6429)
* use platform cli everywhere

* cli w same color as platform

* same colors as platform

* fix tests
2024-05-17 12:50:08 +00:00
Danglewood
3df4e058c5 [BugFix] Do Intrinio News TO-DOs -> Remove workaround because they fixed it. (#6427)
* TO-DOs done

* recapture test cassettes

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-17 12:49:32 +00:00
Danglewood
e124457829 [BugFix] Clear Linting Items (#6423)
* fix some linting items

* pylint stuff

* black

* index_snapshots

* ruff

* forgot to add this file to commit

* black
2024-05-17 09:40:43 +00:00
montezdesousa
4c4f57fa78 [BugFix] - dev_install.py updates (#6424)
* fix: use tomlkit instead of toml & add --cli

* fix: remove cli option, poetry groups ignored by pip

* fix: redirect unittest patch

* adding --cli to the dev install

---------

Co-authored-by: hjoaquim <henriquecjoaquim@gmail.com>
2024-05-16 17:14:30 +00:00
Henrique Joaquim
cc8263a5ff [Release] 4.2.0 (#6420)
* add snowflake integration video (#6339)

* [HotFix] Fix broken URLs in docs page. (#6368)

* Fix broken URLs

* use full URL to other docs pages.

* remove nest_asyncio.apply()

* fix: sort tradingeconomics country choices

* fix lint

* fix: clean _callback function

* assign to empty dict

* feat: add licence to .toml files

* fix: readmes

* fix: add CLA url

* release: 4.20 % dependencies

* Skip deprecation test

* lint

* Sync with main (#6421)

* add snowflake integration video (#6339)

* [HotFix] Fix broken URLs in docs page. (#6368)

* Fix broken URLs

* use full URL to other docs pages.

---------

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

* pylint disable possibly-used-before-assignment

* Update CLI toml

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2024-05-15 20:04:36 +02:00
montezdesousa
83990431f8 [BugFix] - Update GitHub workflows (#6418)
* Fix technical example

* Remove blocking wf command

* rename wf file

* rename wf file

* fix: gh pages wf

* gh pages

* pip install toml

* toml

* activate venv?

* activate venv?

* simpler?

* ^

* install toml in venv

* install the full project first

* Update poetry after venv

* setuptools & venvs

* install requests instead

* package-lock.json -> yarn.lock

* wf name

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-05-15 11:28:52 +00:00
Danglewood
74652ece6e missed unit_measurements (#6416) 2024-05-15 09:19:37 +00:00
Theodore Aptekarev
c61d10d6e3 Update the license of the code in this repo to AGPL (#6415)
* Change license to AGPL

* Add licensing FAQ to the platform docs
2024-05-14 18:24:12 +00:00
Theodore Aptekarev
174d7e69d3 Improve web security (#6405)
* Bump aiohttp to a patched version

* Bump python-multipart to a patched version

* Bump urllib3 to the latest patched version

* Bump aiohttp-client-cache and aiosqlite to latest versions

* Bump plotly.js and third level deps in frontend components

* Bump fastapi to a patched version

* Update lock file after the python-jose removal
2024-05-14 17:30:15 +00:00
Danglewood
05322de3b7 add linux stuff to pre-requisites (#6411) 2024-05-14 16:08:18 +00:00
Henrique Joaquim
8d060dc071 [Feature] CLI docs (#6362)
* cli docs website

* changes

* remove unused feat flags

* typo

* yeet stuff that can't be used

* some progress

* Add home screenshot

* screenshots.md

* fix links

* new cards for cli pages

* start config page

* more updates

* Add screenshots

* flatten some things.

* fix link

* some more updates

* some routine stuff

* codespell

* cli color

* results in the global commands

* increase codeBlock line-height

* remove platform warning, obb is a class

* minor change, danger warning

* typo?

* Data processing commands

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2024-05-14 15:44:07 +00:00
Igor Radovanovic
a116d9bbf2 [Feature] - OpenBB Platform CLI Unit tests (#6397)
* Unit test batch 1

* CLI controller

* Test batch 3

* Test batch 4

* Test batch 5

* clean some workflows and setup actions

* test

* rename wfs

* rename

* update action

* Skip

* fix cli tests

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-14 15:38:06 +00:00
Henrique Joaquim
f87c21ed3c [Feature] Main README (#6403)
* main readme

* lints

* mention platform cli

* test platform imgs

* Update README.md

platform imgs

* break line

* Update to Platform images

* remove old images

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-14 15:09:32 +00:00
Henrique Joaquim
ca0949396a add platform imgs (#6410) 2024-05-14 15:02:48 +00:00
Henrique Joaquim
c2f5f7a3e6 [Feature] Styling adjustments (#6408)
* styling adjustments

* auto completion for main menu commands; cached results style

* move platform settings above

* don't check if obbject.results - we want to have the error message if smt goes wrong with the to_df()

* register only if there are results

* minor style change

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-14 13:35:17 +00:00
montezdesousa
07693784fb [BugFix] - Replace python-jose by PyJWT (#6407)
* fix: replace python-jose by PyJWT

* add unit test

* add unit test

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2024-05-14 13:19:23 +00:00
Henrique Joaquim
88cdd75a6d [Feature] Custom Provider choices available on the reference.json (#6409)
* change package builder and argparse translator to account for custom chocies defined in providers

* default reference
2024-05-14 12:15:33 +00:00
Danglewood
0eee602098 [Feature] Add Forward PE Estimates (#6398)
* forward_pe

* ruff

* merge branch develop

* mypy

* typo

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-14 10:49:29 +00:00
Danglewood
17a7e7d263 [BugFix] Econ Calendar (#6392)
* fix econ calendar

* black

* more black

* pylint

* add 1 to n_urls

* set default dates in transform query

* missing decorator

* add None to literal

* literals

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-14 10:34:48 +00:00
Danglewood
2ac1af3f26 [BugFix] Make paper_bgcolor transparent in PyWry backend (#6385)
* make paper_bgcolor transparent in PyWry backend

* black

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-05-14 10:11:59 +00:00
Danglewood
29dfc7b133 expose error message on request fail (#6406)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-14 08:11:37 +00:00
Henrique Joaquim
922fc547f5 [BugFix] Fix broken --sheet-name argument (#6401)
* remove hold command and its references

* remove --local flag as we don't use it anymore @IgorWounds

* reset package folder

* reset reference

* unnecessary line break removed

* better handling of obbjects before printing/table/chart also fixes the sheet_name issue when writing to excel

* fix linting; also, dataframe creation in the right place

* proper handling of sheet name

* orient to columns instead

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-05-14 07:03:17 +00:00
Igor Radovanovic
10dddfd893 [BugFix] - Explicit error message when return type is not an OBBject (#6394)
* Send an explicit message when return type isn't an OBBject

* Update package_builder.py

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

* lint

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-13 18:34:55 +00:00
Henrique Joaquim
4ed5f054ca [Feature] CLI README (#6402)
* cli readme

* Update README.md

* suggestions @IgorWounds
2024-05-13 17:14:18 +00:00
montezdesousa
627f7f9a77 [BugFix] - Remove logos (#6404)
* fix: remove logos

* fix: remove from provider

* feat: add extra field

* rename
2024-05-13 17:13:34 +00:00
Igor Radovanovic
f47e7ad90d Fix Excel Data Slicer page. (#6396)
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-13 11:34:45 +00:00
montezdesousa
1dd8bf39c9 fix: alias credentials with uppercase (#6400) 2024-05-13 11:01:19 +00:00
Henrique Joaquim
6f9d46d5f9 remove hold command and its references (#6399)
* remove hold command and its references

* remove --local flag as we don't use it anymore @IgorWounds

* reset package folder

* reset reference

* unnecessary line break removed
2024-05-13 09:21:41 +00:00
Igor Radovanovic
b99655a973 [BugFix] - Remove unused old code (#6395)
* Remove unused old code

* Remvove  from settings choices

* Fix CLI exit when FileNotFound error on routine

---------

Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-05-13 08:21:11 +00:00
Henrique Joaquim
0139dbf7a2 [Feature] Update CLI dependencies (#6389)
* update dependencies

* poetry lock

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-13 07:51:16 +00:00
Henrique Joaquim
ac745adb05 [Feature] Remove i18n (#6390)
* remove i18n

* poetry lock

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2024-05-10 22:07:43 +00:00
Theodore Aptekarev
ac3f10a4c0 Security updates (#6387)
* Bump aiohttp to a patched version

* Bump python-multipart to a patched version

* Bump urllib3 to the latest patched version

* Bump aiohttp-client-cache and aiosqlite to latest versions

* Bump plotly.js and third level deps in frontend components
2024-05-10 22:06:32 +00:00