Skip to main content

Package for reading vtmedia XML files describing a movie/music media library

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

Uploaded Source

Built Distribution

medialibrary-0.2.3-py3-none-any.whl (148.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: medialibrary-0.2.3.tar.gz
  • Upload date:
  • Size: 56.6 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.3.tar.gz
Algorithm Hash digest
SHA256 a891ac4cb01ba8138553fc93695d3ed99ac8922aad7b0ede3d62a63649748c90
MD5 4a00a23e472fe34a20a619059007beee
BLAKE2b-256 e280522502b85ac9c7850555544dbc8ed2af0c7221fe0478cf43d68ccd9370b6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: medialibrary-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 148.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c14799cd4dcf189baec69e599ff0b85838b98225d778a25b35bd1b6e156dd2b
MD5 4f3a298dd9c7b9488914390a1a4dbded
BLAKE2b-256 37f992e700f69a7feb601a93195d2e844c537f11db32a05fb3f8cd6f3a184efb

See more details on using hashes here.

Provenance

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