Prerequisites¶
Before installing iris-haystack, make sure your environment meets the following requirements.
Python¶
Python 3.10 or higher is required.
Why 3.10+?
The project uses X | Y union type syntax (PEP 604) and match statements which require Python 3.10. The pyproject.toml enforces requires-python = ">=3.10".
Docker¶
IRIS Community Edition is distributed as a Docker image. You need Docker Desktop or Docker Engine installed.
Download Docker Desktop.
Verify the installation:
IRIS Connection Details¶
Once IRIS is running (see Docker Setup), the default connection details for IRIS Community Edition are:
| Parameter | Default value |
|---|---|
| Host | localhost |
| Port (DB-API / superserver) | 1972 |
| Namespace | USER |
| Username | _system |
| Password | SYS |
Change the default password
In any environment beyond local development, change the default password immediately via the Management Portal.
Environment Variables¶
iris-haystack uses Haystack Secret objects to read credentials from the environment. Set these before running any code:
export IRIS_CONNECTION_STRING="localhost:1972/USER"
export IRIS_USERNAME="_system"
export IRIS_PASSWORD="SYS"
Or create a .env file at the root of your project:
Never commit .env to git
Add .env to your .gitignore. Credentials committed to git are a security risk.
Optional: hatch (for contributors)¶
If you plan to contribute to the project or run the full test suite, you will also need hatch:
See the Development Setup guide for full details.