class neuroglancer.read_precomputed_annotations.AnnotationMap[K, V]

Map interface for accessing an annotation index.

Public members

AnnotationMap(kvstore: KvStore | None, metadata, key_encoder, ...)

Initialize self. See help(type(self)) for accurate signature.

__getitem__(key: K) -> V

Reads a given key.

__contains__(key: K) -> bool

Checks if a given key is present.

get(key: K, batch: Batch | None = None) -> Future[V | None]

Reads a given key, returning a Future.

async get_async(key: K, batch: Batch | None = None) -> V

Asynchronously reads a given key.

metadata: dict[str, Any]

Raw JSON metadata associated with this annotation index.