tiled.client.array.ArrayClient¶
- class tiled.client.array.ArrayClient(*args, item, **kwargs)[source]¶
Client-side wrapper around an array-like that returns in-memory arrays
- __init__(*args, item, **kwargs)¶
Methods
__init__
(*args, item, **kwargs)download
()Download all data into the cache.
export
(filepath[, format, slice, link, ...])Download data in some format and write to a file.
login
([provider])Depending on the server's authentication method, this will prompt for username/password
logout
()Log out.
new_variation
([path, params, structure_clients])This is intended primarily for internal use and use by subclasses.
read
([slice])Acess the entire array or a slice.
read_block
(block[, slice])Access the data for one block of this chunked array.
refresh
([force])Refresh cached data for this node.
structure
()Return a dataclass describing the structure of the data.
Attributes
context
dims
formats
List formats that the server can export this data as.
item
JSON payload describing this item.
metadata
Metadata about this data source.
offline
path
Sequence of entry names from the root Tree to this entry
uri
Direct link to this entry
username