Skip to main content

A Python client library for interacting with the CharityBase REST API.

Project description

CharityBase Client Library (Python)

A Python client library for interacting with the CharityBase REST API. Tested on python 3.7.1

Modelled on the official charitybase JavaScript client.

Authorisation

Log in to the CharityBase API Portal and create an API key.

Example

Search for "homeless" charities with income range £100k - £1m, sorted by descending income:

from charitybase import CharityBase


charityBase = CharityBase(apiKey='my-api-key')

res = charityBase.charity.list({
  'fields': ['income.latest.total'],
  'search': 'homeless',
  'incomeRange': [100000, 1000000],
  'sort': 'income.latest.total:desc',
  'limit': 10,
  'skip': 0,
})
print(res.charities)

(Remember to replace my-api-key with your actual key, copied from the CharityBase API Portal)

Project details


Download files

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

Files for charity-base-client-python, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size charity_base_client_python-0.1.3-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size charity-base-client-python-0.1.3.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page