Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.22 KB

File metadata and controls

31 lines (25 loc) · 1.22 KB
id nested-clients
title Nested clients
description Access related resources directly through nested client methods.

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock';

import ApiLink from '@site/src/components/ApiLink';

import NestedAsyncExample from '!!raw-loader!./code/03_nested_async.py'; import NestedSyncExample from '!!raw-loader!./code/03_nested_sync.py';

Nested clients let you access related resources directly from a parent resource client, without manually constructing new client instances.

{NestedAsyncExample} {NestedSyncExample}

This direct access to Dataset (and other storage resources) from the RunClient is especially convenient when used alongside the ActorClient.last_run method.