Skip to main content

Framework-neutral Salesforce Nonprofit Success Pack (NPSP) donor reader. Shared core for the Haystack and MCP integrations.

Project description

salesforce-npsp-core

Framework-neutral reader for Salesforce Nonprofit Success Pack (NPSP) donor data. Fetches donor Contact records, Opportunity gift histories, and NPSP engagement metrics via simple_salesforce, returning one plain {"text", "metadata"} record per donor.

This is the shared core behind:

All Salesforce/SOQL logic lives here, once.

Usage

from npsp_core import SalesforceNPSPClient

client = SalesforceNPSPClient(domain="login")  # or env: SF_USERNAME/SF_PASSWORD/SF_TOKEN
records = client.load_donors(soql_filter="npo02__TotalOppAmount__c > 5000", limit=500)
# records[0] == {"text": "Donor Profile: ...", "metadata": {"donor_id": ..., ...}}

Pass affinity_score_fn=(metadata) -> float to inject an ML propensity score into each record's metadata at load time.

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

salesforce_npsp_core-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

salesforce_npsp_core-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file salesforce_npsp_core-0.1.0.tar.gz.

File metadata

  • Download URL: salesforce_npsp_core-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for salesforce_npsp_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e14c49ebdc54ab2c73b0f10cdacf538e3a2060f09894d9a5c3b10ce5873c5da
MD5 e9d886ebbdd54de554249316f6dc6433
BLAKE2b-256 8127d1a2b3108a2d7f76c3c9db2bb116514ad7c1d8931a4503b601db4878df50

See more details on using hashes here.

Provenance

The following attestation bundles were made for salesforce_npsp_core-0.1.0.tar.gz:

Publisher: publish.yml on PhilanthroPy-Project/salesforce-npsp-integrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file salesforce_npsp_core-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for salesforce_npsp_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b0023f1a9e82ee7fcf7fa176e6b57c44a834e722752ecc1345c53d3ab11a4d1
MD5 ea7725f55cd34c94dda65b3092c24fc0
BLAKE2b-256 c10f8e628bdaf4744351d32d01a5b8187698a9262ef56ed39938d6f6add16acf

See more details on using hashes here.

Provenance

The following attestation bundles were made for salesforce_npsp_core-0.1.0-py3-none-any.whl:

Publisher: publish.yml on PhilanthroPy-Project/salesforce-npsp-integrations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page