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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sf_toolkit-0.4.3.tar.gz.
File metadata
- Download URL: sf_toolkit-0.4.3.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51d313ba2b176c430e3cf507a795b2256a72b16a4505b7e46ef6ddec44fc864a
|
|
| MD5 |
974f24218eb329b62cf25ad5f76d65a5
|
|
| BLAKE2b-256 |
569b4dc883a3a0508df024566d6fdfcc59af5f79f7792af88478cd967fc22a5b
|
Provenance
The following attestation bundles were made for sf_toolkit-0.4.3.tar.gz:
Publisher:
pypi-publish.yml on AndroxxTraxxon/python-sf-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sf_toolkit-0.4.3.tar.gz -
Subject digest:
51d313ba2b176c430e3cf507a795b2256a72b16a4505b7e46ef6ddec44fc864a - Sigstore transparency entry: 213593162
- Sigstore integration time:
-
Permalink:
AndroxxTraxxon/python-sf-toolkit@416224cc9f5ca5c822fdacf38e0ffbc5008eda78 -
Branch / Tag:
refs/tags/v0.4.3 - Owner: https://github.com/AndroxxTraxxon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@416224cc9f5ca5c822fdacf38e0ffbc5008eda78 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sf_toolkit-0.4.3-py3-none-any.whl.
File metadata
- Download URL: sf_toolkit-0.4.3-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9d777fc6e64e335da771ebc9722ec8330b1d57047a033aa7e2e01309e64c277
|
|
| MD5 |
62f4cc6808ad431a0216f8878858c5bb
|
|
| BLAKE2b-256 |
9bb447782992e6c8a013297cafa62a1a7213bf345f31f8555be7d001310b6970
|
Provenance
The following attestation bundles were made for sf_toolkit-0.4.3-py3-none-any.whl:
Publisher:
pypi-publish.yml on AndroxxTraxxon/python-sf-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sf_toolkit-0.4.3-py3-none-any.whl -
Subject digest:
e9d777fc6e64e335da771ebc9722ec8330b1d57047a033aa7e2e01309e64c277 - Sigstore transparency entry: 213593164
- Sigstore integration time:
-
Permalink:
AndroxxTraxxon/python-sf-toolkit@416224cc9f5ca5c822fdacf38e0ffbc5008eda78 -
Branch / Tag:
refs/tags/v0.4.3 - Owner: https://github.com/AndroxxTraxxon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@416224cc9f5ca5c822fdacf38e0ffbc5008eda78 -
Trigger Event:
release
-
Statement type: