Installation¶
Prerequisites¶
- Python 3.10+
- Polars 0.46+
Installing with pip¶
Installing with uv¶
Installing from Source¶
If you want to build from source (e.g., for development):
# Clone the repository
git clone https://github.com/heshamdar/polars-cv.git
cd polars-cv
# Install with uv (recommended)
uv sync
# Or install with pip in development mode
pip install -e .
Verifying Installation¶
import polars as pl
from polars_cv import Pipeline
# Create a simple test pipeline
pipe = Pipeline().source("image_bytes").grayscale()
print("polars-cv installed successfully!")
Optional Dependencies¶
For Cloud Storage (S3, GCS, Azure)¶
Cloud storage support is built into polars-cv by default. For optimal performance, ensure your cloud credentials are configured:
AWS S3:
export AWS_ACCESS_KEY_ID=your_key
export AWS_SECRET_ACCESS_KEY=your_secret
export AWS_REGION=us-east-1
Google Cloud Storage:
Azure Blob Storage:
For Documentation (development only)¶
When working in the project repository, install the docs dependency group:
For PyTorch Integration¶
PyTorch is not a required dependency, but polars-cv integrates seamlessly with it: