Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.25 KB

File metadata and controls

29 lines (24 loc) · 1.25 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 NestedAsyncExample from '!!raw-loader!./code/03_nested_async.py'; import NestedSyncExample from '!!raw-loader!./code/03_nested_sync.py';

In some cases, the Apify client provides nested clients to simplify working with related collections. For example, you can easily manage the runs of a specific Actor without having to construct multiple endpoints or client instances manually.

{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.