Installation
From PyPI
From Source
Optional Dependencies
Memorious has optional dependencies for specific features:
# SQL database support (SQLite, PostgreSQL)
pip install memorious4[sql]
# PostgreSQL with psycopg2
pip install memorious4[postgres]
# Redis support
pip install memorious4[redis]
# FTP support
pip install memorious4[ftp]
Verify Installation
Running a Crawler
Crawlers are defined in YAML files. Run a crawler with:
Custom operations can be referenced directly by file path - no extra installation required:
Environment Setup
Memorious is configured via environment variables. Create a .env file or export them:
# Base directory for data storage
export MEMORIOUS_BASE_PATH=./data
# Enable debug logging
export MEMORIOUS_DEBUG=true
Development Setup
For local development and testing, in-memory storage works out of the box:
export MEMORIOUS_BASE_PATH=./data
export MEMORIOUS_CACHE_URI=memory://
export PROCRASTINATE_DB_URI=memory:
export PROCRASTINATE_SYNC=1
Production Setup
For production with multiple workers:
# Core
export MEMORIOUS_BASE_PATH=/var/lib/memorious
# Redis for shared cache
export MEMORIOUS_CACHE_URI=redis://localhost:6379/0
# PostgreSQL for job queue and tags
export MEMORIOUS_TAGS_URI=postgresql://user:pass@localhost/memorious
export PROCRASTINATE_DB_URI=postgresql://user:pass@localhost/memorious
# Procrastinate app, needed by standalone workers
export PROCRASTINATE_APP=memorious.tasks.app
Start one or more long-lived workers with procrastinate's CLI, listening on the
memorious queue:
See the CLI Reference for details.
See the Settings Reference for all configuration options.