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
Installing
Installation 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
Built Distribution
File details
Details for the file medialibrary-0.2.5.tar.gz
.
File metadata
- Download URL: medialibrary-0.2.5.tar.gz
- Upload date:
- Size: 65.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02bcb6318b58856c13e7a0b27b11f5b45ab4d1cc665db7e4d81012a9d99e3ecb |
|
MD5 | fdf8bc65ce705a744821072dcff63209 |
|
BLAKE2b-256 | 96d47e7f9329f0d55a2e27e23abac2902233b6062e35cc5f434b8c16614592e4 |
Provenance
File details
Details for the file medialibrary-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: medialibrary-0.2.5-py3-none-any.whl
- Upload date:
- Size: 177.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c854e2167297ab9c879e8e408fbfddd23a7e3c0556cbb452792a1fc27c1970e |
|
MD5 | ebe6955b3aeac86a7d70b598d2276cd6 |
|
BLAKE2b-256 | 76f5ab06ebb721ed7b9a7ada049167b83823689f0af6c29f1cb60bccd6cace9d |