Name | medialibrary JSON |
Version |
0.2.1
JSON |
| download |
home_page | |
Summary | Library for reading vtmedia XML files |
upload_time | 2023-12-11 00:02:00 |
maintainer | |
docs_url | None |
author | |
requires_python | >3.8 |
license | MIT License |
keywords |
xml
movies
dvds
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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](https://github.com/cjcodeproj/vtmedia-schema) | Schema and XML validation for media data |
| [mediadata](https://github.com/cjcodeproj/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](https://img.shields.io/pypi/v/medialibrary)](https://pypi.org/project/medialibrary/)
## 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.
Raw data
{
"_id": null,
"home_page": "",
"name": "medialibrary",
"maintainer": "",
"docs_url": null,
"requires_python": ">3.8",
"maintainer_email": "",
"keywords": "xml,movies,dvds",
"author": "",
"author_email": "Chris J <cjcodeproj@fastmail.com>",
"download_url": "https://files.pythonhosted.org/packages/e0/67/2138a1d54b9fc288e070f6bceb2371c46deded1e4722884c8fb89f1aa391/medialibrary-0.2.1.tar.gz",
"platform": null,
"description": "# Media Library Reader\n\nThe `medialibrary` module is a Python module for reading files containing entertainment media\ndata adhering to the vtmedia schema; which is an XML schema that records details on movies\nand other works of art.\n\n```\n$ python -m media.tools.movies.list --sort runtime --random 5 --stats --mediapath ~/xml/movies\nTitle Year Runtime Genre \n================================================== ==== ======== ==================================================\nTotal Excess: How Carolco Changed Hollywood 2020 0:59:00 [NONFICTION] Documentary \"Hollywood Tell-All\" \nThe Big Easy 1986 1:40:29 [FICTION] Drama/Comedy/Crime \"Murder Investigation\"\nKlute 1971 1:54:10 [FICTION] Mystery/Thriller \"Witness Protection\" \nAir Force One 1997 2:04:36 [FICTION] Action/Thriller \"President Plane Thriller\"\nThe Hot Spot 1990 2:10:21 [FICTION] Drama/Thriller/Romance \"Con Artist Scheming\"\n================================================== ==== ======== ==================================================\n Movie count : 545\n Sample size : 5 ( 0.92%)\n```\n\nThe following repositories contain the XMLSchema definition and a sample dataset for testing the\ncode.\n\n\n| Repository | Purpose |\n| --- | --- |\n| [vtmedia-schema](https://github.com/cjcodeproj/vtmedia-schema) | Schema and XML validation for media data |\n| [mediadata](https://github.com/cjcodeproj/mediadata) | A large dataset of sample media/movie data |\n\n\nNeither of these are required for module operation, but they both contain sample data and documentation on\nhow to build your own files.\n\n\n## Package Distribution\n\n[![PyPi version](https://img.shields.io/pypi/v/medialibrary)](https://pypi.org/project/medialibrary/)\n\n## Installing\n\nInstallaiton of the module wheel file.\n\n```\n$ python -m pip install --user medialibrary\n```\n\n### Quick Start\n\nOnce you have the software installed, and you have a repository (either your own, or something you downloaded), you can\nimmediately start using the software.\n\n```\n$ export MEDIAPATH=~/xml/mediafiles\n$ python -m media.tools.movies.list\n```\n\n\n## Building\n\nSee the BUILDING.md file in the source code distribution.\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Library for reading vtmedia XML files",
"version": "0.2.1",
"project_urls": {
"bug tracker": "https://github.com/cjcodeproj/medialibrary/issues",
"changelog": "https://github.com/cjcodeproj/medialibrary/blob/main/CHANGELOG.md",
"homepage": "https://github.com/cjcodeproj/medialibrary",
"repository": "https://github.com/cjcodeproj/medialibrary"
},
"split_keywords": [
"xml",
"movies",
"dvds"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c3e03fe49f0dff82889a657bdb5132348a63c9f62b619b92b0fff0bce0c98f64",
"md5": "040d749a75e5923c60a2de4264a5cc12",
"sha256": "59925642808d1377a519989de3c72639d985cac7d3096167b0add34e10418667"
},
"downloads": -1,
"filename": "medialibrary-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "040d749a75e5923c60a2de4264a5cc12",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">3.8",
"size": 139754,
"upload_time": "2023-12-11T00:01:58",
"upload_time_iso_8601": "2023-12-11T00:01:58.428084Z",
"url": "https://files.pythonhosted.org/packages/c3/e0/3fe49f0dff82889a657bdb5132348a63c9f62b619b92b0fff0bce0c98f64/medialibrary-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e0672138a1d54b9fc288e070f6bceb2371c46deded1e4722884c8fb89f1aa391",
"md5": "830c1e51bfd2eb66e2cf0070c15ce193",
"sha256": "e02aa527390986025a526d36534790e415a0f2b7566b2886a98a1209978337b4"
},
"downloads": -1,
"filename": "medialibrary-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "830c1e51bfd2eb66e2cf0070c15ce193",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">3.8",
"size": 53310,
"upload_time": "2023-12-11T00:02:00",
"upload_time_iso_8601": "2023-12-11T00:02:00.766367Z",
"url": "https://files.pythonhosted.org/packages/e0/67/2138a1d54b9fc288e070f6bceb2371c46deded1e4722884c8fb89f1aa391/medialibrary-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-11 00:02:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cjcodeproj",
"github_project": "medialibrary",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "medialibrary"
}