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.
  • 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 and Pandas data types require those packages that can be installed as optional dependencies:

pip install -U msql-driver[numpy]
pip install -U msql-driver[pandas]
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.8.0-cp310-abi3-win_arm64.whl (884.9 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

msql_driver-0.8.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.8.0-cp310-abi3-musllinux_1_2_aarch64.whl (948.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

msql_driver-0.8.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.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (949.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

msql_driver-0.8.0-cp310-abi3-macosx_11_0_arm64.whl (893.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

msql_driver-0.8.0-cp310-abi3-macosx_10_12_x86_64.whl (975.9 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: msql_driver-0.8.0-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 884.9 kB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 33690ee8cc17510eb467818e5ef2d832093fe84bb60d01237b88fd47085dd4d9
MD5 bb64c424ca044a556ce3868639e036de
BLAKE2b-256 51e020dbb86a712eefe87dc0d7da28b6a67e9b308099bf89979c663be5df9a90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.8.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.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 77fc51224213695e56617e9f7c9eb94f21ad3238e6b1e2f7cf0a323c6a74c3b0
MD5 d2cdb00c614efc4559ec0a522930e279
BLAKE2b-256 c007d91549dc91676b5521d4145868ffe81c26b75bf8ba12f9d609a7fb968802

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.8.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.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c8859bee404f847ce2ce4bd745ce8740e8899bf8eb4a0807a60f651514ba787f
MD5 d838a76a1ac38be660deea786ee228c8
BLAKE2b-256 77373f6a7f888ffc233e12f36f22ddc7443d6b38a12e557e17a8b9eba30467a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.8.0-cp310-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 948.1 kB
  • Tags: CPython 3.10+, musllinux: musl 1.2+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 98592d62f99a3b3ba2ccfa4d220475e425ed8d5f577cd9516b140832e31944a1
MD5 6c958e7e6d81df103e5f0be596aaae9e
BLAKE2b-256 59dd504ffaa2c360690d938ad46741737d5cd51f4d73b9f77052705605e85d36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.8.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.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba06c244175f3d6845711a047dedd6ef7c8bb223e6dc43e16910dbbfbe4c4919
MD5 8dd435e53f5feb78d2d77d3e28686f24
BLAKE2b-256 d55336b456a47ea7e725f648d7c37a95227a6bb8566aaa9f629a7b9fd55ee5d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 949.4 kB
  • Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d44b907717438310558a3745b4031b29d1188ef222a2871581b94545896fe178
MD5 5fcfc27f30955521f7f6d6cb7c3d9fdc
BLAKE2b-256 be96a471b317fc80721382a687b68d9d8310f084a9d02b253cefd27dd150fcce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.8.0-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 893.1 kB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c4b71215a81b3f27aa777a60d02b4e12df3c1db9262c1b57251f8596567401c
MD5 8c60d245fe080a522d0109657bbd8fe3
BLAKE2b-256 b3ec2c21d3a47960dc31061eab3dce57a8d637bc051305a9f7c1046fce4e7d54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msql_driver-0.8.0-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 975.9 kB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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.8.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f265f942bae6325c1593cc84bef5bd303c0daca7ad4d4e7f3c7cdd214209b2ab
MD5 f619b41198254da1d1960e78d0306ab6
BLAKE2b-256 2abf10bd73a8b892076e052ff2d5e51f264807789353220c0f4b73c76f445156

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