Installation - InjectQ Documentation
Author: InjectQ Contributors
Description: Modern Python dependency injection library

Skip to content

# Installation

This guide will help you install InjectQ and get it running on your system.

## 📦 Basic Installation

Install InjectQ using pip:

    pip install injectq

## 🔧 Optional Dependencies

InjectQ supports optional integrations with popular frameworks. Install them as needed:

### FastAPI Integration

    pip install injectq[fastapi]

### Taskiq Integration

    pip install injectq[taskiq]

### FastMCP Integration

    pip install injectq[fastmcp]

### All Integrations

    pip install injectq[fastapi,taskiq,fastmcp]

### Development Dependencies

For development and testing:

    pip install injectq[dev]

This includes tools like mypy, pytest, black, and other development utilities.

## 🐍 Python Version Support

InjectQ supports Python 3.10 and above:

- ✅ Python 3.10
- ✅ Python 3.11
- ✅ Python 3.12
- ✅ Python 3.13

## 🔍 Verifying Installation

After installation, verify that InjectQ is working correctly:

    import injectq

    print(f"InjectQ version: {injectq.__version__}")

    # Create a simple container
    container = injectq.InjectQ.get_instance()
    container[str] = "Hello, InjectQ!"

    print(container[str])  # Should print: Hello, InjectQ!

## 🛠️ Development Installation

If you want to contribute to InjectQ or run the latest development version:

    # Clone the repository
    git clone https://github.com/Iamsdt/injectq.git
    cd injectq

    # Install in development mode
    pip install -e .

    # Or with development dependencies
    pip install -e .[dev]

## 📋 System Requirements

### Minimum Requirements

- Python 3.10+
- pip (latest version recommended)

### Recommended Setup

- Python 3.11+ for best performance
- Virtual environment (venv, conda, or pipenv)
- IDE with type checking support (PyCharm, VS Code with Pylance)

## 🚀 Next Steps

Now that you have InjectQ installed, let's create your first application!