Ë
    8ø»jüÑ  ã                  ót  — d dl mZ d dlmZmZ d dlmZ d dlmZm	Z	 d dl
mZ d dlmZmZmZmZ d dlmZmZmZ d dlmZmZ d d	lmZ d d
lmZmZ er"d dlmZmZ d dl m!Z! d dl"m#Z# d dl$m%Z% d dl&m'Z'm(Z(  ed«      e G d„ d«      «       «       Z) ed«       G d„ de«      «       Z* ed«       G d„ de«      «       Z+y)é    )Úannotations)ÚasynccontextmanagerÚcontextmanager)Ú	dataclass)ÚTYPE_CHECKINGÚAny)Ú
docs_group)ÚDatasetÚDatasetResponseÚDatasetStatisticsÚDatasetStatisticsResponse)ÚDEFAULT_CHUNK_SIZEÚget_items_iteratorÚget_items_iterator_async)ÚResourceClientÚResourceClientAsync)Ú create_storage_content_signature)Úresponse_to_dictÚresponse_to_list)ÚAsyncIteratorÚIterator)Ú	timedelta)ÚGeneralAccess)ÚHttpResponse)ÚJsonSerializableÚTimeoutÚOtherc                  óX   — e Zd ZU dZded<   	 ded<   	 ded<   	 ded<   	 ded<   	 d	ed
<   y)ÚDatasetItemsPagea  A page of dataset items returned by the `list_items` method.

    Dataset items are arbitrary JSON objects stored in the dataset, so they cannot be
    represented by a specific Pydantic model. This class provides pagination metadata
    along with the raw items.
    zlist[dict[str, Any]]ÚitemsÚintÚtotalÚoffsetÚcountÚlimitÚboolÚdescN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__© ó    ú]/var/www/html/GAP/venv/lib/python3.12/site-packages/apify_client/_resource_clients/dataset.pyr   r      s:   … ñð  ÓØIàƒJØ/àƒKØ4àƒJØtàƒJØ3à
ƒJØ;r.   r   zResource clientsc                  ó˜  ‡ — e Zd ZdZdddœ	 	 	 	 	 	 	 dˆ fd„Zddœdd„Zdddd	œ	 	 	 	 	 	 	 dd
„Zddœdd„Zddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zdddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d d„Z	dddddddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d!d„Z
eddddddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d"d„«       Zddœd#d„Zddœd$d„Zddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d%d„Zˆ xZS )&ÚDatasetClientzàSub-client for managing a specific dataset.

    Provides methods to manage a specific dataset, e.g. get it, update it, or download its items. Obtain an instance
    via an appropriate method on the `ApifyClient` class.
    NÚdatasets©Úresource_idÚresource_pathc               ó*   •— t        ‰| �  d||dœ|¤Ž y ©Nr3   r-   ©ÚsuperÚ__init__©Úselfr4   r5   ÚkwargsÚ	__class__s       €r/   r:   zDatasetClient.__init__<   ó'   ø€ ô 	‰Ñð 	
