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.
To install the package, use pip:
pip install bbskyTo see all available CLI commands, run:
bbsky --helpFirst 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 createAfter that a config file will be created in your home directory at ~/.bbsky/config/config.json.
To get a user token, you can use the CLI:
bbsky server startThis 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 refreshHere'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)We use Rye for managing the development environment. See the Rye documentation for more information on how to use it.