In-Memory Storage

Use in-memory storage for testing and development.

Kern supports using In-Memory storage with the InMemoryDb class. By doing this, you will be able to use all features that depend on having a database, without having to set one up.

Warning

Using the In-Memory storage is not recommended for production applications. Use it for demos, testing and any other use case where you don't want to setup a database.

Usage

1from kern.agent import Agent
2from kern.db.in_memory import InMemoryDb
3
4# Setup in-memory database
5db = InMemoryDb()
6
7# Create agent with database
8agent = Agent(db=db)