Skip to main content

Simple JSON-based local database storage for elizaOS

Project description

elizaos-plugin-localdb (Python)

Simple JSON-based local database storage for elizaOS.

Installation

pip install elizaos-plugin-localdb

Usage

from elizaos_plugin_localdb import LocalDatabaseAdapter, JsonFileStorage

# Create storage and adapter
storage = JsonFileStorage("./data")
adapter = LocalDatabaseAdapter(storage, agent_id="my-agent-id")

# Initialize
await adapter.init()

# Use the adapter...
await adapter.create_memory(memory, "messages")

# Close when done
await adapter.close()

Features

  • Zero configuration - no database required
  • JSON file-based storage
  • Built-in HNSW vector search
  • Implements IDatabaseAdapter interface

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

elizaos_plugin_localdb-2.0.0a4.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

elizaos_plugin_localdb-2.0.0a4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_localdb-2.0.0a4.tar.gz.

File metadata

File hashes

Hashes for elizaos_plugin_localdb-2.0.0a4.tar.gz
Algorithm Hash digest
SHA256 b1e10ab668b2014a59811460a409390c9075f4eaf6929fbdd8c518ed8115277d
MD5 e75da09460760841c72944c406194c09
BLAKE2b-256 7fd7e4e06cdb49925ff2ff4c9dc571615b9b2b5dc84d311716f9648011456cb0

See more details on using hashes here.

File details

Details for the file elizaos_plugin_localdb-2.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_localdb-2.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 b6aec4641cc0f0945e7c659c2d3b463f7398b33603d52c21052aa5ce9dc1dba9
MD5 a40ffbdb222026c608715be5ff08b9f8
BLAKE2b-256 da79237889bc1953a33892433eedb31eadc1d704c8d7831de1729b4969f4cdaa

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