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, query
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")
    account.save()

    # Query accounts
    result = Account.query().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.4.1.tar.gz (38.7 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.4.1-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sf_toolkit-0.4.1.tar.gz
Algorithm Hash digest
SHA256 878321a59116f6b0dd6d2811a176c380c236551f4f9fd7f0af8a7e3ee00ef1ca
MD5 b2fe5abcdcb0a6996bd30f21a6fbd307
BLAKE2b-256 eec2721ce28bd713f233a550deae402fca2eb9cecb56c1a0b042408c42062e57

See more details on using hashes here.

Provenance

The following attestation bundles were made for sf_toolkit-0.4.1.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.4.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sf_toolkit-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0509ae223d075c67f106d0a321d5970c110ebc5a72faee08bb019944eda2ab3c
MD5 40cdeb4c019d2e32b4e3db85c0906f72
BLAKE2b-256 d5fec8adf53d26702831ac97973b75602543cde7af8e1364e84c6686567fb928

See more details on using hashes here.

Provenance

The following attestation bundles were made for sf_toolkit-0.4.1-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