Image & Video Utils
This repository provides a Python module for interacting with image and video files using sensible defaults and clear, consistent interfaces.
✨ Features
- An
ImageResolutionclass to represent the resolution of images or video frames. - A
reshapefunction to resize images easily. - A
VideoMetadataclass to read video information such as the number of frames, frame rate, or codec. - Multiple functions to read and write videos as NumPy arrays, image files, or video files.
- A simple CLI to extract frames or encode videos.
📦 Installation
The module
You can install image_video_utils directly from source using pip:
pip install image-video-utils
You can also use another Python package manager such as uv:
uv add image-video-utils
The CLI
You can install the CLI tool with pipx or uv:
uv tool install image-video-utils
🧪 Usage
The module
Import the required utilities in your Python code:
from image_video_utils.video import write_video_from_iterable
The CLI
The CLI is available via:
ivutils --help
📚 Documentation
The documentation is generated using pdoc and is available as a GitLab Page.
Release files for image-video-utils 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| image_video_utils-1.0.1.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| image_video_utils-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.1 kB
Release files / image_video_utils-1.0.1.tar.gz
| Download URL | image_video_utils-1.0.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f314b3440f65d6b2c40f9aae9eaa7d6b54db4474e0bd359bfabce066b39777c
|
|
BLAKE2b-256 checksum How to use checksums |
5805e5e6c95097ef1f41de4ebc6a97c8369dcd5fbeb41fc20f1fc4547307eff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / image_video_utils-1.0.1-py3-none-any.whl
| Download URL | image_video_utils-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e9c4d19eb0794e5dd05efa1624cfca0d204f9e0b92b2dea5c8036794d43359f
|
|
BLAKE2b-256 checksum How to use checksums |
38cff8cc0f794cf4a3a762b97afdec5e11803479d4ef0facb21aba4d23a2a3d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|