o
    i                     @   s   d Z ddlmZmZmZ ddlmZmZ ddlm	Z	 dZ
	 dd Zd	d
 Ze Z[ejZejZejZejZejZejZejZejZejZejZejZejZejZejZdS )a  
Iterative JSON parser.

Main API:

- ``ijson.parse``: iterator returning parsing events with the object tree context,
  see ``ijson.common.parse`` for docs.

- ``ijson.items``: iterator returning Python objects found under a specified prefix,
  see ``ijson.common.items`` for docs.

Top-level ``ijson`` module exposes method from the pure Python backend. There's
also two other backends using the C library yajl in ``ijson.backends`` that have
the same API and are faster under CPython.
    )	JSONErrorIncompleteJSONErrorObjectBuilder)	coroutinesendable_list   )__version__)yajl2_c
yajl2_cffiyajl2yajlpythonc                 C   s   ddl }|d|  S )z$Import the backend named ``backend``r   Nzijson.backends.)	importlibimport_module)backendr    r   K/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/ijson/__init__.pyget_backend   s   r   c               	   C   sR   dd l } d| jv rt| jd S tD ]}zt|W   S  ty$   Y qw td)Nr   IJSON_BACKENDzno backends available)osenvironr   ALL_BACKENDSImportError)r   r   r   r   r   _default_backend!   s   
r   N)__doc__ijson.commonr   r   r   ijson.utilsr   r   versionr   r   r   r   r   basic_parsebasic_parse_coroparse
parse_coroitems
items_corokvitemskvitems_corobasic_parse_asyncparse_asyncitems_asynckvitems_asyncbackend_namer   r   r   r   <module>   s0    

