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

Uploaded CPython 3.8+Windows ARM64

msql_driver-0.2.1-cp38-abi3-win_amd64.whl (470.0 kB view details)

Uploaded CPython 3.8+Windows x86-64

msql_driver-0.2.1-cp38-abi3-musllinux_1_2_x86_64.whl (522.4 kB view details)

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

msql_driver-0.2.1-cp38-abi3-musllinux_1_2_aarch64.whl (499.1 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

msql_driver-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (524.4 kB view details)

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

msql_driver-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (507.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

msql_driver-0.2.1-cp38-abi3-macosx_11_0_arm64.whl (463.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

msql_driver-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl (502.9 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 1d85e0b86e19d3e836f522b5baef026a0c5c5971d6aeea1853ba8f6442bb5861
MD5 67f25d9c1ac82b395b81ad70737f10e9
BLAKE2b-256 e4f4c10cd314078739c4a4f990f39d0f3ee77af14c42c4e06f9843f281f7b298

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b8ce5cf67424db29d641e8602aaf0fae6b9f3fd3bea5053515c7c3fc4d24e169
MD5 67ca55c3d6e3d960d5cf507783528d69
BLAKE2b-256 2ddc3ab58d511240caffc9703befc7072543b1786b42a50d8728a1595d5188d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6d70476e59fdf1c1c623bb6788802f3ce983dccf0b8e06e252b1ba4c05148114
MD5 c6918fe962de1edbb3a5b9dbd9826124
BLAKE2b-256 c4700bfe8344ce628735436b51a03b869c69d7a868ecc20fefa18ddad9bdff9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f8696e81374d02da4a2df22a1abe7c946b84c450b6b25c7eea0a827641956c8f
MD5 53d7b693ce2753d9b0f82f66a7e00a34
BLAKE2b-256 5bde83a47cad5cbbbb0697e880d43ac94a315b7907f16650bca7b410515c2631

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76b9f286ba752798c28091de6ff68018351315dcd38706240b291158460b8802
MD5 0f343ac7daa3a6ee2e32c88fd1aa46d4
BLAKE2b-256 7cf8629fe8077ce0173bd00a213c8fe6c4e541c39b0f0734e863a5f2618a1ee1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bb7227424179368e823aa2c73706bdd9d5408a073776405d0a0e2694ab3e1509
MD5 6456bbf0d811ebc80ba2692159eb9cd6
BLAKE2b-256 7b966375bcb6319f121949b47fb61e90816dce9e8896c7f8a99ba23b41d8bee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f5dbd610805510c63d2fd9ddc6148cb9d10110035c111386ab123af9cffced7
MD5 5046c6bfb4ca4727391cf0fae5cb2d3b
BLAKE2b-256 90281f5b33106aae70ec7fc18c7ec39a41d9d83db7ab120a33875e16abbc3cf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c5d18091a497de192ce25c3651afc677f3bb57976f4ff3c14fc6b28f030759bc
MD5 fe54ce6755e640e7a65e6d5dadb13d8d
BLAKE2b-256 3fd9c70a76d2c3e11dfad86949be23b4ea606a14d4623caf3f292a87b4d1bf3a

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