Metadata-Version: 2.4
Name: rasterm
Version: 1.2.0
Summary: Python bindings for rasterm terminal graphics
Author: rasterm
License: Apache-2.0
Keywords: terminal,graphics,sixel
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# rasterm for Python

This package is a dependency free, typed wrapper over rasterm's stable C ABI. It accepts
any C contiguous Python buffer, including `bytes`, `bytearray`, `memoryview`, and
C contiguous NumPy arrays without requiring NumPy.

The PyPI wheel includes the matching Windows x64 native library:

```powershell
python -m pip install rasterm
```

For a source checkout, build the optional shared C ABI and point the package at it:

```powershell
cmake -S ../.. -B ../../build/bindings -DRASTERM_BUILD_SHARED_C_API=ON
cmake --build ../../build/bindings --config Release --target rasterm-shared
$env:RASTERM_LIBRARY = Resolve-Path ../../build/bindings/Release/rasterm.dll
python -m pip install -e .
python examples/gradient.py
```

`Engine` borrows a frame only during `render`. `Presenter.submit` is also safe with a
temporary buffer because the C ABI copies the complete submission before returning.
 
