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.

Installation

pip install msql-driver --upgrade
Conversions to NumPy and Pandas data types require those packages that can be installed as optional dependencies.

Example

import msql_driver

# Connect
session = msql_driver.SessionBuilder().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.fields)

# 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 lists 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.4.0-cp38-abi3-win_arm64.whl (434.5 kB view details)

Uploaded CPython 3.8+Windows ARM64

msql_driver-0.4.0-cp38-abi3-win_amd64.whl (460.0 kB view details)

Uploaded CPython 3.8+Windows x86-64

msql_driver-0.4.0-cp38-abi3-musllinux_1_2_x86_64.whl (518.7 kB view details)

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

msql_driver-0.4.0-cp38-abi3-musllinux_1_2_aarch64.whl (493.4 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

msql_driver-0.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (521.5 kB view details)

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

msql_driver-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (502.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

msql_driver-0.4.0-cp38-abi3-macosx_11_0_arm64.whl (452.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

msql_driver-0.4.0-cp38-abi3-macosx_10_12_x86_64.whl (478.8 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file msql_driver-0.4.0-cp38-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 d1e279ff77be29a4d5bb8d6c39d21906b456ca23d7b7b45be665187f16a04725
MD5 27a6fcbed38463dce0b1802364513145
BLAKE2b-256 6ed6e32e0ee54714a0b6a69d30cfd3b32c3304598231a9859d7a8317fe02f80c

See more details on using hashes here.

File details

Details for the file msql_driver-0.4.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 80e340429e05c75d334568ed730f88c529a16983e71bab6b86afe597f12220ae
MD5 0f6626e1e6a37ebaab851cf595726274
BLAKE2b-256 a9fe776503a719b5a26fe530aece6428f899ff6785ffac01cac710456d07db57

See more details on using hashes here.

File details

Details for the file msql_driver-0.4.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 42102620f41c31f57adcec4411dd941ebdeb6d1e71dba4d2cc5b30b43c4d505f
MD5 d41a515a3ef882d11d571445f164733c
BLAKE2b-256 435f8a09296d2230f645289e4ba887254c6bae883f87950cf91a9456acb3af35

See more details on using hashes here.

File details

Details for the file msql_driver-0.4.0-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b00ca54720a9a8bd5d14ef4ef48c4ab4f7a138d4323b0acee40162b8df143000
MD5 2755ead9837965ca853973b941815cc0
BLAKE2b-256 eec4568f0f733b168ad240dda47bf1b4ae1d4f8310a6e81dc2a1eae70a83ccd1

See more details on using hashes here.

File details

Details for the file msql_driver-0.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5cf1e327db8260f1d665c0fbae4e41096d5ac18eef3ee85397a3d6c98a0e2493
MD5 58e3b1a8819b7f0c8aa2c9aad5508688
BLAKE2b-256 0b86e59326e5f1f28610fe7daab4fc381ec27e7d9bd5bfb7f93302d78cc4a30b

See more details on using hashes here.

File details

Details for the file msql_driver-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9833e9195cad2f0611e4da0ab23fbd6601104f7ea6166182a8491e2feec43e3e
MD5 145a5ca7dbf7c0c383eba3b1e5c55f91
BLAKE2b-256 746a098ab882ef84d213391e5bf41de0f0a52378f2d6f3ea4d40c897bea7437f

See more details on using hashes here.

File details

Details for the file msql_driver-0.4.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7858a46c2430a8d790b7946e762713bea23d34b62b9497c1ddcf1dbd25ca70de
MD5 d6a7b7e31466a77ee68cb9cdff248e99
BLAKE2b-256 7dfdab8b64cc33796667a79ee4d3e5572c26b38bb3ac131cb4ded2e0447127e2

See more details on using hashes here.

File details

Details for the file msql_driver-0.4.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for msql_driver-0.4.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 324f59c90757eb1a0a5b92026daefa461a395e22b4f2829fefad806bd2c8c5eb
MD5 b4e6264fd1502f707de5f4d24bbf8bdf
BLAKE2b-256 dbd16a1cd5a71f595a915c44d4108a162b3c48469fa26f0dcb97450409a4a87d

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