Single-file Python script to fetch Bring! shopping list items and search on Knuspr.
- Python 3.8+
bring-api- Unofficial Bring! API client (async)python-dotenv- Environment file loadingaiohttp- Async HTTP client
bring2knuspr.py # Main script (single file)
requirements.txt # Python dependencies
.env # Credentials (not in git)
knuspr_mappings.txt # Item name → search term mappings (not in git)
source venv/bin/activate
python bring2knuspr.py --dry-run- The
bring-apilibrary returns typed dataclass objects, not dicts - Use
.lists,.items.purchase,.itemIdetc. for attribute access - Active items are in
items.purchase, completed items initems.recently