Skip to main content

Mireo SpaceTime MSQL connector

Project description

Mireo SpaceTime MSQL connector

msql-driver is a Python module for querying Mireo SpaceTime database using MSQL query language.

Features

  • Both blocking and asynchronous modes of operation are available.
  • Query results are convertible to Python lists, NumPy arrays and Pandas dataframes.
  • Requires CPython 3.9+.
  • Available for Linux (glibc 2.17+ and musl 1.2+; x86-64 and arm64), Windows (x86-64 and arm64) and MacOS (10.12+ x86-64 and 11.0+ arm64).

Installation

pip install -U msql-driver

Conversions to NumPy and Pandas data types require those packages that can be installed as optional dependencies:

pip install -U msql-driver[numpy]
pip install -U msql-driver[pandas]
pip install -U msql-driver[all]

Example

import msql_driver

# Connect
session = msql_driver.SessionConfig().host(<address>).user(<org>, <user>, <password>).build()
print(session.status())  # SessionStatus.Connected

# Run query
res, = session.run_query("select * from st.segment limit 10")

# Print column names and their MSQL data types
print(res.row_type.columns)

# Iterating over rows converts each lazily to a Python list of appropriate Python data types
for row in res:
	print(row)

# Query result can be converted to:
rows = res.to_list()  # Python list of appropriate Python data types
arr = res.to_numpy()  # NumPy array of appropriate NumPy data types (requires numpy)
df = res.to_pandas()  # Pandas dataframe of appropriate NumPy/Pandas data types (requires pandas)

# Disconnect
session.stop()
print(session.status())  # SessionStatus.Stopped

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.

msql_driver-0.7.0-cp310-abi3-win_arm64.whl (880.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

msql_driver-0.7.0-cp310-abi3-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

msql_driver-0.7.0-cp310-abi3-musllinux_1_2_x86_64.whl (1.0 MB view details)

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

msql_driver-0.7.0-cp310-abi3-musllinux_1_2_aarch64.whl (942.9 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

msql_driver-0.7.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

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

msql_driver-0.7.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (944.7 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

msql_driver-0.7.0-cp310-abi3-macosx_11_0_arm64.whl (887.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

msql_driver-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl (971.1 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file msql_driver-0.7.0-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 54c3f1244da1675768f5b00254377b1f0adebcc78f9ee2c298261cb110e057a7
MD5 72bb49c9df866dc983fc314a20bd0bec
BLAKE2b-256 9741c74383a3d3ef8ed74a3af6ba4018a8a7f9dd4025d96d3a0349cd3d5ad703

See more details on using hashes here.

File details

Details for the file msql_driver-0.7.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 279b9e9c7f9fa0154f1b39318563d5e7fe0fba925e0811bdb72fc0ac170fb78e
MD5 f77381d02e354e726a343eb929987728
BLAKE2b-256 e99a66f5eb81e1b279fc16811947d5eb8e4da4932bdd65ba53c49fab32e33d6f

See more details on using hashes here.

File details

Details for the file msql_driver-0.7.0-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0400fa3f4b7c231b1c8c38a1789d00247c5add2ab0e3fa753d3d28b8e2c0da7f
MD5 255eb9fd1cec4f8d1d661eb1468fff1d
BLAKE2b-256 4b7c10e79308fb3c74811f63687798ab5f9d3ed1cab91ea7ae654bb0e1886d3a

See more details on using hashes here.

File details

Details for the file msql_driver-0.7.0-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2d4fe590575b46550aef2cab555cc8f23aeb195795e55afe015f8d2043d8dfc2
MD5 123c8bfb456291b06f2b64a3c22e6099
BLAKE2b-256 7e66051fd09c2974f78f8c247c3233334e9f6038a4d508e398a9545216a866a0

See more details on using hashes here.

File details

Details for the file msql_driver-0.7.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b88a96c3654b98d894a962fbbbe6e9a186539ae2ae371a5fc0a97a85df573d8c
MD5 3a6af5c6a13070838ac5a544b1c521fb
BLAKE2b-256 d72095840cdf291347010165f3c5f60055504bdf7b87d33c8743f42b792f720b

See more details on using hashes here.

File details

Details for the file msql_driver-0.7.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 df7934a40fc7eb630fceede46a1a79840ff59f9ea0b0d94b64a35eb4dec9abd6
MD5 c543aa888dd70684240baba6edbf3f17
BLAKE2b-256 5589f88b912f5d8bd5046e11e9eb0ae2e4deef2756255378c63416c6d9ebf654

See more details on using hashes here.

File details

Details for the file msql_driver-0.7.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12222d70e3eeb76a84c572f8f9e27cdbcf39a6798a65da0d6cd819caab026811
MD5 5df13dc8a1d8bf07424e23e0f0f8ee01
BLAKE2b-256 3739d13fa34b46064d6c2e6854241d7dca0d4e2678b72996d67cf4296a33fb87

See more details on using hashes here.

File details

Details for the file msql_driver-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for msql_driver-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0f34a9feb07ea343e6482de75f86df1d9b86373f5668074a11d332d76fd3fa2e
MD5 6ec7d63390982f9b5500f0a953869424
BLAKE2b-256 0362f473e4b15260db6136d7dc39888505eb85e35979e871a143733c634a57e1

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