This topic describes the requirements for installing and using the Hyper API library. You can download the Hyper API library packages from the Hyper API - Products Release and Download page. Select the Hyper API package for your programming language and operating system. Follow the instructions for installing the library for your programming language and operating system as described below.
In this section
The Hyper API officially supports x86-64
platforms.
The Hyper API usually works on Apple silicon in combination with Rosetta 2. Note, however, that starting with version 3.10, Python for macOS is only available in universal binary format, which is currently not supported by Hyper API.
Download Python from https://python.org/downloads.
Windows x86-64
).The following instructions assume that you have set up a virtual environment for Python. For more information on creating virtual environments, see venv - Creation of virtual environments in the Python Standard Library.
Open a terminal and navigate to the venv
directory.
Install the tableauhyperapi module using pip.
pip install tableauhyperapi
If you previously installed the tableauhyperapi
, you can upgrade to the latest version using the following command.
pip install --upgrade tableauhyperapi
Linux installations require pip
version 19.3 or newer. Note that pip
versions 20.0 and 20.1 are not working because of issues with pip
.
Alternatively, you can download the Python Hyper API package file (.whl
file) for your operating system. See Hyper API - Products Release and Download.
pip
to install the .whl
file you downloaded.
Download and try the examples:
.zip
package for your operating system.examples
directory.insert_data_into_single_table.py
).
[venv_directory]\Scripts\python insert_data_into_single_table.py
[venv_directory]/bin/python insert_data_into_single_table.py
.zip
file) for your operating system. See Hyper API - Products Release and Download.examples
directory of the extracted C++ Hyper API package.cmake
:
cmake -G "Visual Studio 16 2019 Win64" .
cmake .
cmake --build . --config Debug
or cmake --build . --config Release
cmake --build .
ctest --verbose -C Debug
or ctest --verbose -C Release
ctest --verbose
examples
directory of the tableauhyperapi-cxx
package.PATH
variable.LD_LIBRARY_PATH
variable.RPATH
for every binary..zip
file) for your operating system. See Hyper API - Products Release and Download.examples
directory of the extracted Java Hyper API package.gradle build
gradle run
build.gradle
file from the unzipped Hyper API package.lib
directory of the unzipped Hyper API package as external JARs:
tableauhyperapi.jar
tableauhyperapi-windows.jar
(Windows),
tableauhyperapi-linux.jar
(Linux),
tableauhyperapi-darwin.jar
(macOS)
jna-5.6.0.jar
hyper
folder from the lib
directory of the unzipped Hyper API package next to the JARs, as in the example project.hapi-javadoc.jar
from the lib directory as the Javadoc archive.Java Native Access Library
If your security requirements require you to run Java applications with the system property jna.nounpack
set to true
, which disables unpacking from a .jar
file, you need to obtain the native Hyper API library in another way. While you could extract the library from the .jar
file in the Java Hyper API package, the easiest way is to download and unzip the C++ Hyper API package for your platform, as described in the following steps:
Download hyperapi-cxx
package for your platform from Hyper API - Products Release and Download.
Unzip the package and place the native Hyper API library in a directory or folder accessible by the Java application.
For Windows, the native library (tableauhyperapi.dll
) file is in the bin
directory of the .zip
file.
For Linux, the library (libtableauhyperapi.so
) is in the lib
directory of the .zip
file.
For macOS, the library (libtableauhyperapi.dylib
) is in the lib
folder of the .zip
file.
Set system property jna.library.path
with value set to the absolute path of the folder or directory that contains the native library file for your platform (from step 2).
You can install the Hyper API for .NET in two ways. You can either download the .zip
file that contains the library and example code, or you can install the NuGet package for the library, either directly, or by adding a reference to your project. The following section describes the requirements for .NET and the installation instructions for both methods.
The Hyper API library is available as a NuGet package. To use the library, you need to add a reference to the Tableau.HyperAPI.NET
package in your project. Use the NuGet Package Manager in Visual Studio, or for other installation options, see Tableau.HyperAPI.NET in the NuGet Gallery.
In addition to using the NuGet package, you can also download the Hyper API library for .NET. The download package includes the .NET examples for the Hyper API.
From the Hyper API - Products Release and Download, download the .NET Hyper API package file (.zip
file) for your operating system. The files are identified as tableauhyperapi-dotnet-
Unzip the Hyper API package file to a convenient location.
Build and run the examples.
build.bat
./build.sh
dotnet run
. For example, dotnet run -- insert-data-into-single-table
Note: The examples assume that you have .NET Core 2.2 installed. Depending upon the version of the .NET Core Framework you are using (2.2 or later), you might need to change the <TargetFramework>
version in the project file (Example.csproj
). You might also need to change the xcopy
path in the build.bat
or build.sh
file.
You can create a new project with the Hyper API in Visual Studio.
In Visual Studio, create or initialize a new .NET project.
In the project file (.csproj
), add a reference to the managed library (Tableau.HyperAPI.NET.dll
). The library is located in the lib
directory where you extracted the Hyper API package.
<ItemGroup>
<Reference Include="Tableau.HyperAPI.NET">
<HintPath>../lib/Tableau.HyperAPI.NET.dll</HintPath>
</Reference>
</ItemGroup>
Or if you want to use the NuGet package, and a reference to the package as described Using the Tableau Hyper API NuGet package.
Change the platform to x64 in the Configuration manager.
Make sure to deploy the native tableauhyperapi library (tableauhyperapi.dll
on Windows and libtableauhyperapi.so
on Linux) and the hyper
folder next to the managed Tableau.HyperAPI.NET.dll
assembly. Both are located in the lib
folder where you installed the Hyper API package.