Skip to content

Installation

Set up CGM Data Processor for development

Simple install

1
2
3
4
5
6
7
8
9
# Clone repository
git clone https://github.com/Warren8824/cgm-data-processor.git
cd cgm-data-processor

# Install dependencies using pip
pip install -r requirements.txt

# Or using Poetry 
poetry install

And as simple as that the system is ready to use. - Check out our Basic Usage page.

🛠️ Development Setup

  • Python 3.10+ required
  • Poetry for dependency management (Preferred)
  • Git for version control
# Clone repository
git clone https://github.com/Warren8824/cgm-data-processor.git
cd cgm-data-processor

# Install Poetry (if not installed)
curl -sSL https://install.python-poetry.org | python3 -

# Create and activate new environment

# macOS/Linux:
poetry env activate
source $(poetry env info --path)/bin/activate

# Windows(Powershell):
poetry env activate
(Invoke-Expression "$(poetry env info --path)\Scripts\Activate")

# Install development dependencies

# Using poetry:
poetry install --with dev

# or using venv:
pip install -r requirements-dev.txt


# Setup pre-commit hooks
poetry run pre-commit install

# Run tests
poetry run pytest

✅ Verify Installation

1
2
3
4
5
from src.core.format_registry import FormatRegistry

# Should print available formats
registry = FormatRegistry()
print(registry.formats)