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.0a5.tar.gz (12.0 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.0a5-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elizaos_plugin_localdb-2.0.0a5.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for elizaos_plugin_localdb-2.0.0a5.tar.gz
Algorithm Hash digest
SHA256 9ed66964ae18387ac7a28695317d5d1e41b33cfbf37ab8965a38d830d2ad87aa
MD5 53ea06275323fd9b8e018477d28fcdbf
BLAKE2b-256 704b0c6ca602a9b5b851454bbf19624cefa654fb45ffa28cf6d77f7bee29c11a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for elizaos_plugin_localdb-2.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 0047eeadb4810e13f3b0ffcac69f447c1bfb7f1aa6cb2d2725a84c21216c14e5
MD5 fe9cd3527a070b0239f4321640f61e84
BLAKE2b-256 cb2270489ab50ffa7b77269f6a9db6e42aad3c89cf93310b89b71f0c0be8ba2d

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