This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Access json information

Project Description
# LDS-org

Most times, I can quickly jump on and get the exact information
I need. However, there are those repeated tasks I don't really want to
to run time and time again. Hmm... sounds like a job for a computer.

In my current role as Clerk, reports and information are my life. I
want to make it easier to get that information.

## Install

For install you can use pip:

pip install lds-org

## QuickStart

Using the command line, see the available endpoints and your current ID.

python -m lds-org --ask
python -m lds-org --ask -e current-user-id

Now lets get the same in python.

import lds_org

lds = lds_org.LDSOrg()
lds.signin(username, password)
rv = lds.get('current-user-id')
print(sorted(k for k, v in lds.endpoints.items()
if isinstance(v, basestring) and v.startswith('http')))

### Working endpoints

There are some endpoints, while published, don't appear to be working. Here is a list of working endpoint providing JSON. See <> for more information.

* current-user-detail
* current-user-id
* current-user-unit
* current-user-units
* leader-access
* member-assignments
* organization-list-url
* stake-leadership
* stake-units
* unit-leadership
* unit-leadership-new
* unit-members-and-callings
* unit-members-and-callings-v2
* unit-membership
* cal2x-event
* cal2x-events

Calendar requests appear to be working but the descriptions at <> appear to be out of date. For an example see the testing suite.

### Secure your username and password

You need to keep your username and password secret. However, you also
want to automate the process of getting and processing information
from You could put your username and password in your code,
but the possibility of sharing your information is very possible when
you show or share your code.

This module can use environment variables containing your username and
password. In \*nix based systems, you can add the following to your
.bashrc or its equivelent.


Personally, I create a seperate file to fix the command line environment.
I take the above and put it in a file 'ldsorg-password.txt'. From the
command line, type the following and you should see your username.

source ldsorg-password.txt

Once this is done, you no longer need to either use the '--ask' parameter
or specify a username/password in your code.
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
LDS_org-0.1.0-py2-none-any.whl (6.9 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Mar 7, 2015
LDS-org-0.1.0.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Mar 7, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting