o
    i                     @   s   d Z dZde ZddlZddlZddlZddlZejj	Z	ej
jZejjZejjZejjZejjZejjZejjZejjZejjZdd e  D dg ZdS )a3  Fast Avro file iteration.

Example usage::

    # Reading
    import fastavro

    with open('some-file.avro', 'rb') as fo:
        reader = fastavro.reader(fo)
        schema = reader.schema

        for record in reader:
            process_record(record)


    # Writing
    from fastavro import writer

    schema = {
        'doc': 'A weather reading.',
        'name': 'Weather',
        'namespace': 'test',
        'type': 'record',
        'fields': [
            {'name': 'station', 'type': 'string'},
            {'name': 'time', 'type': 'long'},
            {'name': 'temp', 'type': 'int'},
        ],
    }

    # 'records' can be an iterable (including generator)
    records = [
        {u'station': u'011990-99999', u'temp': 0, u'time': 1433269388},
        {u'station': u'011990-99999', u'temp': 22, u'time': 1433270389},
        {u'station': u'011990-99999', u'temp': -11, u'time': 1433273379},
        {u'station': u'012650-99999', u'temp': 111, u'time': 1433275478},
    ]

    with open('weather.avro', 'wb') as out:
        writer(out, schema, records)
)      r   z%s.%s.%s    Nc                 C   s   g | ]	}| d s|qS )_)
startswith).0n r   W/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/fastavro/__init__.py
<listcomp>?   s    r
   __version__)__doc____version_info__r   fastavro.readfastavrofastavro.writefastavro.schemafastavro.validationreadreader	json_readjson_readerblock_readerschemaless_readerwritewriter
json_writejson_writerschemaless_writeris_avro
validationvalidateschemaparse_schemalocalskeys__all__r   r   r   r	   <module>   s$    *