API client for accessing data from Dunya
Project description
pycompmusic
Introduction
API Interface to CompMusic Dunya. Dunya is a research project that studies several world music traditions from the point of view of the information technologies, with the aim to facilitate the cataloging and discovery of music recordings within large repositories. For more information: http://compmusic.upf.edu
Authors
PyCompmusic was written by members of the Music Technology Group at Universitat Pompeu Fabra (https://www.upf.edu/web/mtg/).
License
Pycompmusic is Copyright 2013-2024 Music Technology Group - Universitat Pompeu Fabra
Pycompmusic is released under the terms of the MIT License. See the LICENSE file for more information.
Installation
This library is designed for use with Python 3
It is recommended to install pycompmusic and dependencies into a virtualenv. Do it like this:
python -m venv venv
source venv/bin/activate
python setup.py install
Alternatively, install directly from pypi:
pip install compmusic
Documentation
There are sphinx docs available in the docs
directory. Install sphinx to be able to build them
pip install sphinx
to build the docs run
make html
from the root directory.
API Quick reference
In order to use the API you need to register for a user account with Dunya. You can register at https://dunya.compmusic.upf.edu/user/register/ . Once your account is active you can start using the api.
In this repository you can find the code to access the API with python. For example to access recordings in the makam collection:
from compmusic import dunya
dunya.set_token("<your_token>")
recordings = dunya.makam.get_recordings()
In order to get your API token you have to log in to dunya (https://dunya.compmusic.upf.edu/social/login/) and then go to your profile: https://dunya.compmusic.upf.edu/social/profile/ where you will find your token.
Project details
Release history Release notifications | RSS feed
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 compmusic-0.4.tar.gz
.
File metadata
- Download URL: compmusic-0.4.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f3dc277e224be0aaa6e84f4ecc57fad1a1edd6604d19543f9844823dfca418 |
|
MD5 | 31f55c07e568ff22aedf4af99bef5fdf |
|
BLAKE2b-256 | 2e77c0ff261ff927613921dc8f8f2c38210f7d1c2e37f02861919ff8d2b3ced9 |
File details
Details for the file compmusic-0.4-py3-none-any.whl
.
File metadata
- Download URL: compmusic-0.4-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46b5f40648b10a2cfc298ade96b81dfbd73b97feb3d6a9cd9dd315b1564467c0 |
|
MD5 | 831e0f99b761e433e4fcc25e56b67908 |
|
BLAKE2b-256 | c092ed1b0b1ee09298cd4ce25d755f09f8e2a8391445d089f84f94008775c143 |