From 6e8b922abd5b1d64f8b8841bd2b075d37898eb73 Mon Sep 17 00:00:00 2001 From: dingbo Date: Fri, 10 Jun 2022 19:17:30 +0800 Subject: [PATCH] docs: python and java --- docs-en/05-develop/01-connect/01-python.md | 18 +++++++++++++++++- docs-en/05-develop/01-connect/02-java.md | 17 ++++++++++++----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/docs-en/05-develop/01-connect/01-python.md b/docs-en/05-develop/01-connect/01-python.md index 3a2a920dd9..4e7e7d8f3d 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 3cb03b533e..addde126b6 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 -- GitLab