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

docs: python and java

上级 834a636d
......@@ -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.
<Tabs>
<TabItem value="pip" label="pip">
```
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.
......@@ -21,9 +34,12 @@ Run this command in your terminal to save TDengine cloud token as variables:
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 -->
:::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 -->
......
......@@ -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
<Tabs>
<TabItem value="maven" label="Maven">
```xml
<dependency>
<groupId>com.taosdata.jdbc</groupId>
......@@ -14,14 +17,15 @@ Build with Maven
<version>2.0.39</version>
</dependency>
```
Build with Gradle
</TabItem>
<TabItem value="gradel" label="Gradle">
```groovy
dependencies {
implementation 'com.taosdata.jdbc:taos-jdbcdriver:2.0.39'
}
```
</TabItem>
</Tabs>
## Config
......@@ -32,6 +36,9 @@ Run this command in your terminal to save TDengine cloud token as variables:
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册