tiled.adapters.excel.ExcelAdapter

class tiled.adapters.excel.ExcelAdapter(mapping: Mapping[str, A], *, metadata: Mapping[str, str | int | float | Mapping[str, JSON_ITEM] | Sequence[JSON_ITEM] | None] | None = None, sorting: List[SortingItem] | None = None, specs: List[Spec] | None = None, entries_stale_after: timedelta | None = None, metadata_stale_after: timedelta | None = None, must_revalidate: bool = True)[source]
__init__(mapping: Mapping[str, A], *, metadata: Mapping[str, str | int | float | Mapping[str, JSON_ITEM] | Sequence[JSON_ITEM] | None] | None = None, sorting: List[SortingItem] | None = None, specs: List[Spec] | None = None, entries_stale_after: timedelta | None = None, metadata_stale_after: timedelta | None = None, must_revalidate: bool = True) None

Create a simple Adapter from any mapping (e.g. dict, OneShotCachedMap).

Parameters:
mappingdict-like
metadatadict, optional
specsList[str], optional
sortingList[Tuple[str, int]], optional
specsList[str], optional
entries_stale_after: timedelta

This server uses this to communicate to the client how long it should rely on a local cache before checking back for changes.

metadata_stale_after: timedelta

This server uses this to communicate to the client how long it should rely on a local cache before checking back for changes.

must_revalidatebool

Whether the client should strictly refresh stale cache items.

Methods

__class_getitem__

Parameterizes a generic class.

__contains__(key)

__delattr__(name, /)

Implement delattr(self, name).

__dir__(/)

Default dir() implementation.

__eq__(other)

Return self==value.

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__getitem__(key)

__getstate__(/)

Helper for pickle.

__gt__(value, /)

Return self>value.

__init__(mapping, *[, metadata, sorting, ...])

Create a simple Adapter from any mapping (e.g. dict, OneShotCachedMap).

__init_subclass__

Function to initialize subclasses.

__iter__()

__le__(value, /)

Return self<=value.

__len__()

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(*args, **kwargs)

__reduce__(/)

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__()

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__(/)

Size of object in memory, in bytes.

__str__(/)

Return str(self).

__subclasshook__(C)

Abstract classes can override this to customize issubclass().

_items_slice(start, stop, direction[, page_size])

_keys_slice(start, stop, direction[, page_size])

from_catalog(data_source, node, /, **kwargs)

from_file(file, **kwargs)

Read the sheets in an Excel file.

from_uris(data_uri, **kwargs)

Read the sheets in an Excel file.

get(k[,d])

get_distinct(metadata, structure_families, ...)

items()

keys()

metadata()

new_variation(*args, mapping, ...)

read([fields])

register_query(class_, translator)

register_query_lazy(toplevel, register)

Register a registration function which will be called if the toplevel module (e.g. 'pandas') is ever loaded.

search(query)

sort(sorting)

structure()

supported_storage()

values()

Attributes

__abstractmethods__

__annotations__

__dict__

__doc__

__hash__

__module__

__orig_bases__

__parameters__

__reversed__

__slots__

__weakref__

list of weak references to the object

_abc_impl

entries_stale_at

items_indexer

keys_indexer

metadata_stale_at

must_revalidate

query_registry

sorting

specs

structure_family

values_indexer

fn