Mireo SpaceTime database connector
Project description
Mireo SpaceTime database remote connector
stdb-driver is a Python module for managing a Mireo SpaceTime database.
Features
- Both blocking and asynchronous modes of operation.
- Listing nodes; listing, creating, and dropping tables; inserting rows; and executing range queries.
- Range query results are convertible to Python lists, NumPy arrays, and Pandas dataframes.
- Type stubs included — full IDE autocompletion and type checking.
- Requires CPython 3.10+.
- Available for Linux (glibc 2.17+ and musl 1.2+; x86-64 and arm64) and Windows (x86-64 and arm64).
Installation
pip install -U stdb-driver
Conversions to NumPy or Pandas data types require optional dependencies:
pip install -U stdb-driver[numpy]
pip install -U stdb-driver[pandas]
Install optional dependencies for all available conversions:
pip install -U stdb-driver[convert]
Install all optional dependencies using:
pip install -U stdb-driver[all]
Example
import stdb_driver
# Connect (conn_str is a ZooKeeper connection string)
session = stdb_driver.SessionConfig(<conn_str>).build()
print(session.status()) # SessionStatus.Connected
# List live nodes and table schemas in the cluster
print(session.list_nodes())
print(session.list_tables())
# Run a range query — one hyperrectangle per row, RANGE_ALL = unbounded dimension
RALL = stdb_driver.RANGE_ALL
res = session.range_query('segment', [[(1, 10000), RALL, RALL, RALL, RALL, RALL, RALL, RALL, RALL]])
# Print column names, MSQL data types, and nullability
print(res.row_type.columns)
# Iterating over rows lazily converts each to a tuple of native Python types
for row in res:
print(row)
# Or convert the whole result at once:
rows = res.to_list() # list of tuples of native Python types
arr = res.to_numpy() # NumPy array (requires numpy)
df = res.to_pandas() # Pandas dataframe (requires pandas)
# Disconnect
session.stop()
print(session.status()) # SessionStatus.SessionEnded
License
Licensed under BSD 3-Clause "New" or "Revised" License.
Credits
Authored and maintained by Mireo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stdb_driver-0.4.0-cp310-abi3-win_arm64.whl.
File metadata
- Download URL: stdb_driver-0.4.0-cp310-abi3-win_arm64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e70fd8e47476763b9e7cfd2f567a17679fbcc467fedbcabf19e0613c285e9686
|
|
| MD5 |
9f8e94539e7ed9d552afed7fe0b0ee3a
|
|
| BLAKE2b-256 |
19cffeea54dc4cd4b512b47c1d66c1fe3afd1b659d053af04b1367f31834c5ae
|
File details
Details for the file stdb_driver-0.4.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: stdb_driver-0.4.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39ebb3f94b5c4b15bfe655e945e496564d9ffd9608cd5069cb89be6d6baa0419
|
|
| MD5 |
d1399eb8b82eabd1b223f0da1a8a80b0
|
|
| BLAKE2b-256 |
72bb970daa9cc69299cbdd8c007d7a0c9627030f88b9d9633aa7b34cfdee293d
|
File details
Details for the file stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c84112d3abd361854fad97a099564435b6aefcb2ca8591d82a3069c39240606c
|
|
| MD5 |
a24ca57806fbcbb110c40c035ae2233d
|
|
| BLAKE2b-256 |
0f71cbc8f7d8fdc08c7ce9411a3cb088f87b55beecb9055588217e317fa5c723
|
File details
Details for the file stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8401d899d0d421a7a9639c901d247f4702cf33ca519d8c17f93c27530efcd1b0
|
|
| MD5 |
8cc8d67f6bb1db63e7db5adc42593588
|
|
| BLAKE2b-256 |
22c4fd9142f79fc83330d8b4ad4d18e7330bd7bc6ce6a9114211040ac99ca66b
|
File details
Details for the file stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed5f2233dc98feb3f3766644072d472f98bd2ac6d64950cbe481432d6968dde
|
|
| MD5 |
99e6ef552a20ee9ee1076d7b964ae8f0
|
|
| BLAKE2b-256 |
4e9adf2cbb7ba08dc02f7eed3e710e16bd9f22802869a0096ae5d606d20f20bf
|
File details
Details for the file stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39e8928bec39e2acf72531efd20d1cf4f385df54d7ec1b031741389c398ef972
|
|
| MD5 |
f59ed2ca32c36d21ecac5d3b7fb90d5c
|
|
| BLAKE2b-256 |
981491bb746c2b5143b248441ea38bf5742923e04fe02af8546235c87567ce1d
|