Skip to main content

An API for The Church of Jesus Christ of Latter-day Saint's Leader and Clerk Resources (LCR)

Project description

LCR API

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
  • Members moved out
  • Members moved in
  • Member list
  • Calling list

There is one additional call supported:

  • Individual photo – Gets the photo for an individual. This is the same call that LCR uses to show a picture when you go to a member's page.

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

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-0.4.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

lcr_api-0.4.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file lcr-api-0.4.0.tar.gz.

File metadata

  • Download URL: lcr-api-0.4.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for lcr-api-0.4.0.tar.gz
Algorithm Hash digest
SHA256 462bd9f4a17e2e5b937519fc6a1554efa7cc6b269f2f49f19c3014e37ffa513a
MD5 ad14cfec3f4539007ad7c0794786106c
BLAKE2b-256 0ff7e7472a8244fd6da46388b69791d042e4f6460d3f9db8afae75e3de9a720a

See more details on using hashes here.

File details

Details for the file lcr_api-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: lcr_api-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for lcr_api-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a35a8b341bbc6c7e942da4852738087b3da168ab28654aa357c474cfd920f195
MD5 82aba55d90be2ff76ee1e6b4f81c7221
BLAKE2b-256 5f5ff413156987af2a1b685769eb3bc2173be998a9469c9fd22afc6421de9137

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