This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch final-0.10.1-release
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/final-0.10.1-release by this
push:
new b6508d6 fix pypi readme file
b6508d6 is described below
commit b6508d6ca1cc14889f2e7435858d71fa0a1e5045
Author: xiangdong huang <[email protected]>
AuthorDate: Sun Aug 23 11:06:14 2020 +0800
fix pypi readme file
---
.gitignore | 3 +++
client-py/src/SessionExample.py | 2 ++
thrift/src/pypi/README.md | 6 +++++-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index b1fb7d9..011fd34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,9 @@
**/lib/**
**/data/**
+# Python runtime file
+**/__pycache__/**
+
# Eclipse IDE files
**/.classpath
**/.project
diff --git a/client-py/src/SessionExample.py b/client-py/src/SessionExample.py
index 2aac6e9..74f3258 100644
--- a/client-py/src/SessionExample.py
+++ b/client-py/src/SessionExample.py
@@ -17,6 +17,8 @@
#
import sys
+# Uncomment the following line to use apache-iotdb module installed by pip3
+#import iotdb
sys.path.append("./utils")
from IoTDBConstants import *
from Tablet import Tablet
diff --git a/thrift/src/pypi/README.md b/thrift/src/pypi/README.md
index 1e445d5..710fc76 100644
--- a/thrift/src/pypi/README.md
+++ b/thrift/src/pypi/README.md
@@ -49,7 +49,11 @@ You have to install thrift (>=0.13) before using the package.
## How to use (Example)
-You can get an example of using the package to read and write data at here:
[Example](https://github.com/apache/incubator-iotdb/blob/release%2F0.10.0/client-py/src/client_example.py)
+First, download the package: `pip3 install apache-iotdb`
+
+You can get an example of using the package to read and write data at here:
[Example](https://github.com/apache/incubator-iotdb/blob/rel/0.10/client-py/src/SessionExample.py)
+
+(you need to add `import iotdb` in the head of the file)
# DISCLAIMER