-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from rtdip/develop
v0.2.0
- Loading branch information
Showing
52 changed files
with
1,160 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,187 @@ | ||
# Getting started with the RTDIP SDK | ||
# Getting started with RTDIP | ||
|
||
<p align="center"><img src=https://raw.githubusercontent.com/rtdip/core/develop/docs/getting-started/images/rtdip-horizontal-color.png alt="rtdip" width=50% height=50%/></p> | ||
|
||
RTDIP provides functionality to process and query real time data. The RTDIP SDK is central to building pipelines and querying data, so getting started with it is key to unlocking the capability of RTDIP. | ||
|
||
This article provides a guide on how to install the RTDIP SDK. Get started by ensuring you have all the prerequisites before following the simple installation steps. | ||
|
||
* [Prerequisites](#prerequisites) | ||
|
||
* [Installing](#installing-the-rtdip-sdk) | ||
* [Installation](#installing-the-rtdip-sdk) | ||
|
||
## Prerequisites | ||
|
||
### Python | ||
|
||
There are a few things to note before using the RTDIP SDK. The following prerequisites will need to be installed on your local machine. | ||
|
||
* Python version 3.8 >=, < 4.0 should be installed. Check which python version you have with the following command: | ||
Python version 3.8 >= and < 3.11 should be installed. Check which python version you have with the following command: | ||
|
||
python --version | ||
python --version | ||
|
||
Find the latest python version [here](https://www.python.org/downloads/) and ensure your python path is set up correctly on your machine. | ||
Find the latest python version [here](https://www.python.org/downloads/) and ensure your python path is set up correctly on your machine. | ||
|
||
* Ensure your pip python version matches the python version on your machine. Check which version of pip you have installed with the following command: | ||
|
||
### Python Package Installers | ||
|
||
Installing the RTDIP can be done using a package installer, such as [Pip](https://pip.pypa.io/en/stable/getting-started/), [Conda](https://docs.conda.io/en/latest/) or [Micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html). | ||
|
||
=== "Pip" | ||
Ensure your pip python version matches the python version on your machine. Check which version of pip you have installed with the following command: | ||
|
||
pip --version | ||
|
||
There are two ways to ensure you have the correct versions installed. Either upgrade your Python and pip install or create an environment. | ||
|
||
**Option 1**: To upgrade your version of pip use the following command: | ||
|
||
python -m pip install --upgrade pip | ||
|
||
**OR** | ||
=== "Conda" | ||
|
||
**Option 2**: To create an environment, you will need to create a **environment.yml** file with the following: | ||
Check which version of Conda is installed with the following command: | ||
|
||
conda --version | ||
|
||
name: rtdip-sdk | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python==3.11 | ||
- pip==22.0.2 | ||
- pip: | ||
- rtdip-sdk | ||
If necessary, upgrade Conda as follows: | ||
conda update conda | ||
|
||
Run the following command: | ||
=== "Micromamba" | ||
|
||
conda env create -f environment.yml | ||
Check which version of Micromamba is installed with the following command: | ||
micromamba --version | ||
|
||
To update an environment previously created: | ||
If necessary, upgrade Micromamba as follows: | ||
micromamba self-update | ||
|
||
conda env update -f environment.yml | ||
### ODBC | ||
To use pyodbc or turbodbc python libraries, ensure that the required ODBC driver is installed as per these [instructions](https://docs.microsoft.com/en-us/azure/databricks/integrations/bi/jdbc-odbc-bi#download-the-odbc-driver). | ||
|
||
* To use pyodbc or turbodbc python libraries, ensure that the required ODBC driver is installed as per these [instructions](https://docs.microsoft.com/en-us/azure/databricks/integrations/bi/jdbc-odbc-bi#download-the-odbc-driver) | ||
#### Pyodbc | ||
If you plan to use pyodbc, Microsoft Visual C++ 14.0 or greater is required. Get it from [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/). | ||
|
||
* If you plan to use pyodbc, Microsoft Visual C++ 14.0 or greater is required. Get it from [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) | ||
#### Turbodbc | ||
To use turbodbc python library, ensure to follow the [Turbodbc Getting Started](https://turbodbc.readthedocs.io/en/latest/pages/getting_started.html) section and ensure that [Boost](https://turbodbc.readthedocs.io/en/latest/pages/getting_started.html) is installed correctly. | ||
|
||
* To use turbodbc python library, ensure that [Boost](https://turbodbc.readthedocs.io/en/latest/pages/getting_started.html) is installed correctly. | ||
### Java | ||
If you are planning to use the RTDIP Pipelines in your own environment that leverages [pyspark](https://spark.apache.org/docs/latest/api/python/getting_started/install.html) for a component, Java 8 or later is a [prerequisite](https://spark.apache.org/docs/latest/api/python/getting_started/install.html#dependencies). See below for suggestions to install Java in your development environment. | ||
|
||
=== "Conda" | ||
A fairly simple option is to use the conda **openjdk** package to install Java into your python virtual environment. An example of a conda **environment.yml** file to achieve this is below. | ||
|
||
```yaml | ||
name: rtdip-sdk | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python==3.10 | ||
- pip==23.0.1 | ||
- openjdk==11.0.15 | ||
- pip: | ||
- rtdip-sdk | ||
``` | ||
|
||
!!! note "Pypi" | ||
This package is not available from Pypi. | ||
|
||
=== "Java" | ||
Follow the official Java JDK installation documentation [here.](https://docs.oracle.com/en/java/javase/11/install/overview-jdk-installation.html) | ||
|
||
- [Windows](https://docs.oracle.com/en/java/javase/11/install/installation-jdk-microsoft-windows-platforms.html) | ||
- [Mac OS](https://docs.oracle.com/en/java/javase/11/install/installation-jdk-macos.html) | ||
- [Linux](https://docs.oracle.com/en/java/javase/11/install/installation-jdk-linux-platforms.html) | ||
|
||
!!! note "Windows" | ||
Windows requires an additional installation of a file called **winutils.exe**. Please see this [repo](https://github.com/steveloughran/winutils) for more information. | ||
|
||
## Installing the RTDIP SDK | ||
|
||
RTDIP SDK is a PyPi package that can be found [here](https://pypi.org/project/rtdip-sdk/). On this page you can find the **project description**, **release history**, **statistics**, **project links** and **maintainers**. | ||
|
||
1\. To install the latest released version of RTDIP SDK from PyPi use the following command: | ||
Features of the SDK can be installed using different extras statements when installing the **rtdip-sdk** package: | ||
|
||
=== "Queries" | ||
When installing the package for only quering data, simply specify in your preferred python package installer: | ||
|
||
rtdip-sdk | ||
|
||
=== "Pipelines" | ||
RTDIP SDK can be installed to include the packages required to build, execute and deploy pipelines. Specify the following extra **[pipelines]** when installing RTDIP SDK so that the required python packages are included during installation. | ||
|
||
rtdip-sdk[pipelines] | ||
|
||
=== "Pipelines + Pyspark" | ||
RTDIP SDK can also execute pyspark functions as a part of the pipelines functionality. Specify the following extra **[pipelines,pyspark]** when installing RTDIP SDK so that the required pyspark python packages are included during installation. | ||
|
||
rtdip-sdk[pipelines,pyspark] | ||
|
||
pip install rtdip-sdk | ||
!!! note "Java" | ||
Ensure that Java is installed prior to installing the rtdip-sdk with the **[pipelines,pyspark]**. See [here](#java) for more information. | ||
|
||
If you have previously installed the RTDIP SDK and would like the latest version, see below. | ||
The following provides examples of how to install the RTDIP SDK package with Pip, Conda or Micromamba. Please note the section above to update any extra packages to be installed as part of the RTDIP SDK. | ||
|
||
=== "Pip" | ||
|
||
To install the latest released version of RTDIP SDK from PyPi use the following command: | ||
|
||
pip install rtdip-sdk | ||
|
||
If you have previously installed the RTDIP SDK and would like the latest version, see below: | ||
|
||
pip install rtdip-sdk --upgrade | ||
|
||
=== "Conda" | ||
|
||
To create an environment, you will need to create a **environment.yml** file with the following: | ||
|
||
```yaml | ||
name: rtdip-sdk | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python==3.10 | ||
- pip==23.0.1 | ||
- pip: | ||
- rtdip-sdk | ||
``` | ||
|
||
Run the following command: | ||
|
||
conda env create -f environment.yml | ||
|
||
To update an environment previously created: | ||
|
||
conda env update -f environment.yml | ||
|
||
=== "Micromamba" | ||
|
||
To create an environment, you will need to create a **environment.yml** file with the following: | ||
|
||
```yaml | ||
name: rtdip-sdk | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python==3.10 | ||
- pip==23.0.1 | ||
- pip: | ||
- rtdip-sdk | ||
``` | ||
|
||
Run the following command: | ||
|
||
micromamba create -f environment.yml | ||
|
||
To update an environment previously created: | ||
|
||
pip install rtdip-sdk --upgrade | ||
micromamba update -f environment.yml | ||
|
||
2\. Once the installation is complete you can learn how to use the SDK [here.](../sdk/rtdip-sdk-usage.md) | ||
## Next steps | ||
Once the installation is complete you can learn how to use the SDK [here.](../sdk/overview.md) | ||
|
||
!!! note "Note" | ||
</b>If you are having trouble installing the SDK, ensure you have installed all of the prerequisites. If problems persist please see [Troubleshooting](../sdk/troubleshooting.md) for more information. Please also reach out to the RTDIP team via Issues, we are always looking to improve the SDK and value your input.<br /> | ||
</b>If you are having trouble installing the SDK, ensure you have installed all of the prerequisites. If problems persist please see [Troubleshooting](../sdk/queries/databricks/troubleshooting.md) for more information. Please also reach out to the RTDIP team via Issues, we are always looking to improve the SDK and value your input.<br /> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.