Installation Guide

Table of contents

  1. Requirements
  2. Basic Installation
    1. Using pip
    2. Using uv (recommended)
  3. Development Installation
    1. Development Dependencies Include
  4. Verifying Installation
  5. Docker Installation
  6. Next Steps

Requirements

  • Python 3.12 or higher
  • pip or uv package manager

Basic Installation

Using pip

pip install fastapi_otel_common
uv pip install fastapi_otel_common

Development Installation

For development with testing and linting tools:

# Clone the repository
git clone https://github.com/devdenvino/fastapi_otel_common.git
cd fastapi_otel_common

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

Development Dependencies Include

  • pytest - Testing framework
  • pytest-asyncio - Async test support
  • pytest-cov - Coverage reporting
  • mypy - Static type checking
  • ruff - Fast Python linter
  • black - Code formatter

Verifying Installation

import fastapi_otel_common

print(fastapi_otel_common.__version__)
# Output: 0.0.2

Docker Installation

If using Docker, add to your Dockerfile:

FROM python:3.12-slim

WORKDIR /app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Or install directly
RUN pip install fastapi_otel_common

COPY . .

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

Next Steps