A DB API 2 compatible client for HeavyDB (formerly OmniSci and MapD).
Project description
pyheavydb
A python DB API compliant interface for HeavyDB (formerly OmniSci and MapD).
Building from source
- Requires Python >= 3.10
- Clone the repository and navigate to the project directory.
- The build rquires the thrift executable. See thrift installed. Make sure the directory containing the thrift binary is on your PATH. Note - It's recommened to install a virtual python environment. In these instuction pip is used,
- python3 -m venv venv
- . ./venv/bin/activate Install the python build tools
- pip install build Run the build target for the makefile. This will also call the makefile's thrift target.
- make build
Running the tests.
The test require a running HeavyAI backend database to connect to.
These instruction assume that the database backend is running on the same host as the tests, that it has opened the default ports and that those ports are accessible, as in not blocked by the local firewall.
Start the backend HeavyDB server.
Similary to building 'pyheavydb' it is recommended to install and test from a virtual python environment. These instruction need to be run from the project directory.
- Build (see above) and install pyheavydb.
- pip install pytest pytest-mock
- pytest test/test_cursor.py
- pytest test/test_connection.py
- pytest test/test_integration.py
- pytest test/test_results_set.py
Release
Update the version numbers appropriately and run and make publish
Releasing on PyPi assume you have a PyPi token in your environment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyheavydb-8.0.1.post1.tar.gz
.
File metadata
- Download URL: pyheavydb-8.0.1.post1.tar.gz
- Upload date:
- Size: 88.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
91c95eeea631cf347c8d85027befe4706b038ee0c3bbfd04ab605e94748d86f7
|
|
MD5 |
f45ee09f11e3d1b71e6d6cbc10f11a3c
|
|
BLAKE2b-256 |
e37fcda3aa80e9941f0a6501d8e128f00f24f2131d4425e62523528f93bb97b5
|