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, api_name="Account"):
    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 = query(Account).select().execute()

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

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.2.2.tar.gz (31.4 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.2.2-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sf_toolkit-0.2.2.tar.gz
  • Upload date:
  • Size: 31.4 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.2.2.tar.gz
Algorithm Hash digest
SHA256 e6345be76a30fef7598ac9b478a9332da0cc0d41eaed47058547d0f4fcc95ee2
MD5 e5b2443f4dfb514702d2599f371ed731
BLAKE2b-256 dcc4f413a527a235e376d613403f4dadb5b0da90b5b1e9c7328c659578b44cc3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sf_toolkit-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 38.5 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e338da5c3197758e9d4c41fc74990bd96a58d076d2de0a826034e5118a0f21e
MD5 60cca8bff9c3fa21afcb7a0f40b0e7b9
BLAKE2b-256 ef5ede7e3a3dc5bd975d48127786a091cafa52c5f08ac79fb6f6378a9a23f061

See more details on using hashes here.

Provenance

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