Service-side Components
Adapters
Python Object Adapters
These Adapters don’t do any I/O, but instead wrap a structure in memory or its dask counterpart.
|
Adapt any mapping (dictionary-like object) to Tiled. |
|
Wrap an array-like object in an interface that Tiled can serve. |
|
Wrap a dataframe-like object in an interface that Tiled can serve. |
|
Wrap sparse Coordinate List (COO) arrays. |
File Adapters
|
This wraps dask.dataframe.read_csv. |
|
|
|
Read an HDF5 file or a group within one. |
|
|
|
|
|
Read a TIFF file. |
|
|
|
Search Queries
Built-in Search Query Types
These are simple, JSON-serializable dataclasses that define the data in a query. They do not defined how to execute a query on a given Tree.
Note
The list of built-in queries is short. Most of the power of queries comes from registering custom queries that fit your use case and can make specific assumption about your metadata / data and its meaning.
|
Search the full text of all metadata values for word matches. |
Match a specific Entry by key. |
Custom Search Query Registration
Keep track of all known queries types, with names. |
|
|
Register a new type of query. |
Media Type (Format) Registry
This is a registry of formats that the service can write upon a client’s request.
When registering new types, make reference to the IANA Media Types (formerly known as MIME types).
Global serialization registry. |
|
Registry of media types for each structure family |
|
|
Register a new media_type for a structure family. |
|
List the supported media types for a given structure family. |
|
List the aliases (file extensions) for each media type for a given structure family. |
Structures
For each data structure supported by tiled, there are dataclasses that encode its structure. These are very lightweight objects; they are used to inexpensively construct and a communicate a representation of the data’s shape and chunk/partition structure to the client so that it can formulate requests for slices of data and decode the responses.
See Structures for more context.
|
|
|
|
|
An enum of endian values: big, little, not_applicable. |
|
See https://numpy.org/devdocs/reference/arrays.interface.html#object.__array_interface__ |
|
|
|
|
|
Configuration Parsing
|
Parse configuration file or directory of configuration files. |
Given parsed configuration, construct arguments for build_app(...). |
HTTP Server Application
|
Serve a Tree |
Convenience function that calls build_app(...) given config as dict. |
Resource Cache
Return resource cache, a process-global Cache. |
|
Set the resource cache, a process-global Cache. |
|
Create a new instance of the default resource cache. |
|
Use value from cache or, if not present, call factory(*args, **kwargs) and cache result. |