Ø#Ø'ñ	
ð ó	
r.   Úshort©Útimeoutc               ój   — | j                  |¬«      }|€yt        j                  |«      j                  S ©a  Retrieve the dataset.

        https://docs.apify.com/api/v2#/reference/datasets/dataset/get-dataset

        Args:
            timeout: Timeout for the API HTTP request.

        Returns:
            The retrieved dataset, or None, if it does not exist.
        rA   N©Ú_getr   Úmodel_validateÚdata©r<   rB   Úresults      r/   ÚgetzDatasetClient.getI   s3   € ð —‘ 7�Ó+ˆØˆ>ØÜ×-Ñ-¨fÓ5×:Ñ:Ð:r.   ©ÚnameÚgeneral_accessrB   c               óh   — | j                  |||¬«      }t        j                  |«      j                  S )áw  Update the dataset with specified fields.

        https://docs.apify.com/api/v2#/reference/datasets/dataset/update-dataset

        Args:
            name: The new name for the dataset.
            general_access: Determines how others can access the dataset.
            timeout: Timeout for the API HTTP request.

        Returns:
            The updated dataset.
        ©rB   rM   ÚgeneralAccess©Ú_updater   rG   rH   ©r<   rM   rN   rB   rJ   s        r/   ÚupdatezDatasetClient.updateY   s9   € ð& —‘ØØØ(ð ó 
ˆô
 ×-Ñ-¨fÓ5×:Ñ:Ð:r.   c               ó(   — | j                  |¬«       y©z´Delete the dataset.

        https://docs.apify.com/api/v2#/reference/datasets/dataset/delete-dataset

        Args:
            timeout: Timeout for the API HTTP request.
        rA   N©Ú_delete©r<   rB   s     r/   ÚdeletezDatasetClient.deletes   s   € ð 	�‰˜WˆÕ%r.   Úlong©r#   r%   Úcleanr'   ÚfieldsÚomitÚunwindÚ
skip_emptyÚskip_hiddenÚflattenÚviewÚ	signaturerB   c               óâ  — | j                  |||||||||	|
||¬«      }| j                  j                  | j                  d«      d||¬«      }t	        |«      }t        |t        |j                  d   «      t        |j                  d   «      t        t        |j                  d   «      t        |«      «      t        |j                  d   «      |j                  d	   j                  «       d
k(  ¬«      S )á3
  List the items of the dataset.

        https://docs.apify.com/api/v2#/reference/datasets/item-collection/get-items

        Args:
            offset: Number of items that should be skipped at the start. The default value is 0.
            limit: Maximum number of items to return. By default there is no limit.
            desc: By default, results are returned in the same order as they were stored. To reverse the order,
                set this parameter to True.
            clean: If True, returns only non-empty items and skips hidden fields (i.e. fields starting with
                the # character). The clean parameter is just a shortcut for skip_hidden=True and skip_empty=True
                parameters. Note that since some objects might be skipped from the output, that the result might
                contain less items than the limit value.
            fields: A list of fields which should be picked from the items, only these fields will remain
                in the resulting record objects. Note that the fields in the outputted items are sorted the same
                way as they are specified in the fields parameter. You can use this feature to effectively fix
                the output format.
            omit: A list of fields which should be omitted from the items.
            unwind: A list of fields which should be unwound, in order which they should be processed. Each field
                should be either an array or an object. If the field is an array then every element of the array
                will become a separate record and merged with parent object. If the unwound field is an object then
                it is merged with the parent object. If the unwound field is missing or its value is neither an array
                nor an object and therefore cannot be merged with a parent object, then the item gets preserved
                as it is. Note that the unwound items ignore the desc parameter.
            skip_empty: If True, then empty items are skipped from the output. Note that if used, the results might
                contain less items than the limit value.
            skip_hidden: If True, then hidden fields are skipped from the output, i.e. fields starting with
                the # character.
            flatten: A list of fields that should be flattened.
            view: Name of the dataset view to be used.
            signature: Signature used to access the items.
            timeout: Timeout for the API HTTP request.

        Returns:
            A page of the list of dataset items according to the specified filters.
        ©r#   r%   r'   r_   r`   ra   rb   Ú	skipEmptyÚ
skipHiddenre   rf   rg   r    ÚGET©ÚurlÚmethodÚparamsrB   úx-apify-pagination-totalúx-apify-pagination-offsetúx-apify-pagination-countúx-apify-pagination-limitúx-apify-pagination-descÚtrue©r    r"   r#   r$   r%   r'   ©Ú_build_paramsÚ_http_clientÚcallÚ
_build_urlr   r   r!   ÚheadersÚmaxÚlenÚlower©r<   r#   r%   r_   r'   r`   ra   rb   rc   rd   re   rf   rg   rB   Úrequest_paramsÚresponser    s                    r/   Ú
list_itemszDatasetClient.list_items}   s  € ðj ×+Ñ+ØØØØØØØØ Ø"ØØØð ,ó 
ˆð ×$Ñ$×)Ñ)Ø—‘ Ó(ØØ!Øð	 *ó 
ˆô ! Ó*ˆäØÜ�h×&Ñ&Ð'AÑBÓCÜ�x×'Ñ'Ð(CÑDÓEô ”c˜(×*Ñ*Ð+EÑFÓGÌÈUËÓTä�h×&Ñ&Ð'AÑBÓCØ×!Ñ!Ð";Ñ<×BÑBÓDÈÑNô

ð 
	
r.   ©r#   r%   r_   r'   r`   ra   rb   rc   rd   rg   Ú
chunk_sizerB   c               ój   ‡ ‡‡‡‡‡‡‡	‡
‡— dddœdˆˆˆˆˆ ˆ
ˆˆ	ˆˆf
d„}t        ||||xs t        ¬«      S )á`  Iterate over the items in the dataset.

        Simple `list_items` does only one API call, possibly not listing all items matching the criteria. This method
        returns an iterator that is capable of making multiple API calls to retrieve all items matching the criteria.

        https://docs.apify.com/api/v2#/reference/datasets/item-collection/get-items

        Args:
            offset: Number of items that should be skipped at the start. The default value is 0.
            limit: Maximum number of dataset rows to scan. Fewer items are yielded when filters drop some, more
                when `unwind` splits a row into several. By default there is no limit.
            desc: By default, results are returned in the same order as they were stored. To reverse the order,
                set this parameter to True.
            clean: If True, returns only non-empty items and skips hidden fields (i.e. fields starting with
                the # character). The clean parameter is just a shortcut for skip_hidden=True and skip_empty=True
                parameters. Note that since some objects might be skipped from the output, that the result might
                contain less items than the limit value.
            fields: A list of fields which should be picked from the items, only these fields will remain in
                the resulting record objects. Note that the fields in the outputted items are sorted the same way
                as they are specified in the fields parameter. You can use this feature to effectively fix
                the output format.
            omit: A list of fields which should be omitted from the items.
            unwind: A list of fields which should be unwound, in order which they should be processed. Each field
                should be either an array or an object. If the field is an array then every element of the array
                will become a separate record and merged with parent object. If the unwound field is an object then
                it is merged with the parent object. If the unwound field is missing or its value is neither an array
                nor an object and therefore cannot be merged with a parent object, then the item gets preserved
                as it is. Note that the unwound items ignore the desc parameter.
            skip_empty: If True, then empty items are skipped from the output. Note that if used, the results might
                contain less items than the limit value.
            skip_hidden: If True, then hidden fields are skipped from the output, i.e. fields starting with
                the # character.
            signature: Signature used to access the items.
            chunk_size: Maximum number of dataset rows requested per API call when iterating across pages.
            timeout: Timeout for the API HTTP request.

        Yields:
            An item from the dataset.
        N©r%   r#   c                ó<   •
— ‰j                  || ‰‰‰‰‰‰‰	‰‰
¬«      S ©N)r#   r%   r_   r'   r`   ra   rb   rc   rd   rg   rB   ©r…   ©r%   r#   r_   r'   r`   ra   r<   rg   rc   rd   rB   rb   s     €€€€€€€€€€r/   Ú	_callbackz.DatasetClient.iterate_items.<locals>._callback  s:   ø€ Ø—?‘?ØØØØØØØØ%Ø'Ø#Øð #ó ð r.   ©r%   r#   r‡   ©r%   ú
int | Noner#   r’   Úreturnr   )r   r   ©r<   r#   r%   r_   r'   r`   ra   rb   rc   rd   rg   r‡   rB   r�   s   `  ```````` ` r/   Úiterate_itemszDatasetClient.iterate_items×   s5   ÿù€ ðp .2È÷ 	÷ 	ð 	ô " )°5ÀÐT^ÒTtÔbtÔuÐur.   Újson©Úitem_formatr#   r%   r'   r_   ÚbomÚ	delimiterr`   ra   rb   rc   Úskip_header_rowrd   Úxml_rootÚxml_rowre   rg   rB   c               óº   — | j                  |||||||||	|
|||||||¬«      }| j                  j                  | j                  d«      d||¬«      }|j                  S )á  Get the items in the dataset as raw bytes.

        https://docs.apify.com/api/v2#/reference/datasets/item-collection/get-items

        Args:
            item_format: Format of the results, possible values are: json, jsonl, csv, html, xlsx, xml and rss.
                The default value is json.
            offset: Number of items that should be skipped at the start. The default value is 0.
            limit: Maximum number of items to return. By default there is no limit.
            desc: By default, results are returned in the same order as they were stored. To reverse the order,
                set this parameter to True.
            clean: If True, returns only non-empty items and skips hidden fields (i.e. fields starting with
                the # character). The clean parameter is just a shortcut for skip_hidden=True and skip_empty=True
                parameters. Note that since some objects might be skipped from the output, that the result might
                contain less items than the limit value.
            bom: All text responses are encoded in UTF-8 encoding. By default, csv files are prefixed with
                the UTF-8 Byte Order Mark (BOM), while json, jsonl, xml, html and rss files are not. If you want
                to override this default behavior, specify bom=True query parameter to include the BOM or bom=False
                to skip it.
            delimiter: A delimiter character for CSV files. The default delimiter is a simple comma (,).
            fields: A list of fields which should be picked from the items, only these fields will remain
                in the resulting record objects. Note that the fields in the outputted items are sorted the same
                way as they are specified in the fields parameter. You can use this feature to effectively fix
                the output format.
                You can use this feature to effectively fix the output format.
            omit: A list of fields which should be omitted from the items.
            unwind: A list of fields which should be unwound, in order which they should be processed. Each field
                should be either an array or an object. If the field is an array then every element of the array
                will become a separate record and merged with parent object. If the unwound field is an object then
                it is merged with the parent object. If the unwound field is missing or its value is neither an array
                nor an object and therefore cannot be merged with a parent object, then the item gets preserved
                as it is. Note that the unwound items ignore the desc parameter.
            skip_empty: If True, then empty items are skipped from the output. Note that if used, the results might
                contain less items than the limit value.
            skip_header_row: If True, then header row in the csv format is skipped.
            skip_hidden: If True, then hidden fields are skipped from the output, i.e. fields starting with
                the # character.
            xml_root: Overrides default root element name of xml output. By default the root element is items.
            xml_row: Overrides default element name that wraps each page or page function result object in xml output.
                By default the element name is item.
            flatten: A list of fields that should be flattened.
            signature: Signature used to access the items.
            timeout: Timeout for the API HTTP request.

        Returns:
            The dataset items as raw bytes.
        ©Úformatr#   r%   r'   r_   r™   rš   r`   ra   rb   rk   ÚskipHeaderRowrl   ÚxmlRootÚxmlRowre   rg   r    rm   rn   ©rz   r{   r|   r}   Úcontent©r<   r˜   r#   r%   r'   r_   r™   rš   r`   ra   rb   rc   r›   rd   rœ   r�   re   rg   rB   rƒ   r„   s                        r/   Úget_items_as_bytesz DatasetClient.get_items_as_bytes   s�   € ðJ ×+Ñ+ØØØØØØØØØØØ Ø)Ø"ØØØØð# ,ó 
ˆð( ×$Ñ$×)Ñ)Ø—‘ Ó(ØØ!Øð	 *ó 
ˆð ×ÑÐr.   ©r˜   r#   r%   r'   r_   r™   rš   r`   ra   rb   rc   r›   rd   rœ   r�   rg   rB   c             #  ó  K  — d}	 | j                  |||||||||	|
||||||¬«      }| j                  j                  | j                  d«      d|d|¬«      }|–— |r|j	                  «        yy# |r|j	                  «        w w xY w­w©aï  Retrieve the items in the dataset as a stream.

        https://docs.apify.com/api/v2#/reference/datasets/item-collection/get-items

        Args:
            item_format: Format of the results, possible values are: json, jsonl, csv, html, xlsx, xml and rss.
                The default value is json.
            offset: Number of items that should be skipped at the start. The default value is 0.
            limit: Maximum number of items to return. By default there is no limit.
            desc: By default, results are returned in the same order as they were stored. To reverse the order,
                set this parameter to True.
            clean: If True, returns only non-empty items and skips hidden fields (i.e. fields starting with
                the # character). The clean parameter is just a shortcut for skip_hidden=True and skip_empty=True
                parameters. Note that since some objects might be skipped from the output, that the result might
                contain less items than the limit value.
            bom: All text responses are encoded in UTF-8 encoding. By default, csv files are prefixed with
                the UTF-8 Byte Order Mark (BOM), while json, jsonl, xml, html and rss files are not. If you want
                to override this default behavior, specify bom=True query parameter to include the BOM or bom=False
                to skip it.
            delimiter: A delimiter character for CSV files. The default delimiter is a simple comma (,).
            fields: A list of fields which should be picked from the items, only these fields will remain
                in the resulting record objects. Note that the fields in the outputted items are sorted the same
                way as they are specified in the fields parameter. You can use this feature to effectively fix
                the output format.
                You can use this feature to effectively fix the output format.
            omit: A list of fields which should be omitted from the items.
            unwind: A list of fields which should be unwound, in order which they should be processed. Each field
                should be either an array or an object. If the field is an array then every element of the array
                will become a separate record and merged with parent object. If the unwound field is an object then
                it is merged with the parent object. If the unwound field is missing or its value is neither an array
                nor an object and therefore cannot be merged with a parent object, then the item gets preserved
                as it is. Note that the unwound items ignore the desc parameter.
            skip_empty: If True, then empty items are skipped from the output. Note that if used, the results might
                contain less items than the limit value.
            skip_header_row: If True, then header row in the csv format is skipped.
            skip_hidden: If True, then hidden fields are skipped from the output, i.e. fields starting with
                the # character.
            xml_root: Overrides default root element name of xml output. By default the root element is items.
            xml_row: Overrides default element name that wraps each page or page function result object in xml output.
                By default the element name is item.
            signature: Signature used to access the items.
            timeout: Timeout for the API HTTP request.

        Returns:
            The dataset items as a context-managed streaming `Response`.
        N)r¡   r#   r%   r'   r_   r™   rš   r`   ra   rb   rk   r¢   rl   r£   r¤   rg   r    rm   T)ro   rp   rq   ÚstreamrB   )rz   r{   r|   r}   Úclose©r<   r˜   r#   r%   r'   r_   r™   rš   r`   ra   rb   rc   r›   rd   rœ   r�   rg   rB   r„   rƒ   s                       r/   Ústream_itemszDatasetClient.stream_items‚  s¸   è ø€ ðH ˆð	!Ø!×/Ñ/Ø"ØØØØØØ#ØØØØ$Ø-Ø&Ø ØØ#ð! 0ó ˆNð& ×(Ñ(×-Ñ-Ø—O‘O GÓ,ØØ%ØØð .ó ˆHð ŠNáØ—‘Õ ð ø‰xØ—‘Õ ð üs   ‚B†AA. ÁBÁ.BÂBÚmediumc          	     ó¸   — d}d}t        |t        «      r|}n|}| j                  j                  | j	                  d«      dddi| j                  «       |||¬«       y©aX  Push items to the dataset.

        https://docs.apify.com/api/v2#/reference/datasets/item-collection/put-items

        Args:
            items: The items which to push in the dataset. Either a stringified JSON, a dictionary, or a list
                of strings or dictionaries.
            timeout: Timeout for the API HTTP request.
        Nr    ÚPOSTzcontent-typezapplication/json; charset=utf-8)ro   rp   r~   rq   rH   r–   rB   ©Ú
