You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I've been looking all over for something like this in Python, lucky to find Nebulo.
Kudos.
I mostly work in the Django space, and would like to expose some tables and views using something like Nebulo, is there an easy way to pass the django.connection which holds the DB connection into this and it starts to work automatically.
Let me know.
The text was updated successfully, but these errors were encountered:
There is no public api or documentation for usage as a library yet, so any integrations you try to make will be unstable for a while. If you just want to try it out, you could do something like
from nebulo.server.flask import create_app
from graphql.type import GraphQLSchema
# connection is your connection string from django config
app = create_app(connection="connection string", schema='public', echo_queries=False)
schema: GraphQLSchema = app.config["graphql_schema"]
engine = app.config['engine']
session = app.config["database"].session
From there you can execute queries against that schema using standard python-graphql ecosystem using nebulo's database engine and session (sqlalchemy).
Hope that helps
Leaving this open for other django related discusssion
olirice
changed the title
Can this be integrated within Django
Django integration
Apr 6, 2020
First of all, I've been looking all over for something like this in Python, lucky to find Nebulo.
Kudos.
I mostly work in the Django space, and would like to expose some tables and views using something like Nebulo, is there an easy way to pass the django.connection which holds the DB connection into this and it starts to work automatically.
Let me know.
The text was updated successfully, but these errors were encountered: