Commit Graph

19 Commits

Author SHA1 Message Date
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
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
montezdesousa
cc15a770da [Feature] - Rename terminal folder (#6349)
* rename terminal folder

* docstring

* Rename to openbb_cli

* rename constant

* rename .his file

* pyproject.toml

* Update pre-commit and remove docker-build.yml
2024-04-30 12:42:31 +00:00
Henrique Joaquim
b43364b465 [Feature] OpenBB Platform CLI (#5302)
* rename sdk_token to pat to follow hub convention

* black

* move OpenBBError class to error model

* add OBBject class docstring

* pylint

* add futures to app docstring

* Linting

* Fix chart-related mypy errors. Co-Author: ’hjoaquim’

* Fix more mypy warnings

* Build static

* MyPy improvements

* move get_branch request to logging_settings (#5348)

* move get_branch request to logging_settings

* black

* add todo

* Revert "add todo"

This reverts commit 7e3af83e3d.

* add todo

* Update logging_settings.py

* mac/linux install script python output suppressed

* rename .settings to .user for consistency

* update readme

* update readme

* Linting

* Linting and improvements

* Regenerate static files

* Snake_case, mypy, typing, improvements. | Co-Author: montezdesousa

* Rebuild

* Revert Fetcher

* better cpi

* Snake case

* fixes: major_indices_eod for intraday,  optional company_overview atrs

* 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

* static assets

* ruff

* Hotfix/squeeze import (#5358)

* remove commit_hash and branch references

* lazy load stats, scipy, pandas_ta

* black & ruff

* adding commithash back to log prefix

* fix test

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* .user got lost in merge

* improve __repr__ for sdk classes

* changing posthog project key (#5362)

* Linting and improvements

* Rebuild QA

* fix py38 + metadata ref in docstrings

* doc ident

* restore qa

* update readme: remove journal

* doc detail

* disable black in App docstring

* update readme: command execution

* ruff

* remove run_in_isolation: cannot pickle nested classes

* remove outdated dir openbb_sdk

* outdated workflow

* update ruff

* dependency related changes

* using model validator instead

* adjustments to the system model

* minor adjustments

* revert all changes on stocks controller

* working historical price

* controller_builder file

* process class recursivly

* adding translators prop

* poc with platform as a menu and as command

* paths feature

* adding subcontrollers

* offline access

* menu text as obj variable

* adjustments

* move help to base class; print tables using rich table (for now); clear the choices for better autocompletion

* introducing the platform controller factory

* remove unnecessary file

* revert changes to files

* dinamically generate platform menus

* generated platform commands

* poetry lock

* fix for literals and choices

* adjustments - recursive iteration only if it's a class

* router name should be lower() to match the class processor

* deps

* better output

* handling base models

* comment call_news

* Feature/v4 deprecate everything (#6113)

* comment call_news

* remove news

* remove keys controller

* remove settings controller

* remove ta forex

* remove qa economy

* remove ta stocks

* remove qa stocks

* remove fa stocks

* remove ins stocks

* remove gov stocks

* remove dps stocks

* remove ba stocks

* remove bt stocks

* remove stocks

* remove stocks base controller class

* ruff

* remove qa forex

* remove oanda

* remove forex

* remove forex

* remove forex

* remove mention to fx_tickers

* remove ta crypto

* remove qa crypto

* remove dd crypto

* remove crypto controller

* remove crypto references

* remove economy controller

* remove economy folder

* remoe etf controller

* remove reports controller

* remove dashboards controller

* remove alt controller

* rmeove etf files

* remove alt files

* remove custom reports

* remove dashboard files

* remove econometrics controller

* remove forecast controller

* remove reports files

* remove forecast files

* remove econometrics files

* remove portfolio

* remove futures

* remove fixedincome

* remove funds

* remove sdk and common

* remove all from init

* remove reference to ipykernel

* remove reference to ta_helpers

* remove reference to ta_helpers

* cleanup

* adjustments to choices

* remove old sdk generator

* remove mention to dashboards

* ruff

* cleanup

* remove logging infra

* remove decorators

* remove sdk audit

* remove tought of the day

* remove tought of the day

* fix commands andmenus choices

* fixing lints

* ruffs

* remove old tests

* deps trim

* using container as condition for recursion

* remove unnecessary dependencies

* move dep to better section

* python versions

* poetry lock

* better custmo annotations

* handling properties

* handling edge cases: no func_doc and when signarute doesn't match type hints (self)

* reverting treating models as props

* provider groups

* comment debug stuff

* Revert "comment debug stuff"

This reverts commit f0a86f04a8.

* comment debug stuff

* little adjustment for annotated types

* injecting the reference to make the custom argument groups available

* comments

* custom model_dump to drop choices

* deprecated

* remove update option

* remove update

* remove translations

* remove account controller

* command descriptions

* menu descriptions

* removing interactive tables

* limit the number of columns and rows

* menu descriptions

* show indexes

* More cleanups (#6245)

* renames

* remove .init files

* remove unused files

* remove session stuff

* remove session and sources stuff

* remove unused models

* remove sdk session

* remove charting infra

* remove charting stuff but allow console style

* updates in models

* raise directly

* call terminal directly and remove artifacts

* remove reference to sources

* remove reference to source arg

* remove reference to source arg

* remove unused stuff

* remove screenshot and raise directly

* remove unnecessary helper classes

* update the config file

* remove references to old charting infra

* call terminal directly

* update deps

* make user always local for now

* rename to CLI

* ruff

* export options

* export functionality

* update rich

* update example routine

* fix issues with queue

* temporary workaround for username

* deprecate main menu commands

* deprecate commands and remove unused stuff

* deprecate commands and remove unused stuff

* deprecate commands and remove unused stuff

* adjustments and cleanups

* routines syncing w hub

* small adjustments to point to the right instance

* whoami

* custom terminal style

* adjustments related to preferences

* deprecate stuff

* rename terminal style

* deprecate more things

* more deprecation

* more adjustments

* current settings - deprecating preferences, user and system

* terminal settings

* revmap custom terminal settings

* cli version

* ruff

* black

* linting fixes

* happy mypy

* ruff

* remove old terminal build files

* remove devcontainer

* update dependencies

* trim commands and its descriptions

* better warnings

* remove commands and menus str and show warnings if dev mode

* get command descriptions from the translators instead

* Add username in brackets if logged in

* fix buggy command descriptions

* [Feature] Bug fixing the Platform CLI (#6291)

* fix buggy command descriptions

* new reference structure

* Seggregate data commands from others (settings etc)

* fix table html for charting extension

* number of rows and columns as a setting

* interactive tables

* adding menu descriptions

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* fix the way reference was being passed

* fix choices parsing for providers

* loosen to get instead

* obbject registry class

* obbject registry class

* using the obbject registry to show available options

* link obbject results to data processing commands data argument

* small improvements to correctly get the standard args

* intersecting data processing commands and matching the obbject trough its id

* poetry lock

* use openbb field

* safe json conversion and trimming

* better at finding nargs when union

* improved obbject registry using a stack

* data processing section

* Update argparse_translator/argparse_class_processor.py

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

* fix: remove unused function

* fix: terminal.py -> openbb_terminal/cli.py

* fix: move local model function to utils & delete module

* fix: rename hub_model.py to hub_service.py

* fix: delete paths_helper.py, not used

* fix: circular import console

* fix: move terminal_style.py from plots/ to config, delete plots/

* fix: delele base_helpers.py, function moved to env_handler.py

* fix: move custom_prompt_toolkit.py to core/completer

* fix: delete requirements.txt, we can export them later if needed

* fix: move routines stuff to routines/

* fix: move rich_config.py to core/config

* fix: rename parent_classes.py to base_controller.py

* Danger: create controllers/ and move stuff

* fix: move custom_prompt_toolkit.py to config and delete completer/

* fix: rename custom_prompt_toolkit.py to completer.py

* fix: move rouines stuff to folder

* ^ oops

* Edits

* fix: settings import

* fix: openbb command

* Fix routine record when local user

* Lint

* Remove quickexit

* Fix timezone change

* fix data processing commands: not allowing multiple items + need to allow 0 (which evalutes as false)

* split comma separated strings into a list so that the cli can consume them

* Feature/move terminal files (#6344)

* Move terminal files into openbb_terminal

* move routines

* Create session to handle console, user, settings, etc.

* Reset...

* Bring back frontend-components

* Move frontend-components to openbb_terminal

* rename vars

* remove doc

* rename method

* rename method

* fix routines

* read settings from .env

* rename methods

* ^

* ^

* better

* bug

* ^

* move frontend-components back to root level

* revert changes

* type checking only

* docstring

* fix: settings autocomplete

* comment

* use openbb_core singleton

* rename src to fix openbb command

* fix poetry build

* readme

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: tehcoderer <me@tehcoderer.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2024-04-29 08:52:59 +00:00
teh_coderer
41ef3d416f Hotfix/ improve tables/charts (#5228)
* improve charts, tables

* update

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-19 23:58:32 +00:00
teh_coderer
281799f047 hotfix / improve autoscaling/dynamic loading, fix forex candle charts, equity reports (#5183)
* improve autoscaling/dynamic loading, fix forex candle charts

* updates

* Update plotly_helper.py

* fix?

* fix table date sorting, localize forex load

* tests

* tests?

* ugh tests

* Update test_display_debt.txt

* Update test_get_debt.csv

* Update forex_helper.py

* close #5182

* fix `crypto/dd/info` tables not loading due to `dict` object in dataframe values

* Update parent_classes.py

* tables: show full value on hover, fix year only filtering. on reset use queue if logged in

* lint + first batch of test fix

* tests pt2

* Tests v3

* Pylint

* typo

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-14 14:46:01 +00:00
teh_coderer
8a70c6205d Feature/ Pywry login (#5115)
* Update .gitignore

* init

* Update backend.py

* Update main.tsx

* Update no_import.py

* Update session_controller.py

* indents

* adjust window size

* update keys

* re-add save session for pywry login

* pop response keys on rename

* walrus remember

* use session username for profile

* implement logout clearing of cookies

* don't display welcome when logging in from `account` menu

* Update session_model.py

* Update session_model.py

* customdata handler for charts

* fix remember key

* only slice data if chandlestick trace in data

* Update profile_model.py

* Update streamlit_run.py

* Update plotly.html

* test

* Update loggers.py

* updates

* Update session_controller.py

* Update session_controller.py

* no longer need to call_hub for logout

* tests

* Update test_session_controller.py

* Update profile_model.py

* bump pywry, fix numbers passed as strings tables

* update plotly frontend packages

* formatting

* Update backend.py

* Update backend.py

* change to prod

* return on image export

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-20 17:47:38 +00:00
teh_coderer
e464b4ebbb fix theme fails if trace.marker.color isn't an array (#5144) 2023-06-15 13:12:06 +00:00
teh_coderer
4babd35ee6 fix chart overlay x column not set by default (#5142) 2023-06-14 21:44:29 +00:00
teh_coderer
73e59804fc hotfix/ Include plotly.js in reports html + Improve Charts in Reports (#5126)
* include plotly.js in reports html, implement new plotly multi-legends feature

* use `ensure_backend` to `check_backend`, improve charts in reports

* requirements files

* fix files with `CRLF` line endings

* Update widget_helpers.py

* Update widget_helpers.py

* handle unsupported plotly multiple legends version error
2023-06-12 14:10:13 +00:00
teh_coderer
e040e9e6c4 fix wrong default for yaxisFixedRange (#5106) 2023-06-05 17:03:08 +00:00
teh_coderer
f4a5064f32 Hotfix/ Tables + Charts Issues (#5100)
* fix: year to string

* don't slice data if line chart, display message if sliced

* Update plotly.html

* improve autoscaling when data sliced

* fixes #5078
2023-06-05 13:20:34 +00:00
teh_coderer
a6a2268ddc Hotfix/ Candle --log (#5039)
* init... might break stuff

* fix

* clean up

* check if array for color keys
2023-05-18 16:24:29 +00:00
teh_coderer
b54c47e2e9 hotfix/ Charts Theme change not persisting (#5036)
* revert and fix bug introduced in #4546

* improve theme change in chart, add `theme.apply_style()` to settings_controller/hub config change
2023-05-17 14:38:13 +00:00
teh_coderer
fd0ad21873 fix modebar hide/show on hotkeys (#5026)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-16 17:25:04 +00:00
teh_coderer
3e0309816c Hotfix/ Candle Lines, Tables/Charts Save (MacOS) (#5019)
* init

* fix tables save

* Update .gitignore

* Update utils.ts

* add volume to csv, fix `-` filename

* fixes #5020

* tests

* License year

* tests v1

* tests?

* Revert "tests?"

This reverts commit f837a6e0df.

* fix posthog

* Update test_get_debt.yaml

* tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-15 15:57:20 +00:00
teh_coderer
979930b9e8 feature / Refactor Interactive Charts to React (#4941)
* init

* fix tables

* add shortcuts

* handle svgs

* test

* test2

* test3

* Update loggers.py

* Update sdk_helpers.py

* Update loggers.py

* Update loggers.py

* updates

* updates

* update

* handle add text high/low for candlestick traces when updating

* adding save overlay to tables

* maybe fix

* prints

* asdf

* working

* working

* removing prints

* update

* fix no figure title text

* add trace labels space

* download finished popup for MacOS

* bump pywry

* update

* update table

* Update plotly_helper.py

* only format numbers over 10_000 on tables

* Delete generate_index.py

* turn off logs in generations

* update tables

* bump pywry, fix tables, added ichimoku ta indicator

* Update backend.py

* mypy

* update tables

* updates

* juan more

* tables

* test

* bump pywry

* bump pywry

* Update loggers.py

* test

* fixing some formatting

* add update button to indicators dashboard

* fix oecd dates to be full dates

* prepare charts/tables for pywry update

* Update poetry.lock

* Update finviz_view.py

* tests

* tests

* tests

* tests

* testss?

* tests

* Create test_call_func[call_sec-nasdaq_view.sec_filings-other_args37-called_with37].yaml

* testtss please

* Update loggers.py

* testss

* `with open(newline="\n")`

* tests

* tests -__-

* why

* Revert "`with open(newline="\n")`"

This reverts commit 554e0f53f4.

* Revert "why"

This reverts commit 89f1d9b823.

* Revert "tests -__-"

This reverts commit a9c694ae96.

* Revert "tests"

This reverts commit 5463249498.

* whelp

* .

* rename `streamlit.py` -> `streamlit_run.py`,  bump pywry/finviz/streamlit

* Update backend.py

* update

* Revert "update file"

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-11 17:38:12 +00:00
teh_coderer
7f28d012cf Hotfix/ CSV plot candle - bump PyWry (#4895)
* Create .gitignore

* add fillcolor to Plot CSV candlestick trace, bump pywry

* Update backend.py

* Update backend.py
2023-04-25 15:13:18 +00:00