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.
  • Streamlit integration with support for asynchronous querying available.
  • Requires CPython 3.10+.
  • 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 or Pandas data types require optional dependencies:

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

Install optional dependencies for all available conversions:

pip install -U msql-driver[convert]

Streamlit integration available with optional dependency:

pip install -U msql-driver[streamlit]

Install all optional dependencies using:

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.9.0-cp310-abi3-win_arm64.whl (888.7 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

msql_driver-0.9.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.9.0-cp310-abi3-musllinux_1_2_aarch64.whl (943.8 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

msql_driver-0.9.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.9.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (945.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

msql_driver-0.9.0-cp310-abi3-macosx_11_0_arm64.whl (892.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

msql_driver-0.9.0-cp310-abi3-macosx_10_12_x86_64.whl (974.1 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 888.7 kB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 f7dd206921e394ffebf7d7c654fb5dea7e2d24b1f182d765b4c13c3ba3ae3dc9
MD5 2d5dabecaeeb3a24d9e453021b581672
BLAKE2b-256 f4ff24b4ec2c8c27593f0686e5db64d4129d79b633b462494373337426658d52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e06907afabe561da1c873bcf6391044ad33024b8afc878609d50141b7185142d
MD5 6ae713b904d6691cd59bbaf5f96a949c
BLAKE2b-256 195bcf42456bb2a6ceed4dcd83e9ebe74f9c883db4f3e1b383d07c3b22f2a53e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 30d97c569aa9b3ce3932d7a4e28c54bd4e1263b67a1739135cf2476ecc145a0b
MD5 0c867138e968ad7e55eeb7f2a798cc96
BLAKE2b-256 5712787cd49b165f6b319ad2bc2bb937429a5cd6cfa3f4f9aef71b61dea9fdea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 943.8 kB
  • Tags: CPython 3.10+, musllinux: musl 1.2+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 931129bf6f1adb5c873752e8246395504c7a4138124702592392827bb08d80f7
MD5 b2a8022b32d3f0d8a821a7cc8255692f
BLAKE2b-256 4c3cf30273515673b5124120bf3a502cc0eda83a2bdfad5d7d5fe0699e821070

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60e6b12ac2534761f89b2d9824682837fd28c03cc60891face2d9d5d737a1966
MD5 740908fd785e384755643353e4544645
BLAKE2b-256 7eb42cd2b7627ccae7b2c795b0ed9b035a9c03739b14af5eb9ba9320a9697d32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 945.8 kB
  • Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ff67860f7a1a9298307195b7947d6f4800ab32a45e8c358e547ae85753a94869
MD5 9b21e2c39a6e6306e272f1ddae7839f0
BLAKE2b-256 672499ad79580f7ee12a5de10e41b9b5827aec2b7f0b992aed71431b1f2ce199

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 892.3 kB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03ae521b627c4cf79c1942b3ccff900256ef90cd5c6cf795cedd2e1d59be70db
MD5 af017e1d9bc440c3971f056d83403dc3
BLAKE2b-256 9882612a3a6373725e868d84ddade76ce0359b0f19669b008d9fe0aeda41e657

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.9.0-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 974.1 kB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for msql_driver-0.9.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f464ec138f803aa7249d0dd8d87b47dcc308e82c6e529a38ee1e7868b7890651
MD5 437af22a689e901f0973fe9a4969db2f
BLAKE2b-256 af4c74c0d587e96b7518f4e24c3c235b457f653fee8a929806ce4653afe6637d

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