Skip to main content

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.

Metadata

Release files for compmusic 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compmusic 0.4
File Size Uploaded Provenance
compmusic-0.4.tar.gz 31.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for compmusic 0.4
File Interpreter ABI Platform
compmusic-0.4-py3-none-any.whl Python 3 none any Details

Total release size: 49.5 kB

Release files / compmusic-0.4.tar.gz

Download URL compmusic-0.4.tar.gz
Size 31.7 kB
Tags Source
SHA-256 checksum
How to use checksums
12f3dc277e224be0aaa6e84f4ecc57fad1a1edd6604d19543f9844823dfca418
BLAKE2b-256 checksum
How to use checksums
2e77c0ff261ff927613921dc8f8f2c38210f7d1c2e37f02861919ff8d2b3ced9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / compmusic-0.4-py3-none-any.whl

Download URL compmusic-0.4-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46b5f40648b10a2cfc298ade96b81dfbd73b97feb3d6a9cd9dd315b1564467c0
BLAKE2b-256 checksum
How to use checksums
c092ed1b0b1ee09298cd4ce25d755f09f8e2a8391445d089f84f94008775c143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for compmusic 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page