An InterSystems IRIS dialect for SQLAlchemy
Project description
sqlalchemy-intersystems-iris
This package provides an InterSystems IRIS dialect for SQLAlchemy, built for use with the InterSystems Python DB-API driver.
Installation
Install sqlalchemy-intersystems-iris with pip:
pip install sqlalchemy-intersystems-iris
The InterSystems Python DB-API driver is a dependency and will be automatically installed or upgraded to a compatible version.
Usage
You can connect your Python application to an InterSystems IRIS database by passing a connection URL to create_engine(). The URL can be a string or a SQLAlchemy URL object.
A connection string for InterSystems IRIS has the format iris://{username}:{password}@{host}:{port}/{namespace}. For example:
from sqlalchemy import create_engine
url = "iris://SQLUser:password@localhost:1972/USER"
engine = create_engine(url)
You can construct a SQLAlchemy URL with URL.create(). Note that the database field corresponds to an InterSystems IRIS namespace:
from sqlalchemy import create_engine
from sqlalchemy import URL
url = URL.create(
drivername='iris',
username='SQLUser',
password='password',
host='localhost',
port=1972,
database='USER',
)
engine = create_engine(url)
As these examples demonstrate, you do not need to import the dialect package directly—the SQLAlchemy engine will automatically load the correct dialect based on the connection URL.
For details on the features supported by InterSystems IRIS SQL, see the InterSystems IRIS SQL documentation.
Documentation
SQLAlchemy documentation is available at https://docs.sqlalchemy.org/.
Help
For any issues you can contact InterSystems Worldwide Response Center (WRC).
License
This project is licensed under the terms detailed at https://www.intersystems.com/IERTU/.
Release Notes
Version 1.0.0
Initial release.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlalchemy_intersystems_iris-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_intersystems_iris-1.0.0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4838afa48c6a2789288dc1e793a230a3eac31ce7850d9d11a24fbc0526dce182
|
|
| MD5 |
ff139ded667c594b3c19386a73c83671
|
|
| BLAKE2b-256 |
62a239e8ca74b12644ad59752dd40f6162ab5eb6f97284fb9b248a82e99c2a8d
|