Skip to main content

vsutillib: module with utility functions and classes

https://img.shields.io/pypi/v/vsutillib.svg https://img.shields.io/pypi/pyversions/vsutillib.svg

These are a collection of functions and classes that I use on my applications to made easier to maintain I decided to release it and install as a dependency of apps like mkvbatchmultiplex.

Description

A range of functions and classes with a variety of uses for example:

  • functions

    • getFileList - return the files on a directory in

      list of pathlib.Path objects

    • findFile - find a file in the system Path

      return a pathlib.Path object if found

    • getExecutable - find executable file

      in PATH and the normal installation paths for Windows and macOS for linux is like findFile

  • classes

    • RunCommand - execute command in subprocess and capture

      output optionally apply regular expression searches and apply a supplied function to receive every line read and process them as needed

    • ConfigurationSettings - maintain a set of ConfigurationSettings

      in a dictionary and saved it in xml file

  • utilities

    • mkvrun - CLI utility to execute MKVToolNix generated

      command line. MKVBatchMultiplex is a GUI implementation of this and the main reason this module goes public.

    • apply2files - apply a command to all files in the directory

      specified in recursive by default

and so on…

Installation

pip install vsutillib

This install all sub packages.

You can also install any individual packages.

pip install vsutillib-files
pip install vsutillib-log
pip install vsutillib-macos
pip install vsutillib-media
pip install vsutillib-network
pip install vsutillib-processing
pip install vsutillib-vsxml

Main development platform is Windows but limited testing show they work on Lin Linux and macOS. The only OS specific is vsutillib.macos but it run on other operating systems it won’t raise exception the results will mainly be None.

Dependencies

  • lxml 4.3.3 or greater on system XmlDB simple xml database

  • pymediainfo 4.0 or greater

  • Python 3.5->3.7

  • MediaInfo tested with versions 17.10->18.12. This is only for Linux a dependency of pymediainfo.

Usage

Import the the library in your program::

from vsutillib import files
from vsutillib import log
from vsutillib import macos
from vsutillib import media
from vsutillib import network
from vsutillib import process
from vsutillib import xml

Roadmap

Document all classes and functions.

Metadata

Release files for vsutillib 1.6.4

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

Built distribution (wheel)

Table of built distributions (wheels) for vsutillib 1.6.4
File Interpreter ABI Platform
vsutillib-1.6.4-cp38-none-any.whl CPython 3.8 none any Details

Release files / vsutillib-1.6.4-cp38-none-any.whl

Download URL vsutillib-1.6.4-cp38-none-any.whl
Size 83.8 kB
Tags CPython 3.8
SHA-256 checksum
How to use checksums
9bee5adc6b5c1983d93ba9729cb70cdfbe0a13fa312a389efde6f42ffe66dab8
BLAKE2b-256 checksum
How to use checksums
b3a690cfa0eb456049ecb11e1016837606c9b5b13106bb341c3a6ea761282779
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.6.4 This release

1 release file

1.6.3

2 release files

1.6.0

1 release file

1.5.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

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