apache-iotdb 1.3.2.post0__tar.gz → 1.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- apache_iotdb-1.3.2.post0/README.md → apache-iotdb-1.3.4/PKG-INFO +26 -93
- apache_iotdb-1.3.2.post0/apache_iotdb.egg-info/PKG-INFO → apache-iotdb-1.3.4/README.md +4 -114
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4/apache_iotdb.egg-info}/PKG-INFO +12 -100
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/apache_iotdb.egg-info/SOURCES.txt +14 -13
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/apache_iotdb.egg-info/requires.txt +2 -2
- apache-iotdb-1.3.4/apache_iotdb.egg-info/top_level.txt +5 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/Session.py +146 -11
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/SessionPool.py +12 -3
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/template/MeasurementNode.py +10 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/template/Template.py +8 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/template/TemplateNode.py +8 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/common/ttypes.py +1315 -212
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/rpc/IClientRPCService.py +512 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/rpc/ttypes.py +13 -1
- apache_iotdb-1.3.2.post0/iotdb/template/InternalNode.py → apache-iotdb-1.3.4/iotdb/tsfile/utils/DateUtils.py +17 -17
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/Field.py +43 -7
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/IoTDBConstants.py +10 -1
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/IoTDBRpcDataSet.py +72 -22
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/NumpyTablet.py +27 -6
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/RowRecord.py +2 -6
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/SessionDataSet.py +14 -10
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/Tablet.py +30 -14
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/pyproject.toml +42 -3
- apache-iotdb-1.3.4/tests/integration/__init__.py +17 -0
- apache-iotdb-1.3.4/tests/integration/test_new_data_types.py +184 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_todf.py +3 -3
- apache-iotdb-1.3.4/tests/unit/__init__.py +17 -0
- apache_iotdb-1.3.2.post0/apache_iotdb.egg-info/top_level.txt +0 -2
- apache_iotdb-1.3.2.post0/setup.py +0 -64
- apache_iotdb-1.3.2.post0/tests/test_template.py +0 -110
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/apache_iotdb.egg-info/dependency_links.txt +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/apache_iotdb.egg-info/entry_points.txt +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/IoTDBContainer.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/dbapi/Connection.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/dbapi/Cursor.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/dbapi/Exceptions.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/dbapi/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/dbapi/tests/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/dbapi/tests/test_connection.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/dbapi/tests/test_cursor.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/sqlalchemy/IoTDBDialect.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/sqlalchemy/IoTDBIdentifierPreparer.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/sqlalchemy/IoTDBSQLCompiler.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/sqlalchemy/IoTDBTypeCompiler.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/sqlalchemy/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/sqlalchemy/tests/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/sqlalchemy/tests/test_dialect.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/template/TemplateQueryType.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/template/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/common/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/common/constants.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/rpc/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/thrift/rpc/constants.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/tsfile/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/tsfile/common/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/tsfile/common/constant/TsFileConstant.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/tsfile/common/constant/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/tsfile/utils/Pair.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/tsfile/utils/ReadWriteIOUtils.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/tsfile/utils/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/BitMap.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/IoTDBConnectionException.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/iotdb/utils/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/setup.cfg +0 -0
- {apache_iotdb-1.3.2.post0 → apache-iotdb-1.3.4}/tests/__init__.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/tablet_performance_comparison.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_aligned_timeseries.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_dataframe.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_delete_data.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_one_device.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_session.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_session_pool.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/integration}/test_tablet.py +0 -0
- {apache_iotdb-1.3.2.post0/tests → apache-iotdb-1.3.4/tests/unit}/test_numpy_tablet.py +0 -0
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: apache-iotdb
|
|
3
|
+
Version: 1.3.4
|
|
4
|
+
Summary: Apache IoTDB client API
|
|
5
|
+
Author-email: Apache IoTDB <dev@iotdb.apache.org>
|
|
6
|
+
License: Apache License, Version 2.0
|
|
7
|
+
Project-URL: Homepage, https://iotdb.apache.org
|
|
8
|
+
Project-URL: Documentation, https://github.com/apache/iotdb
|
|
9
|
+
Keywords: iotdb,apache,client,API
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
|
+
Requires-Python: >=3.6
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: thrift>=0.14.1
|
|
18
|
+
Requires-Dist: pandas>=1.0.0
|
|
19
|
+
Requires-Dist: numpy>=1.0.0
|
|
20
|
+
Requires-Dist: sqlalchemy<1.5,>=1.4
|
|
21
|
+
Requires-Dist: sqlalchemy-utils>=0.37.8
|
|
22
|
+
|
|
1
23
|
<!--
|
|
2
24
|
|
|
3
25
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
@@ -21,7 +43,6 @@
|
|
|
21
43
|
|
|
22
44
|
# Apache IoTDB
|
|
23
45
|
|
|
24
|
-
[](https://github.com/apache/iotdb/actions/workflows/client-python.yml)
|
|
25
46
|
[](https://github.com/apache/iotdb/releases)
|
|
26
47
|
[](https://www.apache.org/licenses/LICENSE-2.0.html)
|
|
27
48
|

|
|
@@ -40,7 +61,7 @@ high-speed data ingestion and complex data analysis in the IoT industrial fields
|
|
|
40
61
|
|
|
41
62
|
### Requirements
|
|
42
63
|
|
|
43
|
-
You have to install thrift (>=0.
|
|
64
|
+
You have to install thrift (>=0.14.1) before using the package.
|
|
44
65
|
|
|
45
66
|
|
|
46
67
|
|
|
@@ -48,8 +69,6 @@ You have to install thrift (>=0.13) before using the package.
|
|
|
48
69
|
|
|
49
70
|
First, download the latest package: `pip3 install apache-iotdb`
|
|
50
71
|
|
|
51
|
-
*Notice: If you are installing Python API v0.13.0, DO NOT install by `pip install apache-iotdb==0.13.0`, use `pip install apache-iotdb==0.13.0.post1` instead!*
|
|
52
|
-
|
|
53
72
|
You can get an example of using the package to read and write data at here: [Example](https://github.com/apache/iotdb/blob/master/client-py/SessionExample.py)
|
|
54
73
|
|
|
55
74
|
An example of aligned timeseries: [Aligned Timeseries Session Example](https://github.com/apache/iotdb/blob/master/client-py/SessionAlignedTimeseriesExample.py)
|
|
@@ -312,91 +331,6 @@ session.execute_non_query_statement(sql)
|
|
|
312
331
|
session.execute_statement(sql)
|
|
313
332
|
```
|
|
314
333
|
|
|
315
|
-
### Device Template
|
|
316
|
-
#### Create Device Template
|
|
317
|
-
The step for creating a metadata template is as follows
|
|
318
|
-
1. Create the template class
|
|
319
|
-
2. Adding child Node,InternalNode and MeasurementNode can be chose
|
|
320
|
-
3. Execute create device template function
|
|
321
|
-
|
|
322
|
-
```python
|
|
323
|
-
template = Template(name=template_name, share_time=True)
|
|
324
|
-
|
|
325
|
-
i_node_gps = InternalNode(name="GPS", share_time=False)
|
|
326
|
-
i_node_v = InternalNode(name="vehicle", share_time=True)
|
|
327
|
-
m_node_x = MeasurementNode("x", TSDataType.FLOAT, TSEncoding.RLE, Compressor.SNAPPY)
|
|
328
|
-
|
|
329
|
-
i_node_gps.add_child(m_node_x)
|
|
330
|
-
i_node_v.add_child(m_node_x)
|
|
331
|
-
|
|
332
|
-
template.add_template(i_node_gps)
|
|
333
|
-
template.add_template(i_node_v)
|
|
334
|
-
template.add_template(m_node_x)
|
|
335
|
-
|
|
336
|
-
session.create_schema_template(template)
|
|
337
|
-
```
|
|
338
|
-
#### Modify Device Template nodes
|
|
339
|
-
Modify nodes in a template, the template must be already created. These are functions that add or delete some measurement nodes.
|
|
340
|
-
* add node in template
|
|
341
|
-
```python
|
|
342
|
-
session.add_measurements_in_template(template_name, measurements_path, data_types, encodings, compressors, is_aligned)
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
* delete node in template
|
|
346
|
-
```python
|
|
347
|
-
session.delete_node_in_template(template_name, path)
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
#### Set Device Template
|
|
351
|
-
```python
|
|
352
|
-
session.set_schema_template(template_name, prefix_path)
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
#### Uset Device Template
|
|
356
|
-
```python
|
|
357
|
-
session.unset_schema_template(template_name, prefix_path)
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
#### Show Device Template
|
|
361
|
-
* Show all device templates
|
|
362
|
-
```python
|
|
363
|
-
session.show_all_templates()
|
|
364
|
-
```
|
|
365
|
-
* Count all nodes in templates
|
|
366
|
-
```python
|
|
367
|
-
session.count_measurements_in_template(template_name)
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
* Judge whether the path is measurement or not in templates, This measurement must be in the template
|
|
371
|
-
```python
|
|
372
|
-
session.count_measurements_in_template(template_name, path)
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
* Judge whether the path is exist or not in templates, This path may not belong to the template
|
|
376
|
-
```python
|
|
377
|
-
session.is_path_exist_in_template(template_name, path)
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
* Show nodes under in device template
|
|
381
|
-
```python
|
|
382
|
-
session.show_measurements_in_template(template_name)
|
|
383
|
-
```
|
|
384
|
-
|
|
385
|
-
* Show the path prefix where a device template is set
|
|
386
|
-
```python
|
|
387
|
-
session.show_paths_template_set_on(template_name)
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
* Show the path prefix where a device template is used (i.e. the time series has been created)
|
|
391
|
-
```python
|
|
392
|
-
session.show_paths_template_using_on(template_name)
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
#### Drop Device Template
|
|
396
|
-
Delete an existing metadata template,dropping an already set template is not supported
|
|
397
|
-
```python
|
|
398
|
-
session.drop_schema_template("template_python")
|
|
399
|
-
```
|
|
400
334
|
|
|
401
335
|
|
|
402
336
|
### Pandas Support
|
|
@@ -601,9 +535,9 @@ This is an example of how to connect to IoTDB with python, using the thrift rpc
|
|
|
601
535
|
|
|
602
536
|
### Prerequisites
|
|
603
537
|
|
|
604
|
-
Python3.
|
|
538
|
+
Python3.6 or later is preferred.
|
|
605
539
|
|
|
606
|
-
You have to install Thrift (0.
|
|
540
|
+
You have to install Thrift (0.14.1 or later) to compile our thrift file into python code. Below is the official tutorial of installation, eventually, you should have a thrift executable.
|
|
607
541
|
|
|
608
542
|
```
|
|
609
543
|
http://thrift.apache.org/docs/install/
|
|
@@ -689,8 +623,7 @@ Namely, these are
|
|
|
689
623
|
|
|
690
624
|
* Remove all transient directories from last release (if exists)
|
|
691
625
|
* (Re-)generate all generated sources via mvn
|
|
692
|
-
* Run
|
|
693
|
-
* Run Tests via pytest
|
|
626
|
+
* Run Tests via pytest (optional)
|
|
694
627
|
* Build
|
|
695
628
|
* Release to pypi
|
|
696
629
|
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: apache-iotdb
|
|
3
|
-
Version: 1.3.2.post0
|
|
4
|
-
Summary: Apache IoTDB client API
|
|
5
|
-
Home-page: https://github.com/apache/iotdb
|
|
6
|
-
Author: Apache Software Foundation
|
|
7
|
-
Author-email: dev@iotdb.apache.org
|
|
8
|
-
License: Apache License, Version 2.0
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Classifier: Operating System :: OS Independent
|
|
12
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
13
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
|
-
Requires-Python: >=3.7
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
Requires-Dist: thrift>=0.14.1
|
|
17
|
-
Requires-Dist: pandas>=1.3.5
|
|
18
|
-
Requires-Dist: numpy>=1.21.4
|
|
19
|
-
Requires-Dist: sqlalchemy<1.5,>=1.4
|
|
20
|
-
Requires-Dist: sqlalchemy-utils>=0.37.8
|
|
21
|
-
|
|
22
1
|
<!--
|
|
23
2
|
|
|
24
3
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
@@ -42,7 +21,6 @@ Requires-Dist: sqlalchemy-utils>=0.37.8
|
|
|
42
21
|
|
|
43
22
|
# Apache IoTDB
|
|
44
23
|
|
|
45
|
-
[](https://github.com/apache/iotdb/actions/workflows/client-python.yml)
|
|
46
24
|
[](https://github.com/apache/iotdb/releases)
|
|
47
25
|
[](https://www.apache.org/licenses/LICENSE-2.0.html)
|
|
48
26
|

|
|
@@ -61,7 +39,7 @@ high-speed data ingestion and complex data analysis in the IoT industrial fields
|
|
|
61
39
|
|
|
62
40
|
### Requirements
|
|
63
41
|
|
|
64
|
-
You have to install thrift (>=0.
|
|
42
|
+
You have to install thrift (>=0.14.1) before using the package.
|
|
65
43
|
|
|
66
44
|
|
|
67
45
|
|
|
@@ -69,8 +47,6 @@ You have to install thrift (>=0.13) before using the package.
|
|
|
69
47
|
|
|
70
48
|
First, download the latest package: `pip3 install apache-iotdb`
|
|
71
49
|
|
|
72
|
-
*Notice: If you are installing Python API v0.13.0, DO NOT install by `pip install apache-iotdb==0.13.0`, use `pip install apache-iotdb==0.13.0.post1` instead!*
|
|
73
|
-
|
|
74
50
|
You can get an example of using the package to read and write data at here: [Example](https://github.com/apache/iotdb/blob/master/client-py/SessionExample.py)
|
|
75
51
|
|
|
76
52
|
An example of aligned timeseries: [Aligned Timeseries Session Example](https://github.com/apache/iotdb/blob/master/client-py/SessionAlignedTimeseriesExample.py)
|
|
@@ -333,91 +309,6 @@ session.execute_non_query_statement(sql)
|
|
|
333
309
|
session.execute_statement(sql)
|
|
334
310
|
```
|
|
335
311
|
|
|
336
|
-
### Device Template
|
|
337
|
-
#### Create Device Template
|
|
338
|
-
The step for creating a metadata template is as follows
|
|
339
|
-
1. Create the template class
|
|
340
|
-
2. Adding child Node,InternalNode and MeasurementNode can be chose
|
|
341
|
-
3. Execute create device template function
|
|
342
|
-
|
|
343
|
-
```python
|
|
344
|
-
template = Template(name=template_name, share_time=True)
|
|
345
|
-
|
|
346
|
-
i_node_gps = InternalNode(name="GPS", share_time=False)
|
|
347
|
-
i_node_v = InternalNode(name="vehicle", share_time=True)
|
|
348
|
-
m_node_x = MeasurementNode("x", TSDataType.FLOAT, TSEncoding.RLE, Compressor.SNAPPY)
|
|
349
|
-
|
|
350
|
-
i_node_gps.add_child(m_node_x)
|
|
351
|
-
i_node_v.add_child(m_node_x)
|
|
352
|
-
|
|
353
|
-
template.add_template(i_node_gps)
|
|
354
|
-
template.add_template(i_node_v)
|
|
355
|
-
template.add_template(m_node_x)
|
|
356
|
-
|
|
357
|
-
session.create_schema_template(template)
|
|
358
|
-
```
|
|
359
|
-
#### Modify Device Template nodes
|
|
360
|
-
Modify nodes in a template, the template must be already created. These are functions that add or delete some measurement nodes.
|
|
361
|
-
* add node in template
|
|
362
|
-
```python
|
|
363
|
-
session.add_measurements_in_template(template_name, measurements_path, data_types, encodings, compressors, is_aligned)
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
* delete node in template
|
|
367
|
-
```python
|
|
368
|
-
session.delete_node_in_template(template_name, path)
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
#### Set Device Template
|
|
372
|
-
```python
|
|
373
|
-
session.set_schema_template(template_name, prefix_path)
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
#### Uset Device Template
|
|
377
|
-
```python
|
|
378
|
-
session.unset_schema_template(template_name, prefix_path)
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
#### Show Device Template
|
|
382
|
-
* Show all device templates
|
|
383
|
-
```python
|
|
384
|
-
session.show_all_templates()
|
|
385
|
-
```
|
|
386
|
-
* Count all nodes in templates
|
|
387
|
-
```python
|
|
388
|
-
session.count_measurements_in_template(template_name)
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
* Judge whether the path is measurement or not in templates, This measurement must be in the template
|
|
392
|
-
```python
|
|
393
|
-
session.count_measurements_in_template(template_name, path)
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
* Judge whether the path is exist or not in templates, This path may not belong to the template
|
|
397
|
-
```python
|
|
398
|
-
session.is_path_exist_in_template(template_name, path)
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
* Show nodes under in device template
|
|
402
|
-
```python
|
|
403
|
-
session.show_measurements_in_template(template_name)
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
* Show the path prefix where a device template is set
|
|
407
|
-
```python
|
|
408
|
-
session.show_paths_template_set_on(template_name)
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
* Show the path prefix where a device template is used (i.e. the time series has been created)
|
|
412
|
-
```python
|
|
413
|
-
session.show_paths_template_using_on(template_name)
|
|
414
|
-
```
|
|
415
|
-
|
|
416
|
-
#### Drop Device Template
|
|
417
|
-
Delete an existing metadata template,dropping an already set template is not supported
|
|
418
|
-
```python
|
|
419
|
-
session.drop_schema_template("template_python")
|
|
420
|
-
```
|
|
421
312
|
|
|
422
313
|
|
|
423
314
|
### Pandas Support
|
|
@@ -622,9 +513,9 @@ This is an example of how to connect to IoTDB with python, using the thrift rpc
|
|
|
622
513
|
|
|
623
514
|
### Prerequisites
|
|
624
515
|
|
|
625
|
-
Python3.
|
|
516
|
+
Python3.6 or later is preferred.
|
|
626
517
|
|
|
627
|
-
You have to install Thrift (0.
|
|
518
|
+
You have to install Thrift (0.14.1 or later) to compile our thrift file into python code. Below is the official tutorial of installation, eventually, you should have a thrift executable.
|
|
628
519
|
|
|
629
520
|
```
|
|
630
521
|
http://thrift.apache.org/docs/install/
|
|
@@ -710,8 +601,7 @@ Namely, these are
|
|
|
710
601
|
|
|
711
602
|
* Remove all transient directories from last release (if exists)
|
|
712
603
|
* (Re-)generate all generated sources via mvn
|
|
713
|
-
* Run
|
|
714
|
-
* Run Tests via pytest
|
|
604
|
+
* Run Tests via pytest (optional)
|
|
715
605
|
* Build
|
|
716
606
|
* Release to pypi
|
|
717
607
|
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apache-iotdb
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.4
|
|
4
4
|
Summary: Apache IoTDB client API
|
|
5
|
-
|
|
6
|
-
Author: Apache Software Foundation
|
|
7
|
-
Author-email: dev@iotdb.apache.org
|
|
5
|
+
Author-email: Apache IoTDB <dev@iotdb.apache.org>
|
|
8
6
|
License: Apache License, Version 2.0
|
|
7
|
+
Project-URL: Homepage, https://iotdb.apache.org
|
|
8
|
+
Project-URL: Documentation, https://github.com/apache/iotdb
|
|
9
|
+
Keywords: iotdb,apache,client,API
|
|
9
10
|
Classifier: Programming Language :: Python :: 3
|
|
10
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
12
|
Classifier: Operating System :: OS Independent
|
|
12
13
|
Classifier: Topic :: Software Development :: Libraries
|
|
13
14
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.6
|
|
15
16
|
Description-Content-Type: text/markdown
|
|
16
17
|
Requires-Dist: thrift>=0.14.1
|
|
17
|
-
Requires-Dist: pandas>=1.
|
|
18
|
-
Requires-Dist: numpy>=1.
|
|
18
|
+
Requires-Dist: pandas>=1.0.0
|
|
19
|
+
Requires-Dist: numpy>=1.0.0
|
|
19
20
|
Requires-Dist: sqlalchemy<1.5,>=1.4
|
|
20
21
|
Requires-Dist: sqlalchemy-utils>=0.37.8
|
|
21
22
|
|
|
@@ -42,7 +43,6 @@ Requires-Dist: sqlalchemy-utils>=0.37.8
|
|
|
42
43
|
|
|
43
44
|
# Apache IoTDB
|
|
44
45
|
|
|
45
|
-
[](https://github.com/apache/iotdb/actions/workflows/client-python.yml)
|
|
46
46
|
[](https://github.com/apache/iotdb/releases)
|
|
47
47
|
[](https://www.apache.org/licenses/LICENSE-2.0.html)
|
|
48
48
|

|
|
@@ -61,7 +61,7 @@ high-speed data ingestion and complex data analysis in the IoT industrial fields
|
|
|
61
61
|
|
|
62
62
|
### Requirements
|
|
63
63
|
|
|
64
|
-
You have to install thrift (>=0.
|
|
64
|
+
You have to install thrift (>=0.14.1) before using the package.
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
@@ -69,8 +69,6 @@ You have to install thrift (>=0.13) before using the package.
|
|
|
69
69
|
|
|
70
70
|
First, download the latest package: `pip3 install apache-iotdb`
|
|
71
71
|
|
|
72
|
-
*Notice: If you are installing Python API v0.13.0, DO NOT install by `pip install apache-iotdb==0.13.0`, use `pip install apache-iotdb==0.13.0.post1` instead!*
|
|
73
|
-
|
|
74
72
|
You can get an example of using the package to read and write data at here: [Example](https://github.com/apache/iotdb/blob/master/client-py/SessionExample.py)
|
|
75
73
|
|
|
76
74
|
An example of aligned timeseries: [Aligned Timeseries Session Example](https://github.com/apache/iotdb/blob/master/client-py/SessionAlignedTimeseriesExample.py)
|
|
@@ -333,91 +331,6 @@ session.execute_non_query_statement(sql)
|
|
|
333
331
|
session.execute_statement(sql)
|
|
334
332
|
```
|
|
335
333
|
|
|
336
|
-
### Device Template
|
|
337
|
-
#### Create Device Template
|
|
338
|
-
The step for creating a metadata template is as follows
|
|
339
|
-
1. Create the template class
|
|
340
|
-
2. Adding child Node,InternalNode and MeasurementNode can be chose
|
|
341
|
-
3. Execute create device template function
|
|
342
|
-
|
|
343
|
-
```python
|
|
344
|
-
template = Template(name=template_name, share_time=True)
|
|
345
|
-
|
|
346
|
-
i_node_gps = InternalNode(name="GPS", share_time=False)
|
|
347
|
-
i_node_v = InternalNode(name="vehicle", share_time=True)
|
|
348
|
-
m_node_x = MeasurementNode("x", TSDataType.FLOAT, TSEncoding.RLE, Compressor.SNAPPY)
|
|
349
|
-
|
|
350
|
-
i_node_gps.add_child(m_node_x)
|
|
351
|
-
i_node_v.add_child(m_node_x)
|
|
352
|
-
|
|
353
|
-
template.add_template(i_node_gps)
|
|
354
|
-
template.add_template(i_node_v)
|
|
355
|
-
template.add_template(m_node_x)
|
|
356
|
-
|
|
357
|
-
session.create_schema_template(template)
|
|
358
|
-
```
|
|
359
|
-
#### Modify Device Template nodes
|
|
360
|
-
Modify nodes in a template, the template must be already created. These are functions that add or delete some measurement nodes.
|
|
361
|
-
* add node in template
|
|
362
|
-
```python
|
|
363
|
-
session.add_measurements_in_template(template_name, measurements_path, data_types, encodings, compressors, is_aligned)
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
* delete node in template
|
|
367
|
-
```python
|
|
368
|
-
session.delete_node_in_template(template_name, path)
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
#### Set Device Template
|
|
372
|
-
```python
|
|
373
|
-
session.set_schema_template(template_name, prefix_path)
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
#### Uset Device Template
|
|
377
|
-
```python
|
|
378
|
-
session.unset_schema_template(template_name, prefix_path)
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
#### Show Device Template
|
|
382
|
-
* Show all device templates
|
|
383
|
-
```python
|
|
384
|
-
session.show_all_templates()
|
|
385
|
-
```
|
|
386
|
-
* Count all nodes in templates
|
|
387
|
-
```python
|
|
388
|
-
session.count_measurements_in_template(template_name)
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
* Judge whether the path is measurement or not in templates, This measurement must be in the template
|
|
392
|
-
```python
|
|
393
|
-
session.count_measurements_in_template(template_name, path)
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
* Judge whether the path is exist or not in templates, This path may not belong to the template
|
|
397
|
-
```python
|
|
398
|
-
session.is_path_exist_in_template(template_name, path)
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
* Show nodes under in device template
|
|
402
|
-
```python
|
|
403
|
-
session.show_measurements_in_template(template_name)
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
* Show the path prefix where a device template is set
|
|
407
|
-
```python
|
|
408
|
-
session.show_paths_template_set_on(template_name)
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
* Show the path prefix where a device template is used (i.e. the time series has been created)
|
|
412
|
-
```python
|
|
413
|
-
session.show_paths_template_using_on(template_name)
|
|
414
|
-
```
|
|
415
|
-
|
|
416
|
-
#### Drop Device Template
|
|
417
|
-
Delete an existing metadata template,dropping an already set template is not supported
|
|
418
|
-
```python
|
|
419
|
-
session.drop_schema_template("template_python")
|
|
420
|
-
```
|
|
421
334
|
|
|
422
335
|
|
|
423
336
|
### Pandas Support
|
|
@@ -622,9 +535,9 @@ This is an example of how to connect to IoTDB with python, using the thrift rpc
|
|
|
622
535
|
|
|
623
536
|
### Prerequisites
|
|
624
537
|
|
|
625
|
-
Python3.
|
|
538
|
+
Python3.6 or later is preferred.
|
|
626
539
|
|
|
627
|
-
You have to install Thrift (0.
|
|
540
|
+
You have to install Thrift (0.14.1 or later) to compile our thrift file into python code. Below is the official tutorial of installation, eventually, you should have a thrift executable.
|
|
628
541
|
|
|
629
542
|
```
|
|
630
543
|
http://thrift.apache.org/docs/install/
|
|
@@ -710,8 +623,7 @@ Namely, these are
|
|
|
710
623
|
|
|
711
624
|
* Remove all transient directories from last release (if exists)
|
|
712
625
|
* (Re-)generate all generated sources via mvn
|
|
713
|
-
* Run
|
|
714
|
-
* Run Tests via pytest
|
|
626
|
+
* Run Tests via pytest (optional)
|
|
715
627
|
* Build
|
|
716
628
|
* Release to pypi
|
|
717
629
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
README.md
|
|
2
2
|
pyproject.toml
|
|
3
|
-
setup.py
|
|
4
3
|
apache_iotdb.egg-info/PKG-INFO
|
|
5
4
|
apache_iotdb.egg-info/SOURCES.txt
|
|
6
5
|
apache_iotdb.egg-info/dependency_links.txt
|
|
@@ -25,7 +24,6 @@ iotdb/sqlalchemy/IoTDBTypeCompiler.py
|
|
|
25
24
|
iotdb/sqlalchemy/__init__.py
|
|
26
25
|
iotdb/sqlalchemy/tests/__init__.py
|
|
27
26
|
iotdb/sqlalchemy/tests/test_dialect.py
|
|
28
|
-
iotdb/template/InternalNode.py
|
|
29
27
|
iotdb/template/MeasurementNode.py
|
|
30
28
|
iotdb/template/Template.py
|
|
31
29
|
iotdb/template/TemplateNode.py
|
|
@@ -43,6 +41,7 @@ iotdb/tsfile/__init__.py
|
|
|
43
41
|
iotdb/tsfile/common/__init__.py
|
|
44
42
|
iotdb/tsfile/common/constant/TsFileConstant.py
|
|
45
43
|
iotdb/tsfile/common/constant/__init__.py
|
|
44
|
+
iotdb/tsfile/utils/DateUtils.py
|
|
46
45
|
iotdb/tsfile/utils/Pair.py
|
|
47
46
|
iotdb/tsfile/utils/ReadWriteIOUtils.py
|
|
48
47
|
iotdb/tsfile/utils/__init__.py
|
|
@@ -57,14 +56,16 @@ iotdb/utils/SessionDataSet.py
|
|
|
57
56
|
iotdb/utils/Tablet.py
|
|
58
57
|
iotdb/utils/__init__.py
|
|
59
58
|
tests/__init__.py
|
|
60
|
-
tests/
|
|
61
|
-
tests/
|
|
62
|
-
tests/
|
|
63
|
-
tests/
|
|
64
|
-
tests/
|
|
65
|
-
tests/
|
|
66
|
-
tests/
|
|
67
|
-
tests/
|
|
68
|
-
tests/
|
|
69
|
-
tests/
|
|
70
|
-
tests/test_todf.py
|
|
59
|
+
tests/integration/__init__.py
|
|
60
|
+
tests/integration/tablet_performance_comparison.py
|
|
61
|
+
tests/integration/test_aligned_timeseries.py
|
|
62
|
+
tests/integration/test_dataframe.py
|
|
63
|
+
tests/integration/test_delete_data.py
|
|
64
|
+
tests/integration/test_new_data_types.py
|
|
65
|
+
tests/integration/test_one_device.py
|
|
66
|
+
tests/integration/test_session.py
|
|
67
|
+
tests/integration/test_session_pool.py
|
|
68
|
+
tests/integration/test_tablet.py
|
|
69
|
+
tests/integration/test_todf.py
|
|
70
|
+
tests/unit/__init__.py
|
|
71
|
+
tests/unit/test_numpy_tablet.py
|