Capabilities and Limitations#
Current Capabilities#
labapi supports:
Navigating notebooks, directories, and pages by path or index.
Searching notebook entries with paginated results.
Creating and editing text entries (rich text, plain text, and headers).
Uploading and updating attachment entries.
Copying pages and directories for supported entry types.
Creating notebooks and downloading native whole-notebook backups.
Refreshing cached tree/page state when collaborating across sessions.
Known Limitations and Caveats#
Unsupported entry types are wrapped as fallback entries#
When a page contains entry types that labapi does not model yet, those
entries are loaded with a warning: unrecognized part types are wrapped as
UnknownEntry, and
recognized-but-unimplemented types as
UnimplementedEntry. The objects keep
their order and IDs, but assigning content raises NotImplementedError.
Widget entries are read-only#
WidgetEntry is supported for reading only.
Duplicate names return first-match results by default#
Name-based lookup methods such as collection["name"] and path traversal return the first match when duplicates exist.
Look up by ID to select one item, or use Index.Name to get every match.
Reserved ".." path segments cannot be addressed by name#
Path traversal treats ".." as parent navigation, so nodes literally named ".." cannot be
resolved via traverse().
refresh() does not update old child references#
After refresh(), child objects (entries, pages, directories) you fetched
earlier are stale. Fetch them again from the parent.
copy_to() has copy fidelity limits and placement restrictions#
LabArchives may rename attachments during copy.
Widget, unknown, and unimplemented entries may be skipped during page copy.
When an entry cannot be recreated,
copy_to()emits aRuntimeWarningand skips that entry; the copied page may be incomplete. Passstrict=Trueto abort the copy instead.When a copy fails, the page or directory it created is moved to API Deleted Items.
Copying a directory into itself or into one of its descendants raises
ValueError.
enumerate_all() can return partial results on larger trees#
enumerate_all() stops after a time limit (about 5 seconds by default) and
returns the paths collected so far. On large or slow trees, use a smaller
depth or enumerate one subtree at a time.
Entry deletion is not available#
labapi cannot delete individual entries, only pages and directories.
Notebook creation has no matching deletion operation#
create_notebook() creates an empty
notebook, but labapi cannot delete a notebook. A job that creates
notebooks leaves them behind.
Native backups operate on an entire notebook#
backup() downloads a native backup of the
whole notebook and cannot be limited to one directory or page. Excluding
attachments makes the download smaller. LabArchives restricts backups to the
notebook owner, so a user with shared access cannot download one.
Comments are not available#
The
Commenttype is a placeholder.labapicannot read or write entry comments.