Giter Club home page Giter Club logo

church-class-list's Introduction

Church Class List

When syncing Member Tools, it includes class information in the membership data. However, it doesn't allow me to see the class membership under Organizations.

I'm assuming this is a bug as I can see class information for individual members in the Directory.

I wrote this project to retrieve the data and output the members of the class I enter. I include a Docker image, or you can run it on iOS with Pythonista.

Building

Set your unit number in church_class_list/config.json

---
unit: 000000 # Int: Your unit number
docker build . --tag church-class-list:latest

Running

You will need the CLIENT_ID and CLIENT_SECRET for Member Tools to perform the OAuth. Place them into .docker_env in the root of this repo.

Do not place quotes around the values in this file.

CHURCH_CLASS_OAUTH_CLIENT_ID=*****************
CHURCH_CLASS_OAUTH_CLIENT_SECRET=*****************

Alernatively, if you are running this in Pythonista you can save them to the Pythonista keystore.

keychain.set_password("lds", "oauth_client_id", "*****************")
keychain.set_password("lds", "oauth_client_secret", "*****************")
mkdir data

docker run -it \
  --mount type=bind,source=`pwd`/church_class_list/config.yml,target=/app/config.yml \
  --mount type=bind,source=`pwd`/data,target=/app/data \
  --env-file=.docker_env church-class-list:latest

It will prompt you for your credentials, organization and class and save a list of class members in data/class_members.txt.

The organization and class need to match what is in Member Tools.

It will also save a cache in data/membertools_data.json and will use that for future runs. Delete it if you wish to download fresh data.

church-class-list's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.