Skip to main content

Library for reading vtmedia XML files

Project description

Media Library Reader

The medialibrary module is a Python module for reading files containing entertainment media data adhering to the vtmedia schema; which is an XML schema that records details on movies and other works of art.

$ python -m media.tools.movies.list --sort runtime --random 5 --stats --mediapath ~/xml/movies
Title                                              Year Runtime  Genre                                             
================================================== ==== ======== ==================================================
Total Excess: How Carolco Changed Hollywood        2020  0:59:00 [NONFICTION] Documentary "Hollywood Tell-All"     
The Big Easy                                       1986  1:40:29 [FICTION] Drama/Comedy/Crime "Murder Investigation"
Klute                                              1971  1:54:10 [FICTION] Mystery/Thriller "Witness Protection"   
Air Force One                                      1997  2:04:36 [FICTION] Action/Thriller "President Plane Thriller"
The Hot Spot                                       1990  2:10:21 [FICTION] Drama/Thriller/Romance "Con Artist Scheming"
================================================== ==== ======== ==================================================
  Movie count :   545
  Sample size :     5  ( 0.92%)

The following repositories contain the XMLSchema definition and a sample dataset for testing the code.

Repository Purpose
vtmedia-schema Schema and XML validation for media data
mediadata A large dataset of sample media/movie data

Neither of these are required for module operation, but they both contain sample data and documentation on how to build your own files.

Package Distribution

PyPi version

Installing

Installaiton of the module wheel file.

$ python -m pip install --user medialibrary

Quick Start

Once you have the software installed, and you have a repository (either your own, or something you downloaded), you can immediately start using the software.

$ export MEDIAPATH=~/xml/mediafiles
$ python -m media.tools.movies.list

Building

See the BUILDING.md file in the source code distribution.

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

medialibrary-0.2.1.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

medialibrary-0.2.1-py3-none-any.whl (139.8 kB view details)

Uploaded Python 3

File details

Details for the file medialibrary-0.2.1.tar.gz.

File metadata

  • Download URL: medialibrary-0.2.1.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for medialibrary-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e02aa527390986025a526d36534790e415a0f2b7566b2886a98a1209978337b4
MD5 830c1e51bfd2eb66e2cf0070c15ce193
BLAKE2b-256 e0672138a1d54b9fc288e070f6bceb2371c46deded1e4722884c8fb89f1aa391

See more details on using hashes here.

File details

Details for the file medialibrary-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: medialibrary-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 139.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for medialibrary-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59925642808d1377a519989de3c72639d985cac7d3096167b0add34e10418667
MD5 040d749a75e5923c60a2de4264a5cc12
BLAKE2b-256 c3e03fe49f0dff82889a657bdb5132348a63c9f62b619b92b0fff0bce0c98f64

See more details on using hashes here.

Supported by

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