Metadata-Version: 2.1
Name: cutesnowflakes
Version: 0.2.1
Summary: Cute 3x3 images from snowflake IDs
Home-page: https://github.com/CodeBizarre/cutesnowflakes
Author: CodeBizarre
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: numpy (>=1.19<1.20)
Requires-Dist: pillow (==8.0)

![Tests](https://github.com/CodeBizarre/cutesnowflakes/workflows/Tests/badge.svg?branch=master)

(Note) Currently MacOS tests are failing under Python 3.9
# Cute Snowflakes

Have you ever wanted cute 3x3 images from snowflake IDs? Great, because here they are!

## Installation
Requires Python 3.6+

`pip install cutesnowflakes`

## Usage:
As a command line application:

`cutesnowflakes.py --encode 118999881999119725 red`

`cutesnowflakes.py --decode folder/my_file.png`

As a library:
```py
## CREATING A SNOWFLAKE
from cutesnowflakes import CuteSnowflakes

flake = CuteSnowflakes()

# Create the snowflake
image, meta = flake.encode("118999881999119725")
# Open it in the system photo viewer
image.show()
# Save the image with its metadata
image.save("my_image.png", pnginfo=meta)

## LOADING A SNOWFLAKE
from PIL.PngImagePlugin import PngImageFile

with PngImageFile("my_image.png") as fp:
    print(flake.decode(fp))
```


