This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import AsyncIterator | |
import pyarrow as pa | |
class AsyncMessageReader(AsyncIterator[pa.Message]): | |
"""Wraps an async iterable of bytes into an async iterable of PyArrow IPC messages. | |
From this it is possible to build an AsyncRecordBatchStreamReader. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools_zig import ZigExtension, zig_build_ext | |
def build(setup_kwargs): | |
setup_kwargs["ext_modules"] = [ZigExtension("mypackage._mymodule", build_zig="path/to/build.zig")] | |
setup_kwargs["cmdclass"] = {"build_ext": zig_build_ext} |