
    \jD                     $   d Z ddlZddlZddlmZmZ  ej                  e      5   ed      Zddd        ej                  e	      Z
e
j                   ej                                ddlmZmZmZmZ dZda	 	 	 	 	 dd	Zg d
Zy# 1 sw Y   YxY w)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)PackageNotFoundErrorversion
smart_open   )open	parse_urir   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

Fc           	      n    ddl m} t        st        j	                  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           =/root/env/lib/python3.12/site-packages/smart_open/__init__.pys3_iter_bucketr   0   s=      x %     )r   r   r	   r   r   ) NN      )__doc__
contextlibloggingimportlib.metadatar   r   suppress__version__	getLogger__name__r   
addHandlerNullHandlersmart_open_libr   r   r   r	   r   r   r   __all__ r   r   <module>r+      s       <Z-. (,'K(
 
		8	$   %'%%' ( L L 
 4[( (s   	BB