Skip to main content

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.

Metadata

Release files for salesforce-npsp-core 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for salesforce-npsp-core 0.1.0
File Size Uploaded Provenance
salesforce_npsp_core-0.1.0.tar.gz 5.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for salesforce-npsp-core 0.1.0
File Interpreter ABI Platform
salesforce_npsp_core-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / salesforce_npsp_core-0.1.0.tar.gz

Download URL salesforce_npsp_core-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2e14c49ebdc54ab2c73b0f10cdacf538e3a2060f09894d9a5c3b10ce5873c5da
BLAKE2b-256 checksum
How to use checksums
8127d1a2b3108a2d7f76c3c9db2bb116514ad7c1d8931a4503b601db4878df50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Release files / salesforce_npsp_core-0.1.0-py3-none-any.whl

Download URL salesforce_npsp_core-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b0023f1a9e82ee7fcf7fa176e6b57c44a834e722752ecc1345c53d3ab11a4d1
BLAKE2b-256 checksum
How to use checksums
c10f8e628bdaf4744351d32d01a5b8187698a9262ef56ed39938d6f6add16acf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Security for salesforce-npsp-core 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for salesforce_npsp_core-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page