MyScale Database Client
myscaledb-client is an async/sync http(s) MyScale client for python 3.6+ supporting
type conversion in both directions, streaming, lazy decoding on select queries,
and a fully typed interface.
Table of Contents
Installation
We recommend you to install it with command:
pip install myscaledb-client
Quick Start
Connecting to MyScale
The quickest way to get up and running with myscaledb-client is to simply connect
and check MyScale is alive.
# This is a demo using Client.
# Client works in sync mode and is simple to use.
from myscaledb import Client
def main():
client = Client(url='http://localhost:8123')
alive = client.is_alive()
print(f"Is MyScale alive? -> {alive}")
if __name__ == '__main__':
main()
Querying the database
Create a table with 4 dimensional vectors:
client.execute(
"""CREATE TABLE default.test
(
id UInt64,
name String,
vector FixedArray(Float32, 4)
)
ENGINE = MergeTree ORDER BY id"""
)
View all tables in current database:
res = client.fetch(query="show tables")
print([row[0] for row in res])
Documentation
To check out the API docs, visit the readthedocs site.
Metadata
Release files for myscaledb-client 2.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| myscaledb-client-2.0.6.tar.gz | 32.6 kB | Without provenance | Details for myscaledb-client-2.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| myscaledb_client-2.0.6-py3-none-any.whl | Python 3 | none | any | Details for myscaledb_client-2.0.6-py3-none-any.whl |
Total release size: 64.0 kB
Release files / myscaledb-client-2.0.6.tar.gz
| Download URL | myscaledb-client-2.0.6.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad6e06850aaf6660194e1961381efe30416a524f7ab592551a18864439429cc1
|
|
BLAKE2b-256 checksum How to use checksums |
48ca69607c44e0789d1c512d374ecf1c914c2ac48a47e1aafa789b0aee0615c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / myscaledb_client-2.0.6-py3-none-any.whl
| Download URL | myscaledb_client-2.0.6-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d61277a8ba4dea0628c72b38668bb5968e9b71d6e7dc00443bf1ede5d1f2131
|
|
BLAKE2b-256 checksum How to use checksums |
e8a056d4e84f3c286adf726357288b1ae1887c574f2a60cdaefdc02be4cf4de9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for myscaledb-client 2.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.