提交 6e8b922a 编写于 作者: D dingbo

docs: python and java

上级 834a636d
...@@ -3,13 +3,26 @@ sidebar_label: Python ...@@ -3,13 +3,26 @@ sidebar_label: Python
title: Connect with Python Connector title: Connect with Python Connector
--- ---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
## Install Connector ## Install Connector
First, you need to install the `taospy` module version >= `2.3.3`. Run the command below in your terminal. First, you need to install the `taospy` module version >= `2.3.3`. Run the command below in your terminal.
<Tabs>
<TabItem value="pip" label="pip">
``` ```
pip3 install taospy>=2.3.3 pip3 install taospy>=2.3.3
``` ```
</TabItem>
<TabItem value="conda" label="Anaconda">
```
conda install taospy=2.3.3
```
</TabItem>
</Tabs>
You'll need to have Python3 installed. You'll need to have Python3 installed.
...@@ -21,9 +34,12 @@ Run this command in your terminal to save TDengine cloud token as variables: ...@@ -21,9 +34,12 @@ Run this command in your terminal to save TDengine cloud token as variables:
export TDENGINE_CLOUD_TOKEN=<token> export TDENGINE_CLOUD_TOKEN=<token>
``` ```
You can also set environment variable in IDE. For example, you can set environmental variables in Pycharm's run configurations menu.
<!-- exclude --> <!-- exclude -->
:::note :::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).
::: :::
<!-- exclude-end --> <!-- exclude-end -->
......
...@@ -3,10 +3,13 @@ sidebar_label: Java ...@@ -3,10 +3,13 @@ sidebar_label: Java
title: Connect with Java Connector title: Connect with Java Connector
--- ---
## Add Dependency import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Build with Maven ## Add Dependency
<Tabs>
<TabItem value="maven" label="Maven">
```xml ```xml
<dependency> <dependency>
<groupId>com.taosdata.jdbc</groupId> <groupId>com.taosdata.jdbc</groupId>
...@@ -14,14 +17,15 @@ Build with Maven ...@@ -14,14 +17,15 @@ Build with Maven
<version>2.0.39</version> <version>2.0.39</version>
</dependency> </dependency>
``` ```
</TabItem>
Build with Gradle <TabItem value="gradel" label="Gradle">
```groovy ```groovy
dependencies { dependencies {
implementation 'com.taosdata.jdbc:taos-jdbcdriver:2.0.39' implementation 'com.taosdata.jdbc:taos-jdbcdriver:2.0.39'
} }
``` ```
</TabItem>
</Tabs>
## Config ## Config
...@@ -32,6 +36,9 @@ Run this command in your terminal to save TDengine cloud token as variables: ...@@ -32,6 +36,9 @@ Run this command in your terminal to save TDengine cloud token as variables:
export TDENGINE_CLOUD_TOKEN=<token> export TDENGINE_CLOUD_TOKEN=<token>
``` ```
You can also set environment variable in IDE. For example, you can set environmental variables in IDEA's run configurations menu.
## Connect ## Connect
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册