Python package for IoTDB
This module contains the missing parts from the apache-iotdb package which can be found here https://pypi.org/project/apache-iotdb/.
Example
Just install the package via pip install iotdb-session-0.10.1.
The sessions API can be used via:
from iotdb_session.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()
self.assertEqual("+08:00", zone)
Test Support for IoTDB
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()
Release Notes
0.1.5 - Fixed a bug that avoided Type Inference on the server
- insert_record can now be called without dataTypes argument
- then the server will perform type inference
0.1.4 - Improved Testcontainer:
- Use real containerip
- Use Tag 0.10.1 not latest
Release files for iotdb-session-0.10.1 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iotdb-session-0.10.1-0.1.5.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iotdb_session_0.10.1-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.4 kB
Release files / iotdb-session-0.10.1-0.1.5.tar.gz
| Download URL | iotdb-session-0.10.1-0.1.5.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17df2388dfc7d98bc1bf28b8376d4bac4ae26d68ecd387b94924c8b1a4ced886
|
|
BLAKE2b-256 checksum How to use checksums |
73eb97fd3f87f760e3b82b3b7792eea19e35431b2606c26a228210a3686de9a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
|
Release files / iotdb_session_0.10.1-0.1.5-py3-none-any.whl
| Download URL | iotdb_session_0.10.1-0.1.5-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0b2a9daa40fa20582ba2e14cd55935709e7e221c955ea9134c32192c47d509a
|
|
BLAKE2b-256 checksum How to use checksums |
201ec32d943a7057335a38aab37f785fa4fab5b51430ff92a84c514cf82e1fcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
|