Coverage for src/pymetallic/__init__.py: 50%
6 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-10 16:53 -0400
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-10 16:53 -0400
1#!/usr/bin/env python3
2"""
3PyMetallic: Python bindings for Apple Metal using swift-cffi
4Architecture inspired by PyOpenCL for familiar API design
5"""
8# Public API now re-exported from metallic.py
9from .metallic import (
10 MetalError,
11 Device,
12 CommandQueue,
13 Buffer,
14 Library,
15 Function,
16 ComputePipelineState,
17 CommandBuffer,
18 ComputeCommandEncoder,
19 run_simple_compute_example,
20)
22__all__ = [
23 "MetalError",
24 "Device",
25 "CommandQueue",
26 "Buffer",
27 "Library",
28 "Function",
29 "ComputePipelineState",
30 "CommandBuffer",
31 "ComputeCommandEncoder",
32 "run_simple_compute_example",
33]
35if __name__ == "__main__":
36 print("PyMetallic: Python bindings for Apple Metal")
37 print(
38 "Note: This requires the Swift bridge library (libpymetallic.dylib) to be compiled and available"
39 )
40 # Uncomment to run example (requires compiled bridge library)
41 run_simple_compute_example()