Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

stdb_driver-0.4.0-cp310-abi3-win_arm64.whl (1.3 MB view details)

Uploaded CPython 3.10+Windows ARM64

stdb_driver-0.4.0-cp310-abi3-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

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

Hashes for stdb_driver-0.4.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 e70fd8e47476763b9e7cfd2f567a17679fbcc467fedbcabf19e0613c285e9686
MD5 9f8e94539e7ed9d552afed7fe0b0ee3a
BLAKE2b-256 19cffeea54dc4cd4b512b47c1d66c1fe3afd1b659d053af04b1367f31834c5ae

See more details on using hashes here.

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

Hashes for stdb_driver-0.4.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 39ebb3f94b5c4b15bfe655e945e496564d9ffd9608cd5069cb89be6d6baa0419
MD5 d1399eb8b82eabd1b223f0da1a8a80b0
BLAKE2b-256 72bb970daa9cc69299cbdd8c007d7a0c9627030f88b9d9633aa7b34cfdee293d

See more details on using hashes here.

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

Hashes for stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c84112d3abd361854fad97a099564435b6aefcb2ca8591d82a3069c39240606c
MD5 a24ca57806fbcbb110c40c035ae2233d
BLAKE2b-256 0f71cbc8f7d8fdc08c7ce9411a3cb088f87b55beecb9055588217e317fa5c723

See more details on using hashes here.

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

Hashes for stdb_driver-0.4.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8401d899d0d421a7a9639c901d247f4702cf33ca519d8c17f93c27530efcd1b0
MD5 8cc8d67f6bb1db63e7db5adc42593588
BLAKE2b-256 22c4fd9142f79fc83330d8b4ad4d18e7330bd7bc6ce6a9114211040ac99ca66b

See more details on using hashes here.

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

Hashes for stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aed5f2233dc98feb3f3766644072d472f98bd2ac6d64950cbe481432d6968dde
MD5 99e6ef552a20ee9ee1076d7b964ae8f0
BLAKE2b-256 4e9adf2cbb7ba08dc02f7eed3e710e16bd9f22802869a0096ae5d606d20f20bf

See more details on using hashes here.

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

Hashes for stdb_driver-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 39e8928bec39e2acf72531efd20d1cf4f385df54d7ec1b031741389c398ef972
MD5 f59ed2ca32c36d21ecac5d3b7fb90d5c
BLAKE2b-256 981491bb746c2b5143b248441ea38bf5742923e04fe02af8546235c87567ce1d

See more details on using hashes here.

Supported by

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