isinstanceÚstrr{   r|   r}   rz   ©r<   r    rB   rH   r–   s        r/   Ú
push_itemszDatasetClient.push_itemsç  sh   € ð ˆØˆä�eœSÔ!Ø‰DàˆDà×Ñ×ÑØ—‘ Ó(ØØ#Ð%FÐGØ×%Ñ%Ó'ØØØð 	õ 	
r.   c               óÎ   — | j                   j                  | j                  d«      d| j                  «       |¬«      }t	        |«      }t        j                  |«      j                  S )áJ  Get the dataset statistics.

        https://docs.apify.com/api/v2#tag/DatasetsStatistics/operation/dataset_statistics_get

        Args:
            timeout: Timeout for the API HTTP request.

        Returns:
            The dataset statistics.

        Raises:
            NotFoundError: If the dataset does not exist.
        Ú
statisticsrm   rn   ©r{   r|   r}   rz   r   r   rG   rH   ©r<   rB   r„   rJ   s       r/   Úget_statisticszDatasetClient.get_statistics  s`   € ð ×$Ñ$×)Ñ)Ø—‘ Ó-ØØ×%Ñ%Ó'Øð	 *ó 
ˆô " (Ó+ˆÜ(×7Ñ7¸Ó?×DÑDÐDr.   ©r#   r%   r_   r'   r`   ra   rb   rc   rd   re   rf   Ú
expires_inrB   c               óì   — | j                  |¬«      }| j                  |||||||||	|
|¬«      }|r3|j                  r't        |j                  |j                  |¬«      }||d<   | j                  d|«      S )á©  Generate a URL that can be used to access dataset items.

        If the client has permission to access the dataset's URL signing key,
        the URL will include a signature to verify its authenticity.

        You can optionally control how long the signed URL should be valid using the `expires_in` option.
        This value sets the expiration duration from the time the URL is generated.
        If not provided, the URL will not expire.

        Any other options (like `limit` or `offset`) will be included as query parameters in the URL.

        Args:
            offset: Number of items that should be skipped at the start. The default value is 0.
            limit: Maximum number of items to return. By default there is no limit.
            clean: If True, returns only non-empty items and skips hidden fields.
            desc: By default, results are returned in the same order as they were stored. To reverse the order,
                set this parameter to True.
            fields: A list of fields which should be picked from the items.
            omit: A list of fields which should be omitted from the items.
            unwind: A list of fields which should be unwound, in order which they should be processed.
            skip_empty: If True, then empty items are skipped from the output.
            skip_hidden: If True, then hidden fields are skipped from the output.
            flatten: A list of fields that should be flattened.
            view: Name of the dataset view to be used.
            expires_in: How long the signed URL should be valid.
            timeout: Timeout for the API HTTP request.

        Returns:
            The public dataset items URL.
        rA   ©r#   r%   r'   r_   r`   ra   rb   rk   rl   re   rf   ©rÀ   rg   r    ©rK   rz   Úurl_signing_secret_keyr   ÚidÚ_build_public_url©r<   r#   r%   r_   r'   r`   ra   rb   rc   rd   re   rf   rÀ   rB   Údatasetrƒ   rg   s                    r/   Úcreate_items_public_urlz%DatasetClient.create_items_public_url  s”   € ð^ —(‘( 7�(Ó+ˆà×+Ñ+ØØØØØØØØ Ø"ØØð ,ó 
ˆñ �w×5Ò5Ü8Ø—
‘
Ø×.Ñ.Ø%ôˆIð
 +4ˆN˜;Ñ'à×%Ñ% g¨~Ó>Ð>r.   ©r4   ú
str | Noner5   r¶   r=   r   r“   ÚNone©rB   r   r“   zDataset | None©rM   rÍ   rN   zGeneralAccess | NonerB   r   r“   r
   ©rB   r   r“   rÎ   ©r#   r’   r%   r’   r_   úbool | Noner'   rÓ   r`   úlist[str] | Nonera   rÔ   rb   rÔ   rc   rÓ   rd   rÓ   re   rÔ   rf   rÍ   rg   rÍ   rB   r   r“   r   )r#   r’   r%   r’   r_   rÓ   r'   rÓ   r`   rÔ   ra   rÔ   rb   rÔ   rc   rÓ   rd   rÓ   rg   rÍ   r‡   r’   rB   r   r“   zIterator[dict]©&r˜   r¶   r#   r’   r%   r’   r'   rÓ   r_   rÓ   r™   rÓ   rš   rÍ   r`   rÔ   ra   rÔ   rb   rÔ   rc   rÓ   r›   rÓ   rd   rÓ   rœ   rÍ   r�   rÍ   re   rÔ   rg   rÍ   rB   r   r“   Úbytes)$r˜   r¶   r#   r’   r%   r’   r'   rÓ   r_   rÓ   r™   rÓ   rš   rÍ   r`   rÔ   ra   rÔ   rb   rÔ   rc   rÓ   r›   rÓ   rd   rÓ   rœ   rÍ   r�   rÍ   rg   rÍ   rB   r   r“   zIterator[HttpResponse]©r    r   rB   r   r“   rÎ   ©rB   r   r“   r   ©r#   r’   r%   r’   r_   rÓ   r'   rÓ   r`   rÔ   ra   rÔ   rb   rÔ   rc   rÓ   rd   rÓ   re   rÔ   rf   rÍ   rÀ   ztimedelta | NonerB   r   r“   r¶   )r(   r)   r*   r+   r:   rK   rV   r\   r…   r•   r¨   r   r¯   r¸   r¾   rË   Ú__classcell__©r>   s   @r/   r1   r1   4   s  ø„ ñð #'Ø'ñ	
ð  ð
ð ð	
ð
 ð
ð 
õ
ð )0õ ;ð&  Ø/3Ø"ñ;ð ð;ð -ð	;ð
 ð;ð 
ó;ð4 ,3õ &ð "Ø Ø!Ø Ø#'Ø!%Ø#'Ø"&Ø#'Ø$(ØØ $Ø!ñX
ð ðX
ð ð	X
ð
 ðX
ð ðX
ð !ðX
ð ðX
ð !ðX
ð  ðX
ð !ðX
ð "ðX
ð ðX
ð ðX
ð ðX
ð  
ó!X
ðz "Ø Ø!Ø Ø#'Ø!%Ø#'Ø"&Ø#'Ø $Ø!%Ø!ñGvð ðGvð ð	Gvð
 ðGvð ðGvð !ðGvð ðGvð !ðGvð  ðGvð !ðGvð ðGvð ðGvð ðGvð 
óGvðX "Ø!Ø Ø Ø!ØØ $Ø#'Ø!%Ø#'Ø"&Ø'+Ø#'Ø#Ø"Ø$(Ø $Ø!ñ)` ð ð` ð ð	` ð
 ð` ð ð` ð ð` ð ð` ð ð` ð !ð` ð ð` ð !ð` ð  ð` ð %ð` ð !ð` ð  ð!` ð" ð#` ð$ "ð%` ð& ð'` ð( ð)` ð* 
ó+` ðD ð "Ø!Ø Ø Ø!ØØ $Ø#'Ø!%Ø#'Ø"&Ø'+Ø#'Ø#Ø"Ø $Ø!ñ'b!ð ðb!ð ð	b!ð
 ðb!ð ðb!ð ðb!ð ðb!ð ðb!ð !ðb!ð ðb!ð !ðb!ð  ðb!ð %ðb!ð !ðb!ð  ð!b!ð" ð#b!ð$ ð%b!ð& ð'b!ð( 
 ò)b!ó ðb!ðH IQõ 
