Skip to main content

A Salesforce API Adapter for Python

Project description

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
  • 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}")

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

sf_toolkit-0.5.6.tar.gz (51.6 kB view details)

Uploaded Source

Built Distribution

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

sf_toolkit-0.5.6-py3-none-any.whl (61.9 kB view details)

Uploaded Python 3

File details

Details for the file sf_toolkit-0.5.6.tar.gz.

File metadata

  • Download URL: sf_toolkit-0.5.6.tar.gz
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sf_toolkit-0.5.6.tar.gz
Algorithm Hash digest
SHA256 992835ac43cf32b8f6ce13699a657546b1ec575f6d19a3331282510eb76c187e
MD5 84a36c3f31ecb01c30d6a55dab8ebb1d
BLAKE2b-256 9c14eb8d46ead770c6d1819929f8619938728667849bea09f980671e2bef2478

See more details on using hashes here.

Provenance

The following attestation bundles were made for sf_toolkit-0.5.6.tar.gz:

Publisher: pypi-publish.yml on AndroxxTraxxon/python-sf-toolkit

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

File details

Details for the file sf_toolkit-0.5.6-py3-none-any.whl.

File metadata

  • Download URL: sf_toolkit-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 61.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sf_toolkit-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 935b04d337287403d4f6de7e5967da36d2ea11dd8b1f4657330a69e36ff0ed51
MD5 0b4ce1518259b5f7431be748536ef4e5
BLAKE2b-256 d50c146b0002c1e2b23f433158659300ed237a635c2dd185cf96ea77dade9d41

See more details on using hashes here.

Provenance

The following attestation bundles were made for sf_toolkit-0.5.6-py3-none-any.whl:

Publisher: pypi-publish.yml on AndroxxTraxxon/python-sf-toolkit

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