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.1.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.1-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycantus-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b9fefe74247700be025cebae0fddd7fe7bddafa51618a6bc02e123d8272cba75
MD5 caa17376a50cd679869ef1c1ec9e5300
BLAKE2b-256 e1b066dd939d41834faef4055d7bc9ae8cde543f01a87f8d6f4136bc2283fe6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycantus-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 24.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53b7b5f9fe811ef49d3bfcd0c1866c5b2de0305f9f9fa890310665a8922f034d
MD5 690d23f84db13be869e9906133fca836
BLAKE2b-256 a55f57eee383c271cd763857a85ccfd1f973995a0d14628803a8724e6b642ea7

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