etha.kvstore
============

.. py:module:: etha.kvstore

.. autoapi-nested-parse::

   KV Store abstraction for distributed coordination.



Submodules
----------

.. toctree::
   :maxdepth: 1

   /api/etha/kvstore/base/index
   /api/etha/kvstore/etcd/index
   /api/etha/kvstore/tcp/index


Functions
---------

.. autoapisummary::

   etha.kvstore.create_store


Package Contents
----------------

.. py:function:: create_store(host: str = 'localhost', port: int | None = None, backend: Literal['etcd', 'tcp'] = 'tcp', timeout: float = 3600.0, namespace: str = 'default', component: str = 'tensorbus') -> base.KVStore

   Create a KVStore instance.

   :param host: Server host
   :param port: Server port (default: 2379 for etcd, 29500 for tcp)
   :param backend: "etcd" or "tcp"
   :param timeout: Connection timeout in seconds
   :param namespace: Namespace for key isolation
   :param component: Default component name

   :returns: KVStore instance


