Plush

Library#

plupy · Type index

Module: plupy · obtained from plupy.data.libraries[...] or .new(name)

A Library datablock (plupy.data.libraries[...]): folders of shelved datablocks, starting at folder().

Create with plupy.data.libraries.new(name) or find through plupy.data.libraries[key]. Inherits DataBlock.

class Library(DataBlock)

Inherits DataBlock: its members are documented there.

Usage and examples

Members: folder · items

folder#

folder(path: str='') -> LibraryFolder

Returns a folder view. "" means the library root; child paths use / separators. Creating the view does not create a missing folder; reading its contents then raises KeyError. Folder views follow their path, not a stable rename/move identity.

items#

items   # read-only

Root folder's Collection[DataBlock]. Supports ID/name lookup and iteration.

Collection · DataBlock · LibraryFolder

Source#