Skip to main content

Python Salesforce Client

A python client for the Salesforce API.

Getting Started

pip install SalesforceClient

Usage

SalesforceClient must be initialized with a login_endpoint, username, password, token, client_id, and client_secret. Once intialized, you can use any of the provided functions to return a requests response object.

Example

from SalesforceClient import SalesforceClient

login_endpoint = "https://login.salesforce.com/services/oauth2/token"
username = "my_username"
password = "my_password"
token = "my_security_token"
client_id = "my_client_id"
client_secret = "my_client_secret"

client = SalesforceClient(login_endpoint, username, password, token, client_id, client_secret)
response = client.login()
if response.status_code == 200:
	print("Login Success:", response.text)
	query_response = client.query("select Id, Name from User")
	print("Users:", query_response.text)
else:
	print("Salesforce login failed:", response.text)

Metadata

Release files for SalesforceClient 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SalesforceClient 1.0.3
File Size Uploaded Provenance
SalesforceClient-1.0.3.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for SalesforceClient 1.0.3
File Interpreter ABI Platform
SalesforceClient-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / SalesforceClient-1.0.3.tar.gz

Download URL SalesforceClient-1.0.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e5f7e5d1de06d80e69468a9c2a7aa89835535373172b5e4238ad5df479fa11f7
BLAKE2b-256 checksum
How to use checksums
716b0a6580bf58563c4462c202236e0313cde69fb09cb31d432f03f479cd1a82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

Release files / SalesforceClient-1.0.3-py3-none-any.whl

Download URL SalesforceClient-1.0.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ea3894d40ec89c20bd0b7991fffd3c0571208f8dd12358b1f32e5f7673275f4
BLAKE2b-256 checksum
How to use checksums
8113fe2cbb640f9ec5b9ef7c10fb05780a7268f29ec7613103913265a51e5538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

Security for SalesforceClient 1.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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