Skip to main content

Command Line utility for cost of aws.

Project description

h5cv

PyPI version Build Status

show hdf5 file in image file.

h5cv command

list keys

$ h5cv -H test.h5 ls [-r] [key]

show dataset in hdf5.

$ h5cv -H test.h5 show /some_group/test.jpg.np

imgcat in hdf5.

$ h5cv -H test.h5 imgcat /some_group/test.jpg

write in hdf5.

$ h5cv -H test.h5 [--store [numpy|binary]] write -g 'images/*.jpg' [--compression gzip] [--append]

custom generator

from h5cv.core import Core
from h5cv.generator import Generator
from PIL import Image


class MyGenerator(Generator):
    def __getitem__(self, path):
        print(f"custom generate {path}")
        return Image.open(path)

Core(
    hdf5="test.h5"
).write(
    "evaluation/*.jpg",
    generator=MyGenerator(),
    compression="gzip"
)

Installation

pip install h5cv

Installation from github

pip install git+https://github.com/toyama0919/h5cv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

h5cv-0.1.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page