Skip to main content

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 Source is 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 Chant is 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

  1. clone the repository

    git clone https://github.com/dact-chant/PyCantus

  2. go to the root directory of the project

  3. run the following command

    pip install -e .

  4. 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

pycantus-0.0.2.tar.gz (101.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycantus-0.0.2-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file pycantus-0.0.2.tar.gz.

File metadata

  • Download URL: pycantus-0.0.2.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

Hashes for pycantus-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7e75fb1117217f47a68cd8e984d87aa013c0baf1fdad0e9afaf553efa4585d38
MD5 f9a097786f4494ea1ef34cf36fbfa810
BLAKE2b-256 16929e9731db3b8c4fb3ac03ee69c32b09ad44018b869878171537686ecddd88

See more details on using hashes here.

File details

Details for the file pycantus-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pycantus-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for pycantus-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8660321ed2fefeb7fddfd2fd524723a811b3721675bef0bc5ffb2403eea74dc0
MD5 d4fd1d69fe32cc4ab79cc2b2ab8efbcc
BLAKE2b-256 83c10a22f0ca128ff826ce15be4966170be7537db01be5efde707839e9304a7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page