Installation#
Since cold is not yet available on PyPI, you need to clone the repository and install it manually.
- Clone the Repository - git clone https://github.com/DigiBatt/cold.git cd cold 
- Create and Activate a Virtual Environment (Recommended) - python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate 
- Install Dependencies - pip install --upgrade pip pip install -r requirements.txt 
- Install cold in Editable Mode - pip install -e . - This allows you to use cold while making changes to its source code. 
- Autogenerate python classes - This uses pydantic to create python classes from the ontology models. This needs doing the first time you install cold, and whenever the ontology models change. .. code-block:: sh - python cold/scripts/regenerate_models.py 
- Verify Installation - import cold print(cold.__version__) # Check that it works 
You’re all set to use cold in your projects!