Skip to main content

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.

Lint

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.

Metadata

Release files for yamlimg 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yamlimg 1.0.2
File Size Uploaded
yamlimg-1.0.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yamlimg 1.0.2
File Interpreter ABI Platform
yamlimg-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / yamlimg-1.0.2.tar.gz

Download URL yamlimg-1.0.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ee49db0bfce26596de1687730006ea2b61dfa32187ed255a7a7ec279db1b554d
BLAKE2b-256 checksum
How to use checksums
20e609f52028b1be5ca0ddbc28770c88ce90bfd2649c3a3887b9e2fc5f098900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.16.12-arch1-1

Release files / yamlimg-1.0.2-py3-none-any.whl

Download URL yamlimg-1.0.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c963afb135ac815ae46bcc9de939b1d123dd3766d714b9aa58002e977e196a07
BLAKE2b-256 checksum
How to use checksums
548dad82ffaaeb9a37094d8f61a60353ceb55afaca6aef153ade08fe87f11de9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.16.12-arch1-1

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page