Skip to main content

This library is used for lots of shared functionality around parsing TV shows and movies

Project description

Video Utils

Test Status codecov

This library provides utilities for dealing with TV show and Movie files and the metadata around them.

Example Usage

from video_utils import FileMap

f = FileMap("/path/to/videos")
f.load() # By default, this will load the cached metadata, and then update files that have changed in size

for directory in f.contents:
    for video in f.contents[directory]:
        codec = video.codec
        print(codec.pretty_name) # x265
        print(video.quality) # 1080p
        print(video.full_path)
        print(video.size) # in bytes
        print(video)
        video.refresh() # force a refresh of the video metadata, will only occur if filesize has changed.

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

video_utils-2.0.12.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

video_utils-2.0.12-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

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