ShopSavvy for Django

Python

Full Django integration for the ShopSavvy Data API. Includes template tags for rendering price cards in templates, a DRF viewset for JSON endpoints, middleware that injects the client into every request, a model mixin for caching product data, and a management command for CLI access.

Quick Start

pip install django-shopsavvy

Features

Template tags: {% shopsavvy_price %}, {% shopsavvy_search %}, {% shopsavvy_deals %}
Django REST Framework viewset and router
Middleware that injects request.shopsavvy
ShopSavvyProductMixin model mixin with cache helpers
Management command: python manage.py shopsavvy_search
Configurable via SHOPSAVVY_API_KEY in settings.py

Use Cases

1.Render live prices in Django templates
2.Add price comparison REST endpoints to a Django app
3.Cache product data locally with the model mixin
4.Search and compare prices from the command line

Powered by the ShopSavvy Data API

This integration connects to the ShopSavvy Data API — real-time product data and pricing from thousands of retailers across millions of products. Search by barcode, ASIN, URL, or keyword. Compare prices, track history, discover deals, and schedule monitoring.