InterSystems IRIS component of testcontainers-python.
Project description
Testcontainers-python for InterSystems IRIS
testcontainers-python facilitates the use of Docker containers for functional and integration testing.
Other implementations
Basic usage
>>> from testcontainers.iris import IRISContainer
>>> import sqlalchemy
>>> iris_container = IRISContainer("intersystemsdc/iris-community:latest")
>>> with iris_container as iris:
... engine = sqlalchemy.create_engine(iris.get_connection_url())
... with engine.begin() as connection:
... result = connection.execute(sqlalchemy.text("select $zversion"))
... version, = result.fetchone()
>>> version
'IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2023.2 (Build 227U) Mon Jul 31 2023 17:43:25 EDT'
The snippet above will spin up a InterSystems IRIS database in a container. The get_connection_url() convenience method returns a sqlalchemy compatible url we use to connect to the database and retrieve the database version.
It is possible to run Enterprise edition as well, with passing a valid iris.key.
iris_container = IRISContainer(
"containers.intersystems.com/intersystems/iris:2023.3",
license_key="/full/path/to/iris.key",
username="testuser",
password="testpass",
namespace="TEST",
)
username, password, namespace will be created during start of the container with required values, user will get %All role
Demo with Jupiter Notebook
More extensive documentation can be found at Read The Docs.
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
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 testcontainers_iris-1.3.0.tar.gz.
File metadata
- Download URL: testcontainers_iris-1.3.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29dec42be78ff20e42790d24816656e0bddc1b38edfc6d5414821435b1a88b54
|
|
| MD5 |
dcbb48f53943ae008b1bf12c49bb3af6
|
|
| BLAKE2b-256 |
30008d23611bdb562d407e447cdce39b0cfc13e3055dee76983e093c90b09652
|
Provenance
The following attestation bundles were made for testcontainers_iris-1.3.0.tar.gz:
Publisher:
main.yml on caretdev/testcontainers-iris-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
testcontainers_iris-1.3.0.tar.gz -
Subject digest:
29dec42be78ff20e42790d24816656e0bddc1b38edfc6d5414821435b1a88b54 - Sigstore transparency entry: 660783766
- Sigstore integration time:
-
Permalink:
caretdev/testcontainers-iris-python@4c301a382944448ecce963990582eddbe3750967 -
Branch / Tag:
refs/tags/1.3.0 - Owner: https://github.com/caretdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@4c301a382944448ecce963990582eddbe3750967 -
Trigger Event:
release
-
Statement type:
File details
Details for the file testcontainers_iris-1.3.0-py3-none-any.whl.
File metadata
- Download URL: testcontainers_iris-1.3.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f165f966468e2b59401b2c0ac6473d313fce28cf0c6a1e4c2e2e467ce0ffef0d
|
|
| MD5 |
f6492ed466874bb79970b457d82b86e5
|
|
| BLAKE2b-256 |
aebd6e492d497e74f0b52ed85b543bba5c4e8e13e2b24a74dce5100342b6006a
|
Provenance
The following attestation bundles were made for testcontainers_iris-1.3.0-py3-none-any.whl:
Publisher:
main.yml on caretdev/testcontainers-iris-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
testcontainers_iris-1.3.0-py3-none-any.whl -
Subject digest:
f165f966468e2b59401b2c0ac6473d313fce28cf0c6a1e4c2e2e467ce0ffef0d - Sigstore transparency entry: 660783768
- Sigstore integration time:
-
Permalink:
caretdev/testcontainers-iris-python@4c301a382944448ecce963990582eddbe3750967 -
Branch / Tag:
refs/tags/1.3.0 - Owner: https://github.com/caretdev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@4c301a382944448ecce963990582eddbe3750967 -
Trigger Event:
release
-
Statement type: