
    lc                         d Z ddlZ ej        e          Ze                     ej                               ddlmZ ddl	m
Z
mZmZmZ dZda	 	 	 	 	 ddZg dZej        ZdS )a?  
Utilities for streaming to/from several file-like data storages: S3 / HDFS / local
filesystem / compressed files, and many more, using a simple, Pythonic API.

The streaming makes heavy use of generators and pipes, to avoid loading
full file contents into memory, allowing work with arbitrarily large files.

The main functions are:

* `open()`, which opens the given file for reading/writing
* `parse_uri()`
* `s3_iter_bucket()`, which goes over all keys in an S3 bucket in parallel
* `register_compressor()`, which registers callbacks for transparent compressor handling

    N)version   )open	parse_uri
smart_openregister_compressorzsmart_open.s3_iter_bucket is deprecated and will stop functioning
in a future version. Please import iter_bucket from the smart_open.s3 module instead:

    from smart_open.s3 import iter_bucket as s3_iter_bucket

F       c           	          ddl m} t          s!t                              t
                     da || ||||||          S )z3Deprecated.  Use smart_open.s3.iter_bucket instead.r   )iter_bucketT)bucket_nameprefix
accept_key	key_limitworkersretriessession_kwargs)s3r   _WARNEDloggerwarning_WARNING)r   r   r   r   r   r   r   r   s           3lib/python3.11/site-packages/smart_open/__init__.pys3_iter_bucketr   -   sc       x   ;%       )r   r   r   r   r   )r	   NNr
   r   )__doc__logging	getLogger__name__r   
addHandlerNullHandlerr   r   smart_open_libr   r   r   r   r   r   __all____version__ r   r   <module>r'      s      
 
	8	$	$   %'%'' ( ( (       L L L L L L L L L L L L 
    4   !r   