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
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.3.0-cp38-abi3-win_arm64.whl (460.9 kB view details)

Uploaded CPython 3.8+Windows ARM64

msql_driver-0.3.0-cp38-abi3-win_amd64.whl (485.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

msql_driver-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl (640.0 kB view details)

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

msql_driver-0.3.0-cp38-abi3-musllinux_1_2_aarch64.whl (568.9 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

msql_driver-0.3.0-cp38-abi3-manylinux_2_34_x86_64.whl (571.2 kB view details)

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

msql_driver-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (604.7 kB view details)

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

msql_driver-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (577.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

msql_driver-0.3.0-cp38-abi3-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

msql_driver-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 6864addf7141183c314867a7f4e59f6d566d6e52e74a972cfba2fce2d87e084b
MD5 e901d6e06c5c8146fd86407f0f04e446
BLAKE2b-256 542ef056ea85d0ad147ffdce08632697fbf27f9219e509e6c1408fc6caf4db2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c45ce5d53a739fd5f245877e2d030bec42c3d490b3d944da9d1953faf0947ddc
MD5 3142b9d7eed6599cc15709ccabc3b352
BLAKE2b-256 2de4815a1b743f01d757c6e75611582358412f2aac431ce16febedb719c0d196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0f92acdc6ed934c261de21dbfa2e6e0e88f0fffabfdfad7fcc001b301b038633
MD5 6401e659f1673e11dd1dbbe193ee84e5
BLAKE2b-256 314907f6582abbeedf574aa356c28451efa3f23eea2437bae7c687a9bd7a710c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 90afbf12675a7e81e8b0afcac8473cd417633adc7bd07373fd297b1274b30694
MD5 e83080a3e6c0733c6b97c52a7493ff8c
BLAKE2b-256 85cb51b606029e54ea1360a53f76b840138452c51473540c2ea75522e3c858d8

See more details on using hashes here.

File details

Details for the file msql_driver-0.3.0-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c110fc3d9d11dffad82d23c027294e13c7c01c6db4fc69d3aaa9494969fc2a39
MD5 625baa0bd695f7317a36c3a0697de7e0
BLAKE2b-256 b4f9c112496e4bb739f9b172cfd7b8c6823ff2568d1192955c4c94b19d5dffa3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e33fab54f854a328ae69a0e117dcf77dd4af6b5d62128315b4716ef8abe632ef
MD5 fb6942348b926d70b8e2a7d6467a5a40
BLAKE2b-256 8514fce33bc9f79d3e3326a37939d717865121c51cfd6cf2b53aead71c502f04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 64daa080e4aeb416dd473c8b58dae440ae60f2b7f0a466d7ae906fdbf8e7a621
MD5 f2fe59612c9538b406d5a129537cd9fe
BLAKE2b-256 dc62c3134eeaa9c085212831137079ea5cc8298451b9be1c86ed95783f268bcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c833fdcf0b062ace66b1a999ae740ac28d83402d9a1724f00a78896f5478a7ca
MD5 4a57d87f8bd1e48f47e328084b6ccd06
BLAKE2b-256 610a496279c7e85d62aec7133207c24d24e7668f2678b306361f8e2fc32a1542

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 869563cd017588e1cf4de493ff48cc90a680b183a3482a104b65a99255602e52
MD5 feb641f0e66e17aae32fc11a04ff616c
BLAKE2b-256 a4f4f459047c3349d21e700e100d5821265fe04de7a6e8ee5f98a318630a0532

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