YugabyteDB dialect for SQLAlchemy
Project description
YugabyteDB dialect for SQLAlchemy
Prerequisites
For psycopg2 support you must install either:
-
psycopg2-yugabytedb, which has some prerequisites of its own. Or,
(The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.)
Install and usage
Use pip
to install the latest version. Clone the repository and run the following command:
pip install .
Use a Yugabytedb
connection string when creating the Engine
. For example,
to connect to a local YugabyteDB cluster using psycopg2:
from sqlalchemy import create_engine
engine = create_engine('yugabytedb://yugabyte@localhost:5433/yugabyte')
or
from sqlalchemy import create_engine
engine = create_engine('yugabytedb+psycopg2://yugabyte@localhost:5433/yugabyte')
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
Built Distribution
File details
Details for the file sqlalchemy-yugabytedb-1.0.0.1.tar.gz
.
File metadata
- Download URL: sqlalchemy-yugabytedb-1.0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7a694391bcaecdebbb7debf6831af60057a7299933915cc2db29550bd35bad2 |
|
MD5 | 44774a6cc1cf2949f0adfa28737196ce |
|
BLAKE2b-256 | 7521b4ca42f0e23d14e8e9e02640f5960a1faf8f35e13c060df000b1f84e014d |
File details
Details for the file sqlalchemy_yugabytedb-1.0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sqlalchemy_yugabytedb-1.0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947ec3049b35887a0f413a1b41aaddfa62592c9ca3ebffc98edc0646d40d5010 |
|
MD5 | 38d5611cd920866cd9504c9400a8ecf7 |
|
BLAKE2b-256 | 358367a6208e5627efce289d32286a79c2cf517702af95e655bb0c2d7165760c |