Commit Graph

30 Commits

Author SHA1 Message Date
Henrique Joaquim
7998ae7887 Adds Personal Access Token Commands (#4266)
* token generation on the terminal

* revoke and show commands

* save to keys

* test for hub_model

* black

* controller tests

* fix wrong merge

---------
2023-02-17 17:13:51 +00:00
montezdesousa
825b8955df Set guest by default and put authentication behind environment variable (#4197)
* small bug

* small bug on routines list

* guest as default

* limit logout to users2

* simpler this way

* add logout

* move logout to account & add env var

* put authentication under env var

* fix tests

* remove login

* remove openbb vars on login

* ruff

* revert .toml

* Delete Icon

* Update .env

* fix sdk guest not loading keys

* ruff

* remove press enter & --login

* ruff

* move env load

* load env

* move dot env loading to terminal.py

* fix user sdk login mixing .env with user

* now it works

* fix reset

* fix tests

* ruff

* Login on the SDK using the OpenBB Personal Access Token (#4206)

* openbb key on keys menu

* adding sdk endpoints

* adding login via token to the sdk

* base url

* rename to personal access token

* added docstrings and examples

* openbb is special

* removing extra break line

* making keys working with the personal access token

* resolve conflicting tests

* Revert "resolve conflicting tests"

This reverts commit 2fca2c0ec3.

* using custom requests

* tests

* tests

* tests

* using process_session_response instead

* rewriting some tests

* Fix sdk guest not loading keys (#4207)

* fix sdk guest not loading keys

* ruff

* remove comment

* tests

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>

* test record mode vcr none

* remove yes from tests yml

* specify modules to reload

* try disable check api

* UPdate spec file

* Small stocks bug

* avoid reloading in test mode

* will this work?

* skip session tests

* try with env var as well

* mock sdk reload

* pylint

* bump poetry on python 3.8

* adapt to python 3.8

* adapt to python 3.8 remaining tests

* Tests : update cassettes

* Fix linting

* Makes login conditions simpler

* Tests : txt

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-02-14 09:56:03 +00:00
Diogo Sousa
e568f7a60f change register link to dev 2023-02-09 14:08:41 +00:00
montezdesousa
ead2e2e76a Routine remote storage (#4143)
* add upload routine command

* remove prints

* point to local again

* add commands

* add delete

* add download command and upload 409

* list comprehension

* add download & save plus upload fixe

* add user uuid folder

* add list command

* ruff

* en.yml detail

* provide choices to delete & download

* add choices to upload

* change menu text

* starting adding unit tests

* bad english

* Update test_print_help.txt

* genearl msgs

* remove print

* add docstrings

* add unit tests to account controller

* change parser

* fix routine upload test

* add to be implemented tests hub

* add to be implemented tests local

* add total pages to title

* split list into model and view

* add docstring

* print msg if character

* add local model tests

* hub tests routines

* fix test

* point to dev and glob

* fix small bug on upload

* missing return

* log decorators missing

* black

* ruff
2023-02-09 09:55:05 +00:00
Diogo Sousa
b764198ff5 remove print 2023-02-06 23:06:11 +00:00
Diogo Sousa
4475e74e43 general msgs 2023-02-06 23:02:05 +00:00
Diogo Sousa
c7993c42ba don't display config msg if wrong token 2023-02-06 16:40:11 +00:00
Diogo Sousa
928e652d35 point to dev 2023-02-06 11:05:06 +00:00
Diogo Sousa
c7342cd43d ruff 2023-02-05 19:29:48 +00:00
hjoaquim
10aafd139d tests for hub_model 2023-02-03 12:15:17 +00:00
Diogo Sousa
354031e258 update user-json to user 2023-02-02 22:09:48 +00:00
Diogo Sousa
ac00d522cf test create session, session model 2023-02-02 16:17:08 +00:00
Diogo Sousa
d265a126a5 refactor logout 2023-02-01 11:26:23 +00:00
Diogo Sousa
4240d4e077 routine upload 2023-02-01 10:50:09 +00:00
Diogo Sousa
01f7aa0d18 delete session 2023-02-01 10:47:44 +00:00
Diogo Sousa
aaf0ea25ed clear and patch 2023-02-01 10:41:00 +00:00
Diogo Sousa
61abf795c3 update clear 2023-02-01 10:32:05 +00:00
Diogo Sousa
2bce7b5da5 keep timeout outside funcs 2023-02-01 10:25:07 +00:00
Diogo Sousa
42337a8098 update docstrings 2023-02-01 10:10:07 +00:00
Diogo Sousa
b64a6703e3 success msg only if success 2023-01-31 18:53:05 +00:00
Diogo Sousa
9181117fde add remote logout 2023-01-31 18:44:33 +00:00
Diogo Sousa
f12c15b658 add timeout to hub requests 2023-01-31 17:48:00 +00:00
Diogo Sousa
920330c318 add clear and change messages on account 2023-01-27 12:43:49 +00:00
Diogo Sousa
7f49f13944 mypy 2023-01-26 18:01:30 +00:00
Diogo Sousa
271311532e start routines 2023-01-26 15:35:51 +00:00
Diogo Sousa
7bc106d22c sync optionally 2023-01-26 12:34:49 +00:00
Diogo Sousa
8af8f9af69 unecessary print 2023-01-25 20:36:03 +00:00
Diogo Sousa
6d8678b86f add support for feature flags 2023-01-25 20:31:05 +00:00
Diogo Sousa
f9988d24e8 add ability to save and apply keys from remote 2023-01-25 19:16:49 +00:00
Diogo Sousa
8dae59477a account to session 2023-01-25 12:32:55 +00:00