ð8 4;õ Eð4 "Ø Ø!Ø Ø#'Ø!%Ø#'Ø"&Ø#'Ø$(ØØ'+Ø!ñG?ð ðG?ð ð	G?ð
 ðG?ð ðG?ð !ðG?ð ðG?ð !ðG?ð  ðG?ð !ðG?ð "ðG?ð ðG?ð %ðG?ð ðG?ð  
÷!G?r.   r1   c                  ó˜  ‡ — e Zd ZdZdddœ	 	 	 	 	 	 	 dˆ fd„Zddœdd„Zdddd	œ	 	 	 	 	 	 	 dd
„Zddœdd„Zddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zdddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d d„Z	dddddddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d!d„Z
eddddddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d"d„«       Zddœd#d„Zddœd$d„Zddddddddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d%d„Zˆ xZS )&ÚDatasetClientAsynczåSub-client for managing a specific dataset.

    Provides methods to manage a specific dataset, e.g. get it, update it, or download its items. Obtain an instance
    via an appropriate method on the `ApifyClientAsync` class.
    Nr2   r3   c               ó*   •— t        ‰| �  d||dœ|¤Ž y r7   r8   r;   s       €r/   r:   zDatasetClientAsync.__init__l  r?   r.   r@   rA   c             ƒ  ó†   K  — | j                  |¬«      ƒ d{  –—† }|€yt        j                  |«      j                  S 7 Œ&­wrD   rE   rI   s      r/   rK   zDatasetClientAsync.gety  s?   è ø€ ð —y‘y¨�yÓ1×1ˆØˆ>ØÜ×-Ñ-¨fÓ5×:Ñ:Ð:ð 2ús   ‚A˜?™'ArL   c             ƒ  ó„   K  — | j                  |||¬«      ƒ d{  –—† }t        j                  |«      j                  S 7 Œ#­w)rP   rQ   NrS   rU   s        r/   rV   zDatasetClientAsync.update‰  sG   è ø€ ð& —|‘|ØØØ(ð $ó 
÷ 
ˆô
 ×-Ñ-¨fÓ5×:Ñ:Ð:ð
ús   ‚A š>›$A c             ƒ  óD   K  — | j                  |¬«      ƒ d{  –—†  y7 Œ­wrX   rY   r[   s     r/   r\   zDatasetClientAsync.delete£  s   è ø€ ð �l‰l 7ˆlÓ+×+Ò+ús   ‚ ˜™ r]   r^   c             ƒ  óþ  K  — | j                  |||||||||	|
||¬«      }| j                  j                  | j                  d«      d||¬«      ƒ d{  –—† }t	        |«      }t        |t        |j                  d   «      t        |j                  d   «      t        t        |j                  d   «      t        |«      «      t        |j                  d	   «      |j                  d
   j                  «       dk(  ¬«      S 7 Œ©­w)ri   rj   r    rm   rn   Nrr   rs   rt   ru   rv   rw   rx   ry   r‚   s                    r/   r…   zDatasetClientAsync.list_items­  s  è ø€ ðj ×+Ñ+ØØØØØØØØ Ø"ØØØð ,ó 
