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

Uploaded CPython 3.8+Windows ARM64

msql_driver-0.5.0-cp38-abi3-win_amd64.whl (439.0 kB view details)

Uploaded CPython 3.8+Windows x86-64

msql_driver-0.5.0-cp38-abi3-musllinux_1_2_x86_64.whl (508.5 kB view details)

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

msql_driver-0.5.0-cp38-abi3-musllinux_1_2_aarch64.whl (482.2 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

msql_driver-0.5.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (511.0 kB view details)

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

msql_driver-0.5.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (488.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

msql_driver-0.5.0-cp38-abi3-macosx_11_0_arm64.whl (451.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

msql_driver-0.5.0-cp38-abi3-macosx_10_12_x86_64.whl (474.0 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 829893624277186607abe3704cfccc962faf7f69f3b6a85ad24fef87a17ef61f
MD5 ab325f3b884737cb8f701a100657eb15
BLAKE2b-256 a5a2d4d5d2a4feb6367fe328b48adc1aae5d0c6ee5f48881172e6b7673d13670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 077e03e9a1a407c2586b9339ebd3a1b086640865e519ef3ddd76d0e9f40480ba
MD5 1c8f6247f46ed29b834fb148c84f8865
BLAKE2b-256 36f5ae82aa8a43187d4c9118e29ee94ac0b020aa4d965722f2da6ea4d460ec32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 448e1a8ea991b8418f02dd38af4a2fb2869c8068c571d3c4915044241cbe8778
MD5 5245ee90fc2469a4796b52434901bcb2
BLAKE2b-256 5597ed6354d6ee224e272c55f548b0fa45f82c45a6719cdb35c488867eaed489

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f5742402bff88752cdbeaf38eb46c102649c6f1892e004e216afd2b7b6b57b3e
MD5 414581cd96e68e7de82579d9f536a0de
BLAKE2b-256 5c1d435378eadf856898ed0e4ae26fd0b8b82a1d3f0a5427e3d383688eb1c504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 748fedeea928fe8ab43490dde7c0a3945f0cb443066843a25a3c7aff71ac3c91
MD5 857d1dc13a40bb35ac509e889f754faf
BLAKE2b-256 aa6e3327f3517d3e6b4ed89f86681733ecd10403102c21ec9239e67ab0528170

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 de5a17b9de82375f286e71043855f4ae5bbdfbe5b2105579a6d4c973604d559f
MD5 6ce22a7dd32ab8a19a2153e6484c7530
BLAKE2b-256 8650ac6262b8907ec732059a70f060bfa926581fed813f2ddcd1a445d4876a67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1edc91c172d96aed02c06086d5c059c00773e6e4d1329c78d4249fb156c75987
MD5 e9b814b11d35813200e02809f13379b5
BLAKE2b-256 8a5832d625a86aa84ad56a4ae4627cfd5bbc0c37d7114a4679c0ed47fbad6f90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msql_driver-0.5.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 18bc79cb90e01194c4cac3a481e44ac39c82dcaea794157e0aac7cb35571b365
MD5 94b4083273a2a2c81ed99e1e64fd103c
BLAKE2b-256 36ffd283e04c58a3612207d3af824c6da97b61cfd57a73ab262cf8e98dc1e046

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