Skip to main content

Tools for working with the Anglican lectionary.

Project description

pylect

Pylect is a CLI program that searches the Sunday, Holy Day, and Commemoration Lectionary in the Book of Common Prayer 2019 for any upcoming holy days within a given date range and returns their corresponding Scripture lessons. When desired, it can then fetch the text of the Scripture lessons and automatically copy them to the system clipboard.

Purpose

This is my first personal project! So, the purpose is to try my hand at making something from start to finish with nothing but my own inspiration to guide me. Practically speaking, the impetus for this project is the many hours I've spent creating bulletins and Scripture inserts for my local church. Calculating the correct day in the liturgical calendar, looking up the appropriate Scripture references in the lectionary, and then copying, pasting, and formatting the texts from different PDFs and websites has always been laborious and error-prone. This is my attempt to automate some of the boring stuff in my own life, and hopefully you find it useful too!

Installation

Pylect is a program written in Python 3. If you don't already have Python installed, head over to the official Python website and download the latest version.

Pylect is published on the Python Package Index, so the easiest way to install it is by simply running pip install pylect from the command line.

Next, you will need to get your own ESV API key from here if you want to be able to automatically fetch and copy the Scripture texts into your clipboard. Once you have the key, create a .env file in the root Pylect directory and add your key like so:

ESV_API_KEY=<your key goes here>

Usage

Run Pylect from the command line with python3 -m pylect <start_date> <end_date> or (more simply) with pylect <start_date> <end_date>. The start and end dates are optional arguments and must be in the format YYYY-MM-DD. When not given any arguments, the program will take the current date as a starting point and return all the liturgical days in the coming week. The results will be printed to your screen. You can select any of the days by entering their corresponding number and Pylect will fetch the text of the lessons for you and copy them to your system clipboard. When you're finished, simply enter q to quit the program.

Examples

With no optional arguments, Pylect will return all liturgical days ocurring over the next 7 days:

pylect

With the start date argument only, Pylect will return all liturgical days between June 8th and June 15th, 2024:

pylect 2024-06-08

With both the start and end date arguments, Pylect will return all liturgical days between June 8th and November 1st, 2024:

pylect 2024-06-08 2024-11-1

Credits

  • The Book of Common Prayer 2019 was produced by the Anglican Church of North America and is freely available for download at the official website.

  • The JSON-ified text of the Psalms is pulled from the Daily Office API created by Benjamin Locher. Much thanks to him for doing the hard work of wrangling the PDF text of the New Coverdale Psalter into a usable format!

Contributing

I would like to develop this into a tool that can be used by multiple denominations with multiple lectionaries, so feedback and pull requests are more than welcome!

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

pylect-0.3.3.tar.gz (258.0 kB view details)

Uploaded Source

Built Distribution

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

pylect-0.3.3-py3-none-any.whl (260.9 kB view details)

Uploaded Python 3

File details

Details for the file pylect-0.3.3.tar.gz.

File metadata

  • Download URL: pylect-0.3.3.tar.gz
  • Upload date:
  • Size: 258.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for pylect-0.3.3.tar.gz
Algorithm Hash digest
SHA256 cde9e98186cece44052ae084da5593372fc95f2ab990d4b56206a52b2d8fa7c3
MD5 8ca416f09ac261657005cb6ee1094c4e
BLAKE2b-256 90722b0b7a44e51988bf836cfccf296e6a372684d625774672b01fe05ee8d314

See more details on using hashes here.

File details

Details for the file pylect-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pylect-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 260.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for pylect-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 702bdee64383069fbea277b2d476d92d65e300d24db64491fd1a299e17041241
MD5 7df810b0d3ff9c52a61a89e4e7de4bc3
BLAKE2b-256 4041f78a79784cc001d3ab15b8fbd6278a620e01213c1e28547afb5fd808f2a4

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