diff --git a/docs-en/05-develop/01-connect/01-python.md b/docs-en/05-develop/01-connect/01-python.md index 3a2a920dd90704f4a89e3bda52220399054689e5..4e7e7d8f3d3bb310180338b1d84423161f521445 100644 --- a/docs-en/05-develop/01-connect/01-python.md +++ b/docs-en/05-develop/01-connect/01-python.md @@ -3,13 +3,26 @@ sidebar_label: Python title: Connect with Python Connector --- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + ## Install Connector First, you need to install the `taospy` module version >= `2.3.3`. Run the command below in your terminal. + + ``` pip3 install taospy>=2.3.3 ``` + + +``` +conda install taospy=2.3.3 +``` + + + You'll need to have Python3 installed. @@ -21,9 +34,12 @@ Run this command in your terminal to save TDengine cloud token as variables: export TDENGINE_CLOUD_TOKEN= ``` +You can also set environment variable in IDE. For example, you can set environmental variables in Pycharm's run configurations menu. + + :::note -To obtain cloud token, please log in TDengine Cloud and switch to "Connector" section. +To obtain your personal cloud token, please log in [TDengine Cloud](https://cloud.tdengine.com). ::: diff --git a/docs-en/05-develop/01-connect/02-java.md b/docs-en/05-develop/01-connect/02-java.md index 3cb03b533ed0f0c6b81ad3e4a616b302b6674613..addde126b67f6cd0b102c6672b8053ef3964539b 100644 --- a/docs-en/05-develop/01-connect/02-java.md +++ b/docs-en/05-develop/01-connect/02-java.md @@ -3,10 +3,13 @@ sidebar_label: Java title: Connect with Java Connector --- -## Add Dependency +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; -Build with Maven +## Add Dependency + + ```xml com.taosdata.jdbc @@ -14,14 +17,15 @@ Build with Maven 2.0.39 ``` - -Build with Gradle - + + ```groovy dependencies { implementation 'com.taosdata.jdbc:taos-jdbcdriver:2.0.39' } ``` + + ## Config @@ -32,6 +36,9 @@ Run this command in your terminal to save TDengine cloud token as variables: export TDENGINE_CLOUD_TOKEN= ``` + +You can also set environment variable in IDE. For example, you can set environmental variables in IDEA's run configurations menu. + ## Connect