Skip to main content

Salesforce Toolkit for Python

A modern, Pythonic interface to Salesforce APIs.

Features

  • Clean, intuitive API design
  • Both synchronous and asynchronous client support
  • Simple SObject modeling using Python classes
  • Automatic field validation and recursive hydration of dates, multipicklists, relationships, and nested models, while retaining unfamiliar response fields
  • Powerful query builder for SOQL queries
  • Efficient batch operations
  • Automatic session management and token refresh

Installation

pip install sf-toolkit

Quick Start

from sf_toolkit import SalesforceClient, SObject, cli_login
from sf_toolkit.io import select, save
from sf_toolkit.data.fields import IdField, TextField

# Define a Salesforce object model
class Account(SObject):
    Id = IdField()
    Name = TextField()
    Industry = TextField()
    Description = TextField()

# Connect to Salesforce using the CLI authentication
with SalesforceClient(login=cli_login()) as sf:
    # Create a new account
    account = Account(Name="Acme Corp", Industry="Technology")
    save(account)

    # Query accounts
    result = select(Account).execute()

    for acc in result:
        print(f"{acc.Name} ({acc.Industry}) {acc.Description}")

Metadata

Release files for sf-toolkit 0.7.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 sf-toolkit 0.7.0
File Size Uploaded Provenance Actions
sf_toolkit-0.7.0.tar.gz 72.2 kB With provenance Details for sf_toolkit-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sf-toolkit 0.7.0
File Interpreter ABI Platform Actions
sf_toolkit-0.7.0-py3-none-any.whl Python 3 none any Details for sf_toolkit-0.7.0-py3-none-any.whl

Total release size: 157.9 kB

Release files / sf_toolkit-0.7.0.tar.gz

Download URL sf_toolkit-0.7.0.tar.gz
Size 72.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ed32d7de47e1e32ac8b76569340d39481ba76a0f1e73dd921a24d36111316641
BLAKE2b-256 checksum
How to use checksums
e4f1164ad5060bda9ec7fc09dc8fce10c52229be0c1261f8dd8268a9dab245b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Release files / sf_toolkit-0.7.0-py3-none-any.whl

Download URL sf_toolkit-0.7.0-py3-none-any.whl
Size 85.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e52e65f86e173d92e4ffd574cad01afbb138de1394f5b28f431e93ea9bdae6d
BLAKE2b-256 checksum
How to use checksums
fefb4439811b9f381d88b334aa57d5ca511f7c26399d737de3b9ee3c9cfbefa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Security for sf-toolkit 0.7.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sf_toolkit-0.7.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 Nov 5, 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.

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