A way to store images in YAML.
Project description
YAMLImg
A way to store images in YAML.
I made this after seeing Roadcrosser's JSON-G because it was too inspiring to ignore this opportunity.
Installation
pip install yamlimg
or from GitHub
pip install git+https://github.com/vcokltfre/yamlimg
Usage
Dumping an image:
yamlimg dump <image> [--output=output.yaml]
Loading an image:
yamlimg load <image> [--output=image.png]
Using the programmatic API:
from PIL import Image
from yamlimg import yaml_to_image, image_to_yaml
# Open an image
image = Image.open("image.png")
# Convert the image to yaml
yaml = image_to_yaml(image)
# Convert the yaml back to an image
image = yaml_to_image(yaml)
Note
There is no point in using this. It was made as a joke and I implore you not to ever actually use this for anything other than a joke.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yamlimg-1.0.2.tar.gz.
File metadata
- Download URL: yamlimg-1.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.16.12-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee49db0bfce26596de1687730006ea2b61dfa32187ed255a7a7ec279db1b554d
|
|
| MD5 |
5c235c3d4970ebce30da532dbc6c3e33
|
|
| BLAKE2b-256 |
20e609f52028b1be5ca0ddbc28770c88ce90bfd2649c3a3887b9e2fc5f098900
|
File details
Details for the file yamlimg-1.0.2-py3-none-any.whl.
File metadata
- Download URL: yamlimg-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.16.12-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c963afb135ac815ae46bcc9de939b1d123dd3766d714b9aa58002e977e196a07
|
|
| MD5 |
995cf8b5ecafe68d7b38d42921493081
|
|
| BLAKE2b-256 |
548dad82ffaaeb9a37094d8f61a60353ceb55afaca6aef153ade08fe87f11de9
|