Skip to main content

The unofficial API to the TSA Compass membership database

Project description

Compass Interface - Core

PyPI - Python Version PyPI - Status PyPI Latest Release Conda Latest Release License Code style: black

The Compass Interface project aims to provide a unified and well-documented API to the Scouts' national membership system, Compass.

Notice

This is not an official API to Compass and as such should be used in a way that doesn't cause a high request load on the Compass system.

Please also remember your personal data handling obligations (under both GDPR and Scouting policies) whilst using this module.

Where to get it

The source code for the project is hosted on GitHub at the-scouts/compass-interface-core

Installers for the latest release are availibe on Conda and at the Python Package Index (PyPI).

# conda
conda install compass-interface-core
# or PyPI
pip install compass-interface-core

Dependencies

License

Compass Interface - Core is naturally open source and is licensed under the MIT license.

Core Module

This sub-project hosts the extraction functionaility of Compass Interface, and is itself a standalone module for querying Compass.

The main project is found at the-scouts/compass-interface.

Example Usage

import compass as ci

# Turn on debug logging for development
ci.logger.enable_debug_logging()

# Login to Compass
compass_session = ci.login(username=..., password=...)

# Setup Compass Helpers
hierarchy = ci.Hierarchy(compass_session)
people = ci.People(compass_session)

# Get all unique members from the in your hierarchy
member_set = hierarchy.get_unique_members()

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

compass-interface-core-0.6.0.tar.gz (34.7 kB view details)

Uploaded Source

Built Distribution

compass_interface_core-0.6.0-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file compass-interface-core-0.6.0.tar.gz.

File metadata

  • Download URL: compass-interface-core-0.6.0.tar.gz
  • Upload date:
  • Size: 34.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8

File hashes

Hashes for compass-interface-core-0.6.0.tar.gz
Algorithm Hash digest
SHA256 56914242d579a5f2a4dbbfae9d891f1541ce6f2f56d1901c9ab081de45232b19
MD5 56bc07dda614e93eef82667cece266db
BLAKE2b-256 b0a5666ea2c1d008845f574c1fd6d59abb6faf08d0b679dea1d642f35987c011

See more details on using hashes here.

File details

Details for the file compass_interface_core-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: compass_interface_core-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8

File hashes

Hashes for compass_interface_core-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 809a94c3ac6639c40fe4017c9f83ecd92510ef6aab7b52499b5ea1c9d2ec0ab9
MD5 a7c3541ca4e915fbb98595091eb2a84f
BLAKE2b-256 63db4c9b2e2b07cdb4ba5482764b1605bd386e9e0ba7b0a14d0ad6f3fc3e557b

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