Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

UGentPortaal/python-mediamosa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-mediamosa

mediamosa is a python wrapper for accessing a mediamosa (http://www.mediamosa.org) api.

Installation

Install mediamosa as follows:

pip install mediamosa

Getting Started

Start by creating a connection to a mediamosa api.

the .authentication() method returns a boolean indicating if the username and password were accepted by the server.

You can now query your assets

Each direct child of an <item> can be accessed as an attribute:

You can also indiviually request specific assets by querying the api object:

Mediafiles connected to the asset can also be queried:

You can also individually request mediafiles by querying the api object:

Playing a mediafile is done as follows:

This will by default return javascript code necessary to play the mediafile.

Errors

If anything goes wrong with executing the queries, the API will throw a mediamosa.api.ApiException.

Bugs and Feature requests

Warning

The API wrapper is in early stages of development and will require a few more iterations to be considered stable

For help, issues and feature requests, please go to http://www.github.com/UGentPortaal/python-mediamosa.

Contributing

Pull requests may be submitted to the develop branch at our github project. Make sure the code and functionality are sufficiently documented.

About

A Python wrapper for the MediaMosa API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages