Context Storages#

dff.context_storages.protocol

The Protocol module contains the base code for the different communication protocols used in the DFF. It defines the PROTOCOLS constant, which lists all the supported protocols in the DFF.

dff.context_storages.json

The JSON module provides a json-based version of the DBContextStorage class. This class is used to store and retrieve context data in a JSON. It allows the DFF to easily store and retrieve context data.

dff.context_storages.sql

The SQL module provides a SQL-based version of the DBContextStorage class. This class is used to store and retrieve context data from SQL databases. It allows the DFF to easily store and retrieve context data in a format that is highly scalable and easy to work with.

dff.context_storages.redis

The Redis module provides a Redis-based version of the DBContextStorage class. This class is used to store and retrieve context data in a Redis. It allows the DFF to easily store and retrieve context data in a format that is highly scalable and easy to work with.

dff.context_storages.ydb

The Yandex DB module provides a version of the DBContextStorage class that designed to work with Yandex and other databases. Yandex DataBase is a fully-managed cloud-native SQL service that makes it easy to set up, operate, and scale high-performance and high-availability databases for your applications.

dff.context_storages.pickle

The Pickle module provides a pickle-based version of the DBContextStorage class. This class is used to store and retrieve context data in a pickle format. It allows the DFF to easily store and retrieve context data in a format that is efficient for serialization and deserialization and can be easily used in python.

dff.context_storages.database

The Database module provides classes for managing the context storage of a dialog system. The module can be used to store information such as the current state of the conversation and other data. This module includes the intermediate class (DBContextStorage) is a class that developers can inherit from in order to create their own context storage solutions. This class implements the basic functionality and can be extended to add additional features as needed.

dff.context_storages.shelve

The Shelve module provides a shelve-based version of the DBContextStorage class. This class is used to store and retrieve context data in a shelve format. It allows the DFF to easily store and retrieve context data in a format that is efficient for serialization and deserialization and can be easily used in python.

dff.context_storages.mongo

The Mongo module provides a MongoDB-based version of the DBContextStorage class. This class is used to store and retrieve context data in a MongoDB. It allows the DFF to easily store and retrieve context data in a format that is highly scalable and easy to work with.