Skip to content

Repository files navigation

Overview

PyPI License python python python

bbsky provides a high-level Python client for interacting with the Blackbaud Sky API. You can use the client to authenticate and make requests to various endpoints provided by the Blackbaud Sky API. See the Blackbaud Sky API documentation here for more information on the Sky API itself.

Important Note: bbsky is a third-party client and is not affiliated with or endorsed by Blackbaud.

Installation

To install the package, use pip:

pip install bbsky

Usage

To see all available CLI commands, run:

bbsky --help

Setting up Blackbaud App Credentials

First you'll need to setup your Blackbaud Sky account and then update your config. After getting your credentials from Blackbaud, you can use the CLI here to set them up:

bbsky config --help

# Follow along with the prompts to set your credentials
bbsky config create

After that a config file will be created in your home directory at ~/.bbsky/config/config.json.

Getting a User Token

To get a user token, you can use the CLI:

bbsky server start

This will start a local server that you can use to authenticate with Blackbaud. After authenticating, you'll be prompted to cache the token locally.

If you need to refresh your token, run:

bbsky token refresh

Using the Client

Here's a basic example of how to use the client:

from bbsky import BBSky

sky = BBSky()
results = sky.search_constituents(constituent_quick_find="Smith", limit=5)
print(results)

Development

Rye

We use Rye for managing the development environment. See the Rye documentation for more information on how to use it.

About

Client for Blackbaud Sky API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages