Skip to main content

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

Project description

Video Utils

Supported Python Versions PyPI version

Workflow codecov Downloads

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

Example Usage

from video_utils import FileMap

def run():
    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.

run()

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.3.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

video_utils-2.3.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file video_utils-2.3.2.tar.gz.

File metadata

  • Download URL: video_utils-2.3.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.11 Linux/5.15.0-1037-azure

File hashes

Hashes for video_utils-2.3.2.tar.gz
Algorithm Hash digest
SHA256 fd197be86ab24b4957a24ab335edd788f5db064023e9e5f19e935333d73dc0c1
MD5 5aec7fdb6b5b7a67ec829da490fbf64b
BLAKE2b-256 6528f56e31132f1a6c092590f7805b5e909573c669bda88135b1b8998297e288

See more details on using hashes here.

File details

Details for the file video_utils-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: video_utils-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.11 Linux/5.15.0-1037-azure

File hashes

Hashes for video_utils-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80d8d44092c1f8e35b9421a852b78431c28f6bb2418e88a84d99eda8abf2734c
MD5 664985a3498c6355af7e53159027be84
BLAKE2b-256 981c2f9662d0c7eb63b17ad76a54415f61f0a1baa14c0cd9c1cc7d98c3f99477

See more details on using hashes here.

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