hi, would like to ask if Datahub supports python a...
# getting-started
s
hi, would like to ask if Datahub supports python api or sdk for validating(or searching) if given dataset urn exists or not? (seems like it is possible in graphQL api) thanks in advance
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: 1️⃣ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? Yes button 2️⃣ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? Yes button
m
Not yet, but it is coming soon (< 2wks)!
s
Thanks. For now, I am trying to use graphql api to search for dataset. But I have trouble using them.. I have set-up datahub in gke using official helm-chart. I am trying to get graphQL URL endpoint, but have no clue where to find. can you give me some guide on this? (is it right to use datahub-prerequisites-neo4j-community? or datahub-prerequisites-frontend?) Following is the error msg I received when trying to use datahub-prerequisities-frontend service as url. I have given admin role to access token as well but getting the error…
Copy code
requests.exceptions.HTTPError: 405 Client Error: Method Not Allowed for url: <URL>/api/graphiql
b
Use /api/graphql -> graphiql is the UI
s
api/graphql <--- for curl api/graphiql <--- for UI ??
b
Yes
s
thanks a lot! it worked!
h
@mammoth-bear-12532 Hello, any updates if this is available under python SDK yet?
a
its available on master, and on the latest rc (https://pypi.org/project/acryl-datahub/0.10.2.4rc3/)
official release coming this week
h
Thanks a lot for sharing this. Any plans of this being part of the Python SDK datahub rest emitter? In my understanding this is currently offered under CLI. Please correct me if my understanding is incorrect.
m
also part of the sdk: https://datahubproject.io/docs/python-sdk/clients
Copy code
class datahub.ingestion.graph.client.DataHubGraph(config)