Skip to main content

Apache IoTDB client API

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apache-iotdb-nightly-0.11.2.20210324.tar.gz (61.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file apache-iotdb-nightly-0.11.2.20210324.tar.gz.

File metadata

  • Download URL: apache-iotdb-nightly-0.11.2.20210324.tar.gz
  • Upload date:
  • Size: 61.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for apache-iotdb-nightly-0.11.2.20210324.tar.gz
Algorithm Hash digest
SHA256 677436bd6866db0170aea65ac39202a033671b254552796335df7be455489c57
MD5 c547c16b49f01e22c2c606869fbd38d0
BLAKE2b-256 3d6ba6219fe442e1812a67400010b0cdee6bad37f965eedd148ef930181406e3

See more details on using hashes here.

File details

Details for the file apache_iotdb_nightly-0.11.2.20210324-py3-none-any.whl.

File metadata

  • Download URL: apache_iotdb_nightly-0.11.2.20210324-py3-none-any.whl
  • Upload date:
  • Size: 76.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for apache_iotdb_nightly-0.11.2.20210324-py3-none-any.whl
Algorithm Hash digest
SHA256 c90b857f72d967cdc114d985dbf460303f0109fb3ac703fc30fdb28f1eddd5ff
MD5 b3cd1e5f5a235ff2256a8c8d0416dd4d
BLAKE2b-256 9eb7667ad99c5fba89bca83d8f11e337b10f16591f944bd61e5266b0f49405b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page