PyCantus: A Python library designed to enhance accessibility of Gregorian chants for both coders and non-coders.
Project description
PyCantus
PyCantus is envisioned as a Python API to the Cantus family of databases that makes it easy to use this data for computational processing. Primarily we intend this to be used for research in digital chant scholarship, but of course it can be used to build chant-centric apps, new websites, extract data for comparative studies across different repertoires, study liturgy, etc.
Data model
At the heart of the library is the Cantus Database and Cantus Index data model. The two elementary objects in this model are a Chant, and a Source.
-
A
Sourceis a physical manuscript or print that contains Gregorian chant. Primarily, this will be a liturgical book such as an antiphonary, gradual, or other sources. Fragments are, in principle, also sources. (Note: tonaries may get special handling.) -
A
Chantis one instance of a chant in a source. Typically it has a text, a melody (which is not necessarily transcribed), and a Cantus ID assigned, and it should link to a source in which it is found. It should align with the cantus API: https://github.com/DDMAL/CantusDB/wiki/APIs
Installing PyCantus library locally
-
clone the repository
git clone https://github.com/dact-chant/PyCantus -
go to the root directory of the project
-
run the following command
pip install -e . -
import the pycantus library and call its functionality
from pycantus import hello_pycantus hello_pycantus()
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycantus-0.0.3.tar.gz.
File metadata
- Download URL: pycantus-0.0.3.tar.gz
- Upload date:
- Size: 101.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b180563988312786199b6c62188ea04b72d061885abf5048b8d133c74bc628
|
|
| MD5 |
c56c30c7eed5c741a08279fb68b28d4a
|
|
| BLAKE2b-256 |
3eaacd9ee21ca32ea2fd04592cae3108b1081c4710f88ead69123093b5e49474
|
File details
Details for the file pycantus-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pycantus-0.0.3-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44d2ea2e8c1a7b793a57403c9673c06e7b0447099829b8941f67c297bc5ad4f1
|
|
| MD5 |
74f617bc0c6d6c4db58419e34e9c5ead
|
|
| BLAKE2b-256 |
0a4e77089360dbb5e645ab88d8e27db94dd6c06abfd62cc739b5352b4131ec84
|