ˆð ×*Ñ*×/Ñ/Ø—‘ Ó(ØØ!Øð	 0ó 
÷ 
ˆô ! Ó*ˆäØÜ�h×&Ñ&Ð'AÑBÓCÜ�x×'Ñ'Ð(CÑDÓEô ”c˜(×*Ñ*Ð+EÑFÓGÌÈUËÓTä�h×&Ñ&Ð'AÑBÓCØ×!Ñ!Ð";Ñ<×BÑBÓDÈÑNô

ð 
	
ð
ús   ‚AC=ÁC;ÁB*C=r†   c               ój   ‡ ‡‡‡‡‡‡‡	‡
‡— dddœdˆˆˆˆˆ ˆ
ˆˆ	ˆˆf
d„}t        ||||xs t        ¬«      S )r‰   NrŠ   c              “  óX   •
K  — ‰j                  || ‰‰‰‰‰‰‰	‰‰
¬«      ƒ d {  –—† S 7 Œ­wrŒ   r�   rŽ   s     €€€€€€€€€€r/   r�   z3DatasetClientAsync.iterate_items.<locals>._callback?  sH   øè ø€ ØŸ™ØØØØØØØØ%Ø'Ø#Øð )ó ÷ ð ð ús   ƒ *£(¤*r�   r‘   )r   r   r”   s   `  ```````` ` r/   r•   z DatasetClientAsync.iterate_items  s9   ÿù€ ðp 48Èd÷ 	÷ 	ð 	ô (Ø˜U¨6¸jÒ>^ÔL^ô
ð 	
r.   r–   r—   c             ƒ  óÖ   K  — | j                  |||||||||	|
|||||||¬«      }| j                  j                  | j                  d«      d||¬«      ƒ d{  –—† }|j                  S 7 Œ­w)rŸ   r    r    rm   rn   Nr¥   r§   s                        r/   r¨   z%DatasetClientAsync.get_items_as_bytesR  s›   è ø€ ðJ ×+Ñ+ØØØØØØØØØØØ Ø)Ø"ØØØØð# ,ó 
ˆð( ×*Ñ*×/Ñ/Ø—‘ Ó(ØØ!Øð	 0ó 
÷ 
ˆð ×ÑÐð
ús   ‚AA)ÁA'ÁA)r©   c              óL  K  — d}	 | j                  |||||||||	|
||||||¬«      }| j                  j                  | j                  d«      d|d|¬«      ƒ d{  –—† }|­–— |r|j	                  «       ƒ d{  –—†  yy7 Œ%7 Œ# |r|j	                  «       ƒ d{  –—†7   w w xY w­wr«   )rz   r{   r|   r}   Úacloser®   s                       r/   r¯   zDatasetClientAsync.stream_items´  s×   è ø€ ðH ˆð	(Ø!×/Ñ/Ø"ØØØØØØ#ØØØØ$Ø-Ø&Ø ØØ#ð! 0ó ˆNð& "×.Ñ.×3Ñ3Ø—O‘O GÓ,ØØ%ØØð 4ó ÷ ˆHð ‹NáØ—o‘oÓ'×'Ñ'ð ðøð (ùñ Ø—o‘oÓ'×'Ò'ð üsM   ‚B$†AB ÁA?Á	B Á#B$Á8BÁ9B$Á?B ÂB$ÂB!ÂBÂB!Â!B$r°   c          	   ƒ  óÔ   K  — d}d}t        |t        «      r|}n|}| j                  j                  | j	                  d«      dddi| j                  «       |||¬«      ƒ d{  –—†  y7 Œ­wr²   r´   r·   s        r/   r¸   zDatasetClientAsync.push_items  sv   è ø€ ð ˆØˆä�eœSÔ!Ø‰DàˆDà×Ñ×$Ñ$Ø—‘ Ó(ØØ#Ð%FÐGØ×%Ñ%Ó'ØØØð %ó 
÷ 	
ò 	
ús   ‚AA(Á A&Á!A(c             ƒ  óê   K  — | j                   j                  | j                  d«      d| j                  «       |¬«      ƒ d{  –—† }t	        |«      }t        j                  |«      j                  S 7 Œ.­w)rº   r»   rm   rn   Nr¼   r½   s       r/   r¾   z!DatasetClientAsync.get_statistics5  sn   è ø€ ð ×*Ñ*×/Ñ/Ø—‘ Ó-ØØ×%Ñ%Ó'Øð	 0ó 
÷ 
ˆô " (Ó+ˆÜ(×7Ñ7¸Ó?×DÑDÐDð
ús   ‚A A3ÁA1Á/A3r¿   c             ƒ  ó  K  — | j                  |¬«      ƒ d{  –—† }| j                  |||||||||	|
|¬«      }|r3|j                  r't        |j                  |j                  |¬«      }||d<   | j                  d|«      S 7 Œg­w)rÂ   rA   NrÃ   rÄ   rg   r    rÅ   rÉ   s                    r/   rË   z*DatasetClientAsync.create_items_public_urlL  s    è ø€ ð^ Ÿ™¨˜Ó1×1ˆà×+Ñ+ØØØØØØØØ Ø"ØØð ,ó 
ˆñ �w×5Ò5Ü8Ø—
‘
Ø×.Ñ.Ø%ôˆIð
 +4ˆN˜;Ñ'à×%Ñ% g¨~Ó>Ð>ð1 2ús   ‚B˜B ™A(BrÌ   rÏ   rÐ   rÑ   rÒ   )r#   r’   r%   r’   r_   rÓ   r'   rÓ   r`   rÔ   ra   rÔ   rb   rÔ   rc   rÓ   rd   rÓ   rg   rÍ   r‡   r’   rB   r   r“   zAsyncIterator[dict]rÕ   )$r˜   r¶   r#   r’   r%   r’   r'   rÓ   r_   rÓ   r™   rÓ   rš   rÍ   r`   rÔ   ra   rÔ   rb   rÔ   rc   rÓ   r›   rÓ   rd   rÓ   rœ   rÍ   r�   rÍ   rg   rÍ   rB   r   r“   zAsyncIterator[HttpResponse]r×   rØ   rÙ   )r(   r)   r*   r+   r:   rK   rV   r\   r…   r•   r¨   r   r¯   r¸   r¾   rË   rÚ   rÛ   s   @r/   rÝ   rÝ   d  s  ø„ ñð #'Ø'ñ	
