InterSystems IRIS for SQLAlchemy
Project description
sqlalchemy-iris
An InterSystems IRIS dialect for SQLAlchemy.
Pre-requisites
This dialect requires SQLAlchemy, InterSystems DB-API driver. They are specified as requirements so pip
will install them if they are not already in place. To install, just:
pip install sqlalchemy-iris
Usage
In your Python app, you can connect to the database via:
from sqlalchemy import create_engine
engine = create_engine("iris://_SYSTEM:SYS@localhost:1972/USER")
IRIS Cloud SQL requires SSLContext
url = engine.URL.create(
drivername="iris",
host=host,
port=443,
username='SQLAdmin',
password=password,
database='USER',
)
sslcontext = ssl.create_default_context(cafile="certificateSQLaaS.pem")
engine = create_engine(url, connect_args={"sslcontext": sslcontext})
InterSystems IRIS
You can run your instance of InterSystems IRIS Community Edition with Docker
docker run -d --name iris \
-p 1972:1972 \
-p 52773:52773 \
-e IRIS_USERNAME=_SYSTEM \
-e IRIS_PASSWORD=SYS \
intersystemsdc/iris-community:preview
Port 1972 is used for binary communication (this driver, xDBC and so on), and 52773 is for web (Management Portal, IRIS based web-applications and API's).
The System Management Portal is available by URL: http://localhost:52773/csp/sys/UtilHome.csp
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_iris-0.15.3.tar.gz
.
File metadata
- Download URL: sqlalchemy_iris-0.15.3.tar.gz
- Upload date:
- Size: 119.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7977beba47a373bddc9d03eace04270fddaa8eeb3d09f4bf64647cab2309e34 |
|
MD5 | fe89042de1005f585a3921980ecb686d |
|
BLAKE2b-256 | cf4afc27e5d913c157caf156921d3516127b013beeca1a26abc540e0551348d3 |
File details
Details for the file sqlalchemy_iris-0.15.3-py3-none-any.whl
.
File metadata
- Download URL: sqlalchemy_iris-0.15.3-py3-none-any.whl
- Upload date:
- Size: 142.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bb240ac5e876d461dac087af2c6bd483d6fa0c4b1fa0bf507b8f91b6ad0749f |
|
MD5 | 8e70215a935e281aa0c118221836c60d |
|
BLAKE2b-256 | b5bf45fa4b70e5fe1d00412a22c32063c3a5ec94dbdd53fdc04164d47d77d683 |