GithubHelp home page GithubHelp logo

openbb-cookiecutter's People

Contributors

hjoaquim avatar igorwounds avatar montezdesousa avatar piiq avatar the-praxs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openbb-cookiecutter's Issues

[BUG]: Clarify the `provider` object name

I am building an openbb extension with the openbb-cookiecutter template.

When I run:

> from openbb_orats import obb

I get the error:

module 'openbb_orats.provider' has no attribute 'provider'

The CONTRIBUTING GUIDELINES explain that I should put the provider in the __init__.py file, but the cookiecutter template adds a whole modules for this.

Should I put the provider in the __init__.py file or should I keep the provider module?

EXTRA INFO:

[tool.poetry.plugins."openbb_provider_extension"]
openbb_orats = "openbb_orats.provider:orats_provider"
#provider.py module

orats_provider = Provider()

When I run:

> from openbb_orats.provider import orats_provider

This executes without issue. Any help would be appreciated!

[BUG]: Setting up API Key

I have looked over #7, but have not been able to apply the solution to my use case.

I am building openbb-orats, and this requires an api_key.

I have followed along with the template tutorial, but am not having any luck in setting an api_key.

The package name: openbb-orats
Provider Name: orats

When I run the below code, I don't see any available credentials to set? The credentials field in Provider() is uncommented.

obb.user.credentials

# Credentials

I have tried to set the key, to no avail.

from openbb_orats import obb
import openbb_orats

openbb_orats.build()

obb.user.credentials.openbb_orats_api_key = "test"
obb.user.credentials.orats_api_key = "test"

Setting api key to new Extension.

image image image image

This is the extension im building but the setting a new api key is falling
When i call the function directly before setting the key it dosent work as expected and raises the value error missing key.

When i try setting the api key as the openbb-cookiecutter sugestt i get a error, what am i missing here igor.

image

Thanks for the help,
Best,
Cober

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.