Metadata-Version: 2.1
Name: pyxi
Version: 0.1.3
Summary: A small library for interacting with `.pyxel` files from PyxelEdit.
Home-page: https://github.com/robertwayne/pyxi
Author: Rob Wagner
Author-email: rob.wagner@outlook.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# Pyxi
[![PyPI version](https://badge.fury.io/py/pyxi.svg)](https://badge.fury.io/py/pyxi) [![Documentation Status](https://readthedocs.org/projects/pyxi/badge/?version=latest)](https://pyxi.readthedocs.io/en/latest/?badge=latest)

`pyxi` is a small library for interfacing with PyxelEdit `.pyxel` files in an object-oriented manner.
Currently it allows for viewing all attributes of a `.pyxel` file, modifying values, and repacking the file
into its original format for use within PyxelEdit.

### Examples
Editing tile width and height on an image.
```python
from pyxi import image

p = image.PyxelImage('test_8px.pyxel')  # assume the tiles are 8x8
p.name = 'test_16px'
p.canvas.tile_width = 16
p.canvas.tile_height = 16
p.save()  # the .pyxel file tiles are now 16x16 in a file called test_16px.pyxel
```

Loading a `.pyxel` file as a texture in `arcade`.
```python
import arcade
from pyxi import image

p = image.PyxelImage('test_8px.pyxel')
texture = p.get_tile()  # returns a Pillow Image object
player = arcade.Sprite(scale=4)
player.texture = arcade.Texture(name='S8dhS7dja', image=texture)
```


