Skip to main content

Apache IoTDB

Build Status codecov GitHub release License IoTDB Website

Apache IoTDB (Database for Internet of Things) is an IoT native database with high performance for data management and analysis, deployable on the edge and the cloud. Due to its light-weight architecture, high performance and rich feature set together with its deep integration with Apache Hadoop, Spark and Flink, Apache IoTDB can meet the requirements of massive data storage, high-speed data ingestion and complex data analysis in the IoT industrial fields.

Apache IoTDB Python Client API

Using the package, you can write data to IoTDB, read data from IoTDB and maintain the schema of IoTDB.

Requirements

You have to install thrift (>=0.13) before using the package.

How to use (Example)

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

(you need to add import iotdb in the head of the file)

Or:

from iotdb.Session import Session

ip = "127.0.0.1"
port_ = "6667"
username_ = 'root'
password_ = 'root'
session = Session(ip, port_, username_, password_)
session.open(False)
zone = session.get_time_zone()
session.close()

IoTDB Testcontainer

The Test Support is based on the lib testcontainers (https://testcontainers-python.readthedocs.io/en/latest/index.html) which you need to install in your project if you want to use the feature.

To start (and stop) an IoTDB Database in a Docker container simply do:

class MyTestCase(unittest.TestCase):

    def test_something(self):
        with IoTDBContainer() as c:
            session = Session('localhost', c.get_exposed_port(6667), 'root', 'root')
            session.open(False)
            result = session.execute_query_statement("SHOW TIMESERIES")
            print(result)
            session.close()

by default it will load the image apache/iotdb:latest, if you want a specific version just pass it like e.g. IoTDBContainer("apache/iotdb:0.10.0") to get version 0.10.0 running.

Metadata

Release files for apache-iotdb-nightly 0.11.2.20210324

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apache-iotdb-nightly 0.11.2.20210324
File Size Uploaded
apache-iotdb-nightly-0.11.2.20210324.tar.gz 61.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apache-iotdb-nightly 0.11.2.20210324
File Interpreter ABI Platform
apache_iotdb_nightly-0.11.2.20210324-py3-none-any.whl Python 3 none any Details

Total release size: 137.2 kB

Release files / apache-iotdb-nightly-0.11.2.20210324.tar.gz

Download URL apache-iotdb-nightly-0.11.2.20210324.tar.gz
Size 61.0 kB
Tags Source
SHA-256 checksum
How to use checksums
677436bd6866db0170aea65ac39202a033671b254552796335df7be455489c57
BLAKE2b-256 checksum
How to use checksums
3d6ba6219fe442e1812a67400010b0cdee6bad37f965eedd148ef930181406e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

Release files / apache_iotdb_nightly-0.11.2.20210324-py3-none-any.whl

Download URL apache_iotdb_nightly-0.11.2.20210324-py3-none-any.whl
Size 76.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c90b857f72d967cdc114d985dbf460303f0109fb3ac703fc30fdb28f1eddd5ff
BLAKE2b-256 checksum
How to use checksums
9eb7667ad99c5fba89bca83d8f11e337b10f16591f944bd61e5266b0f49405b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.11.2.20210324 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page