Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.23 KB

File metadata and controls

30 lines (24 loc) · 1.23 KB
id nested-clients
title Nested clients

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

import ApiLink from '@theme/ApiLink';

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.