xoak.IndexRegistry

class xoak.IndexRegistry(use_default=True)[source]

A registry of all indexes adapters that can be used to select data with xoak.

__init__(use_default=True)[source]

Creates a new index registry.

This registry provides a dict-like interface as well as attribute-style access to index adapters.

Parameters

use_default (bool, optional) – If True (default), pre-populates the registry with xoak’s built-in index adapters.

Methods

__init__([use_default])

Creates a new index registry.

get(k[,d])

items()

keys()

register(name)

Register custom index in xoak.

values()