tiled.client.ragged.RaggedClient#
- class tiled.client.ragged.RaggedClient(context: Context, *, item, structure_clients, structure=None, include_data_sources=False)[source]#
-
Methods
__dask_tokenize__()__delattr__(name, /)Implement delattr(self, name).
__dir__(/)Default dir() implementation.
__eq__(value, /)Return self==value.
__format__(format_spec, /)Default object formatter.
__ge__(value, /)Return self>=value.
__getattribute__(name, /)Return getattr(self, name).
__getitem__(_slice)Access the array with slicing logic.
__getstate__(/)Helper for pickle.
__gt__(value, /)Return self>value.
__hash__(/)Return hash(self).
__init__(context, *, item, structure_clients)__init_subclass__This method is called when a class is subclassed.
__le__(value, /)Return self<=value.
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__new__(*args, **kwargs)__reduce__(/)Helper for pickle.
__reduce_ex__(protocol, /)Helper for pickle.
__repr__()Return a brief representation of the ragged data accessible to the
RaggedClient.__setattr__(name, value, /)Implement setattr(self, name, value).
__sizeof__(/)Size of object in memory, in bytes.
__str__(/)Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
_build_json_patch(origin, update_patch)Lower level method to construct a JSON patch from an origin and update_patch.
_build_metadata_revisions()asset_manifest(data_sources)Return a manifest of the relative paths of the contents in each asset.
build_metadata_patches([metadata, specs, ...])Build valid JSON Patches (RFC6902) for metadata and metadata validation specs accepted by patch_metadata.
close_stream()Declare the end of a stream of writes to this node.
data_sources()delete([recursive, external_only])Delete the node and its contents, if any.
export(filepath, *[, slice, format])Download data in some format and write to a file.
include_data_sources()Ensure that data source and asset information is fetched.
login()Depending on the server's authentication method, this will prompt for username/password:
logout()Log out.
metadata_copy()Generate a mutable copy of metadata, specs, and access_tags for validating metadata (useful with update_metadata())
new_variation([structure_clients, ...])This is intended primarily for internal use and use by subclasses.
patch(array, offset[, extend, persist])Write data into a slice of an array, possibly extending the shape.
patch_metadata([metadata_patch, ...])EXPERIMENTAL: Patch metadata using a JSON Patch (RFC6902).
raw_export([destination_directory, max_workers])Download the raw assets backing this node.
read([slice])Read the entire array, or optionally a slice of it.
refresh()replace_metadata([metadata, specs, ...])EXPERIMENTAL: Replace metadata entirely (see update_metadata).
structure()Return a dataclass describing the structure of the data.
update_metadata([metadata, specs, ...])EXPERIMENTAL: Update metadata via a dict.update- like interface.
write(array[, persist])Write a ragged array in full.
write_block(array, block[, persist])Write a block of ragged array data.
Attributes
URL_CHARACTER_LIMIT__annotations____dict____doc____module____weakref__list of weak references to the object
access_blobAuthorization information about this node, in blob form
chunkedWhether the array is chunked along any dimension.
chunksThe dask-like chunks of the array, where the first dimension is always partitioned into known integer chunks, and any variable dimensions are None.
contextdimsThe dimension names of the array, if set.
dtypeThe data type of the array.
formatsList formats that the server can export this data as.
itemJSON payload describing this item.
metadataMetadata about this data source.
metadata_revisionsndimThe dimensionality of the array.
parentReturns a client for the parent of this node.
path_partsLocation of node in tree, given as list of path segments.
shapeThe shape of the array, where unknown variable dimensions are given as
None.sizeThe total number of elements in the array.
specsList of specifications describing the structure of the metadata and/or data.
structure_familyQuick access to this entry
uriDirect link to this entry