Skip to main content

Store documents in SQLite for Addok.

Project description

addok-sqlite-store

Addok plugin to store documents in SQLite instead of Redis to reduce memory usage.

Features

  • SQLite storage: Store documents in a SQLite database instead of Redis
  • Memory optimization: Reduce Redis RAM usage for large datasets

Installation

pip install addok-sqlite-store

Configuration

Add the following to your Addok configuration file to activate the plugin:

# Use SQLite as document store
DOCUMENT_STORE_PYPATH = 'addok_sqlite_store.SQLiteStore'

The SQLite database will be created at addok.db by default. You can customize the path:

# Optional: customize the database path
SQLITE_DB_PATH = '/path/to/your/database.db'

Or use environment variables:

export ADDOK_DOCUMENT_STORE_PYPATH='addok_sqlite_store.SQLiteStore'
export ADDOK_SQLITE_DB_PATH='/path/to/your/database.db'  # optional

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

addok_sqlite_store-1.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

addok_sqlite_store-1.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file addok_sqlite_store-1.1.0.tar.gz.

File metadata

  • Download URL: addok_sqlite_store-1.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for addok_sqlite_store-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9596d86770b6caabf1f779c29713a0ec91e21984005afd2d73de9858c77c68a8
MD5 448bca2ee36faea013173ca5df91a154
BLAKE2b-256 dfad8960b17e3a26993cb69ff5f3e3ad2222345bf482c8f21ac3042f42685e4c

See more details on using hashes here.

File details

Details for the file addok_sqlite_store-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for addok_sqlite_store-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83e026705b59ec664379eb7c4d949dc5a3e4a427a6c014a35de26a103da2e001
MD5 207dba2246823cad83c6cd3fee036fc7
BLAKE2b-256 7d186902b449bb3ba939e2656b6229e88ad08ada9bee9ebc1b33d07dd59f4e83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page