Skip to main content

This package includes the Denodo Dialect for SQLAlchemy, which offers an easy way to connect to Denodo databases from SQLAlchemy https://www.sqlalchemy.org/

Denodo documentation and software resources are available at https://community.denodo.com

This dialect supports Denodo 8.0 and higher.

Pre-requisites

Python 3.9 or newer is needed.

This dialect requires the following Python modules:

  • SQLAlchemy 1.4.36 or higher. SQLAlchemy 2.0.x is recommended.
  • psycopg2 version 2.9.6 or higher.

These Python modules are also required dependencies in order to use Denodo Virtual DataPort's Flight SQL interface:

  • SQLAlchemy 2.0.0 or higher.
  • adbc-driver-flightsql version 1.3.0.
  • pyarrow version 19.0.0.

Required dependencies will be installed automatically, in order to install dependencies for Flight SQL the flightsql extras package needs to be installed:

pip install denodo-sqlalchemy[flightsql]

Alternatively, dependency packages can be installed manually:

pip install sqlalchemy~=2.0.0
pip install psycopg2-binary>=2.9.6
pip install adbc-driver-flightsql~=1.3.0
pip install pyarrow~=19.0.0

Important: note also that psycopg2 has its own requirements for installation which need to be satisfied: https://www.psycopg.org/docs/install.html#prerequisites

Installation

The Denodo Dialect for SQLAlchemy can be installed from the public PyPI repository using pip:

pip install --upgrade denodo-sqlalchemy

Or:

pip install --upgrade denodo-sqlalchemy[flightsql]

pip automatically installs all required dependencies.

Usage

To connect to Denodo VDP Server with SQLAlchemy, the following URL pattern can be used:

denodo://<username>:<password>@<host>:<port[9996]>/<database>

This will create a connection using the default driver psycopg2, so it is equivalent to:

denodo+psycopg2://<username>:<password>@<host>:<port[9996]>/<database>

In order to create a connection using Flight SQL, you would need:

denodo+flightsql://<username>:<password>@<host>:<port[9994]>/<database>

Please note that Flight SQL connections assume SSL is enabled at the server. If not, you would need to add the use_encryption parameter set to False, like:

engine = sqlalchemy.create_engine("denodo+flightsql://<username>:<password>@<host>:<port[9994]>/<database>", connect_args={"use_encryption":"false"})

Metadata

Release files for denodo-sqlalchemy 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for denodo-sqlalchemy 2.0.1
File Size Uploaded
denodo_sqlalchemy-2.0.1.tar.gz 29.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for denodo-sqlalchemy 2.0.1
File Interpreter ABI Platform
denodo_sqlalchemy-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 69.5 kB

Release files / denodo_sqlalchemy-2.0.1.tar.gz

Download URL denodo_sqlalchemy-2.0.1.tar.gz
Size 29.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3e29e4ee14edda1ea7b6353e9da74b6bdb81717cc13db5953feed59afb19a380
BLAKE2b-256 checksum
How to use checksums
c7c6130d74c48b463e6c12582f2c5bdd71ec5f8918f4f3e8faf60d24352a1309
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / denodo_sqlalchemy-2.0.1-py3-none-any.whl

Download URL denodo_sqlalchemy-2.0.1-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33d425c91f667138daf3f8e27a39c88b37db3ce27337730eac76a4f68ae30d20
BLAKE2b-256 checksum
How to use checksums
875d859ea5fa9f294f5369543d3994f74e6192c809788430ae7ef7563982f132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.0.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page