tableau-api-lib (detailed): getting started

  Рет қаралды 14,432

Devyx

Devyx

Күн бұрын

Пікірлер: 40
@yukangxu1015
@yukangxu1015 Жыл бұрын
Your video save my ass. You are legendary!
@rachaelkertes3552
@rachaelkertes3552 Жыл бұрын
Hello, this has been a really easy tutorial to follow thankyou! I however am getting an error when trying to use the 'querying' function - NameError: name 'querying' is not defined I imported pandas and am version is 2.0.3, not sure why this doesn't work? Thanks for your advice!
@ekaterinakalabush5541
@ekaterinakalabush5541 2 жыл бұрын
Hi! Thank you for the video. Is this library suitable for Tableau Online?
@devyx
@devyx 2 жыл бұрын
Yes, the REST API works on Tableau Online. Tableau Online is kind of like a site you are renting from a massive Tableau Server, so do be aware that some endpoints will not be available (for example, you cannot be a Server Admin on Tableau Online and therefore you cannot use the Create Site endpoint). You can see which endpoints are supported by Tableau Online on the Tableau REST API reference. I recommend using personal access tokens for authenticating with the REST API.
@lxvi4322
@lxvi4322 9 ай бұрын
Hi, how to get more than one page (100 entries) from the Json?
@subhi2698
@subhi2698 4 ай бұрын
hi there i try to get the view data and it just recently been refreshed in my server tds, I keep on running the code and the views is not updated in my python compared to the views in server. it took almost 1hour plus in order for it to reflect on my python views, is there a way to get the updated views each time my tableau views updated on my tableau server?
@Dataanalyticspro
@Dataanalyticspro 3 жыл бұрын
Excellent series, I just came across the latest one and decided to start from the beginning. How did you get the "querying" class to be available @11:11?
@devyx
@devyx 3 жыл бұрын
Hey Jared, thanks! I must have accidentally deleted the import statement, sorry for the confusion. That 'querying' section of the library can be imported by tossing an import statement at the top of your file: from tableau_api_lib.utils import querying
@Dataanalyticspro
@Dataanalyticspro 3 жыл бұрын
@@devyx Thank You.
@inadiv
@inadiv 3 жыл бұрын
What does a response code 405 mean? {'error': {'summary': 'Method Not Allowed', 'detail': "The HTTP method 'GET' is not supported for the given resource", 'code': '405000'}}
@Kimchannel123
@Kimchannel123 3 жыл бұрын
Thanks for the explanation man, its helping me a lot!! I would like to ask a question. My filters are in a different view called "Filters and Params", but the view i would like to dowload is "Market Dash". Is there a way to download "Market Dash" view by altering the filters of another? Thanks again for the help!!
@dianaamiri9520
@dianaamiri9520 3 жыл бұрын
Thanks for the very good explanation. I am very new to Tableau server. Would you please explain a bit what does environment mean? In what situations I might need to connect to different environments?
@devyx
@devyx 3 жыл бұрын
Hi Diana, congrats on diving in and learning more about Tableau Server! In this situation 'environment' simply means the unique details about the server you are connecting to. Imagine that your organization has three different Tableau Servers, one for each of three departments. Or imagine that you are a consultant working with three different clients who each have their own server. In such a situation, you might want to configure your connection information in one place. You could do this by defining the details for each server environment. You would define each environment separately because the address is different for each, they may be running on different versions of the software (and therefore use different API versions), and your credentials to log in will be different. For example, right now I have a Tableau Server environment and a Tableau Online environment I am working with. I configure these in my own config file with the 'environment' name as 'tableau_server' and 'tableau_online', and then in my Python code I can simply reference the one I am currently working on by name when configuring my TableauServerConnection. Hope that helps!
@dianaamiri9520
@dianaamiri9520 3 жыл бұрын
@@devyx thank you so much, you are amazing in explanation. looking forward to more videos. already subscribed
@PavanPanthula-j6n
@PavanPanthula-j6n Ай бұрын
Hi, How can i get View ID in tableau? can someone help?
@beracahpanam912
@beracahpanam912 Жыл бұрын
here what is site_name and site_url in config json object
@davidbeiler6364
@davidbeiler6364 2 жыл бұрын
how did you get your site_name and url?
@asmaakashef7313
@asmaakashef7313 2 жыл бұрын
how to get enviroment name in cloud tableau?
@KenjiKahara
@KenjiKahara 3 жыл бұрын
Is there a node.js version of tableau-api-lib? Is there a good library that's similar to this for React.js?
@devyx
@devyx 3 жыл бұрын
No, there is only a Python version of this library. However, you might find what you need in Tableau's JavaScript API.
@sxvssxvs7077
@sxvssxvs7077 Жыл бұрын
How can I get the console that you are using? In other words, where I can download the software(s) that you are using ? or How can I install the software(s) that you are using? or Do I have to install python first, then ipython then jupiter notebook then jupiter lab? thank you for all your help in advance - newby here
@sxvssxvs7077
@sxvssxvs7077 Жыл бұрын
I have the software thank you.
@cargouvu
@cargouvu 2 жыл бұрын
Can we download the data from the server? We are anticipating issues that the data from the extract may not load completely and are trying to automate a process of looking at the data to see if there are any discrepancies. Any thoughts that would help?
@devyx
@devyx 2 жыл бұрын
My advice is to avoid extracting the data if the volume is so large to encounter issues. Databases such as Snowflake can process large volumes of data quite well with a live connection (billion+ rows). Also to that end, more extracts means more storage required on your Tableau Server and more CPU required for backgrounder processes. If you want to validate an extract compared to what exists in another system, my approach would be to compare high-level aggregates. For example, total revenue per day... If these high level aggregates do not align then you know something went wrong.
@cargouvu
@cargouvu 2 жыл бұрын
@@devyx It's not liking this line: conn = TableauServerConnection{config_json=config, env='tableau_dev'} . I'm not defining config_json or TableauServerConnection earlier but I see that you aren't either.
@cargouvu
@cargouvu 2 жыл бұрын
Any ideas why an error could come? The error is that these weren't defined earlier.
@sparvathaneni1
@sparvathaneni1 2 жыл бұрын
How did you resolve the https, SSL timeout error on port 443 ? Appreciate any inputs. Thanks !
@devyx
@devyx 2 жыл бұрын
If your server doesn't use SSL, you can toggle SSL for the TableauServerConnection via a boolean parameter when inititalizing the connection. If your server does use SSL and you are getting this error, it is a networking issue rather than a code issue. Might want to check with your IT group if the server is air-gapped or if the REST API is disabled. Either of those would prevent you from reaching the server via API valls.
@sparvathaneni1
@sparvathaneni1 2 жыл бұрын
@@devyx Thanks for a lot for the info. I was install pip install certifi - - upgrade. The issue was resolved looks like it needed new CA cert files. But I have to tell you your videos are extremely helpful. Btw: I sent a e-mail yesterday. Thank you !
@sivabalaguruangusamy7215
@sivabalaguruangusamy7215 Жыл бұрын
Hello Devyx, During execution, I am receiving the below error. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Also, I validated my config details json format online. It shows config details is valid json format. Can you assist me here to fix the error.
@devyx
@devyx Жыл бұрын
Hey, I'm not able to replicate the issue -- everything is working as expected for me with my same setup. My guess is that something is not exactly how it should be in your config. If you can mock up how you are defining your config (share it as-is in terms of structure, but without revealing your actual server address and password or other sensitive details), then I might be able to identify the issue.
@shekar34327
@shekar34327 2 жыл бұрын
Hi Devyx I am looking for scenario where i would like to extract data from Rest API to Tableau, if you can comment on easy option it would be really helpful , and do we have any built in Tableau connecter which can connect to Rest API and pull the data to Tableau?
@devyx
@devyx 2 жыл бұрын
Hi Shekar, the easiest way to do this is to query the REST API, output the results to a file (JSON is easiest if you hit an endpoint returning nested columns) and then connect to that file with Tableau Desktop. Connecting to JSON gives you the option to automatically flatten nested columns. The long-term solution I would personally use (and which I do use) is to build a process where you have scheduled tasks which query the REST API, insert the results into a database, and then your Tableau workbooks or datasources connect to that database. This takes more effort to build but is more scalable and saves time in the long run. You would need to have logic which flattens nested columns, assuming you want that data in a user friendly form.
@shekar34327
@shekar34327 2 жыл бұрын
@@devyx Thank you for the providing options, but in my case they are not allowing to dump data in any place, just asking to connect to Rest API and pull data to Tableau, long term solution which you mentioned is scalable, even i suggested same but it will take some time to implement for them, so for quick and dirty they are asking to pull data from Rest API, not sure how we can extract data from Rest API, I know we can do some calculations based on datasets using API, but pulling data from API seems challenging, if you tried please share the video, i will follow similar steps.
@devyx
@devyx 2 жыл бұрын
@@shekar34327 Hey Shekar, I understand the situation and it's a similar one I've been in many times! Hopefully this helps. Here is a link to an article and a KZbin video. They are the same tutorial, but one is in written form with screenshots and the other is a video you can watch and follow along. The full code is provided at the bottom of the written article. In this example, we are pulling permissions data from the REST API and outputting the data into a CSV file. We then connect to that CSV file using Tableau Desktop to interact with the results. Article: towardsdatascience.com/query-tableau-workbook-permissions-for-all-groups-and-users-4ae4e4cc404 Video: kzbin.info/www/bejne/gJyud6R_gpiiY9k
@venkateshvarma6065
@venkateshvarma6065 Жыл бұрын
Hi I am trying your approach of using Tableau server client to download data from our tableau server. But during sign in, its failing by SSL error error: SSLError: HTTPSConnectionPool(host='XXX', port=443): Max retries exceeded with url: /api/3.8/serverinfo (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))) can you please let me know how to resolve this issue.
@devyx
@devyx Жыл бұрын
Hey Venkatesh, SSL issues are an infrastructure issue unrelated to this library. Your IT/infra team should have some ideas on how to get your SSL certs sorted. A workaround which I do not recommend, but which is an option, is to bypass SSL entirely by setting the "ssl_verify" flag in your TableauServerConnection to "False". This of course is only viable for testing and is absolutely not recommended for production, as you never want to open your door to vulnerabilities.
@michielprocee105
@michielprocee105 4 жыл бұрын
Thanks
@devyx
@devyx 4 жыл бұрын
Glad you got some benefit from the video!
@deepansharora6482
@deepansharora6482 Жыл бұрын
Where can I get my Tableau Server link from ?
tableau-api-lib (detailed): fetching user details
13:42
Devyx
Рет қаралды 2,7 М.
Download Tableau dashboard PDFs like a boss using Python
20:08
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 8 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 12 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 5 МЛН
Triggering Tableau extract refreshes using the REST API
17:38
Tableau Metadata API Deep Dive
51:45
Tableau
Рет қаралды 9 М.
[2021] Introduction into APIs and Importing into Tableau
25:58
Cody Bernardy
Рет қаралды 5 М.
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 136 М.
Power BI REST API; What it is and Why it is Important
12:27
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 8 МЛН