Skip to main content

An API for the LDS churches Leader and Clerk Resources (LCR),

Project description

LCR API

Forked from: https://github.com/philipbl/LCR-API. Updated in PIP as lcr-api-2 to pull the new version that works.

A Python API for Leader and Clerk Resources for the LDS Church. I've only tested it with Python 3.5+.

The following calls are supported, which correspond to a page in LCR:

  • Birthday list (birthday_list)
  • Members moved out (members_moved_out)
  • Members moved in (members_moved_in)
  • Member list (member_list)
  • Calling list by organization (callings)
  • Members with callings list (members_with_callings_list)
  • Recommend Status (recommend_status)
  • Individual Photo (individual_photo)
  • Ministering List (ministering)
  • Access Table (access_table)

More calls will be supported as I have time. Pull requests are welcomed!

Disclaimer

This code is rough around the edges. I don't handle any cases where a person using this code doesn't have permissions to access the reports, so I don't know what will happen.

Install

To install, run

pip3 install lcr-api-2

Usage

from lcr import API as LCR

lcr = LCR("<LDS USERNAME>", "<LDS PASSWORD>", <UNIT NUMBER>)

months = 5
move_ins = lcr.members_moved_in(months)

for member in move_ins:
    print("{}: {}".format(member['spokenName'], member['textAddress']))

To Do

  • Add more tests
  • Support more reports and calls

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

lcr_api_2-0.5.9.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file lcr_api_2-0.5.9.tar.gz.

File metadata

  • Download URL: lcr_api_2-0.5.9.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for lcr_api_2-0.5.9.tar.gz
Algorithm Hash digest
SHA256 35488f9000d8aef6a37f32f29e779c99cc1da375bea5d6cac925f8a09db4bd0e
MD5 d9be8ee407c6b3b1d0d460e662167168
BLAKE2b-256 aeceb3752660b427204d76d987d169496644551f0d793c47b1efdc80658b2672

See more details on using hashes here.

Supported by

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