openbb-finance / openbb-cookiecutter Goto Github PK
View Code? Open in Web Editor NEWExtension template for OpenBB.
License: MIT License
Extension template for OpenBB.
License: MIT License
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!
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"
Add cruft
to the cookie-cutter template so that any changes down the line to the template can be brought forward into existing extension packages.
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.
Thanks for the help,
Best,
Cober
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.