ð  ð
ð ð	
ð
 ð
ð 
õ
ð /6õ ;ð&  Ø/3Ø"ñ;ð ð;ð -ð	;ð
 ð;ð 
ó;ð4 29õ ,ð "Ø Ø!Ø Ø#'Ø!%Ø#'Ø"&Ø#'Ø$(ØØ $Ø!ñX
ð ðX
ð ð	X
ð
 ðX
ð ðX
ð !ðX
ð ðX
ð !ðX
ð  ðX
ð !ðX
ð "ðX
ð ðX
ð ðX
ð ðX
ð  
ó!X
ðz "Ø Ø!Ø Ø#'Ø!%Ø#'Ø"&Ø#'Ø $Ø!%Ø!ñI
ð ðI
ð ð	I
ð
 ðI
ð ðI
ð !ðI
ð ðI
ð !ðI
ð  ðI
ð !ðI
ð ðI
ð ðI
ð ðI
ð 
óI
ð\ "Ø!Ø Ø Ø!ØØ $Ø#'Ø!%Ø#'Ø"&Ø'+Ø#'Ø#Ø"Ø$(Ø $Ø!ñ)` ð ð` ð ð	` ð
 ð` ð ð` ð ð` ð ð` ð ð` ð !ð` ð ð` ð !ð` ð  ð` ð %ð` ð !ð` ð  ð!` ð" ð#` ð$ "ð%` ð& ð'` ð( ð)` ð* 
ó+` ðD ð "Ø!Ø Ø Ø!ØØ $Ø#'Ø!%Ø#'Ø"&Ø'+Ø#'Ø#Ø"Ø $Ø!ñ'b(ð ðb(ð ð	b(ð
 ðb(ð ðb(ð ðb(ð ðb(ð ðb(ð !ðb(ð ðb(ð !ðb(ð  ðb(ð %ðb(ð !ðb(ð  ð!b(ð" ð#b(ð$ ð%b(ð& ð'b(ð( 
%ò)b(ó ðb(ðH OWõ 
ð8 :Aõ Eð4 "Ø Ø!Ø Ø#'Ø!%Ø#'Ø"&Ø#'Ø$(ØØ'+Ø!ñG?ð ðG?ð ð	G?ð
 ðG?ð ðG?ð !ðG?ð ðG?ð !ðG?ð  ðG?ð !ðG?ð "ðG?ð ðG?ð %ðG?ð ðG?ð  
÷!G?r.   rÝ   N),Ú
__future__r   Ú
contextlibr   r   Údataclassesr   Útypingr   r   Úapify_client._docsr	   Úapify_client._modelsr
   r   r   r   Úapify_client._paginationr   r   r   Ú/apify_client._resource_clients._resource_clientr   r   Úapify_client._utils.cryptor   Úapify_client._utils.httpr   r   Úcollections.abcr   r   Údatetimer   Úapify_client._literalsr   Úapify_client.http_clientsr   Úapify_client.typesr   r   r   r1   rÝ   r-   r.   r/   ú<module>rú      s«   ðÝ "ç :Ý !ß %å )ß gÓ gß eÑ eß _Ý Gß Gáß7Ý"å4Ý6ß<ñ ˆGÓØ
÷<ð <ó ó ð<ñ6 ÐÓôl?�Nó l?ó  ðl?ñ^ ÐÓôn?Ð,ó n?ó  ñn?r.   