The wire protocol was the last holdout and it was not cosmetic: the Hanzo Datastore server reads X-Datastore-User, and answers a request bearing X-ClickHouse-User with 401. Verified against the live server, both directions. So a client still sending the old headers is not merely off-brand, it cannot authenticate over HTTP. Everything else follows: types, dialects, error modules, docstrings and doc links now name Datastore, and doc URLs point at docs.hanzo.ai/datastore rather than the upstream vendor's site. Zero occurrences of the old name remain. Still cut from the pinned upstream version, so behaviour is unchanged.
1.6 KiB
Datastore Connect
A high performance core database driver for connecting Datastore to Python, Pandas, and Superset
- Pandas DataFrames
- Numpy Arrays
- PyArrow Tables
- Superset Connector
- SQLAlchemy 1.3 and 1.4 (limited feature set)
Datastore Connect currently uses the Datastore HTTP interface for maximum compatibility.
Installation
pip install datastore-connect
Datastore Connect requires Python 3.8 or higher.
Superset Connectivity
Datastore Connect is fully integrated with Apache Superset. Previous versions of Datastore Connect utilized a dynamically loaded Superset Engine Spec, but as of Superset v2.1.0 the engine spec was incorporated into the main Apache Superset project and removed from datastore-connect in v0.6.0. If you have issues connecting to earlier versions of Superset, please use datastore-connect v0.5.25.
When creating a Superset Data Source, either use the provided connection dialog, or a SqlAlchemy DSN in the form
datastoredb://{username}:{password}@{host}:{port}.
SQLAlchemy Implementation
Datastore Connect incorporates a minimal SQLAlchemy implementation (without any ORM features) for compatibility with Superset. It has only been tested against SQLAlchemy versions 1.3.x and 1.4.x, and is unlikely to work with more complex SQLAlchemy applications.
Asyncio Support
Datastore Connect provides an async wrapper, so that it is possible to use the client in an asyncio environment.
See the run_async example for more details.
Complete Documentation
The documentation for Datastore Connect has moved to Datastore Docs