Skip to main content
salesforce-python-sdk
=====================

Salesforce Python SDK supports Salesforce REST and Partner SOAP APIs.

Install
-------
python setup.py install

Example
-------
import salesforce as sf
sfdc = sf.Salesforce()

sfdc.authenticate(client_id=client_id,
client_secret=client_secret,
username=username,
password=password)

#SOAP call
sfdc.Contact.create(
[
{
'FirstName': 'John',
'LastName': 'Varges',
},
{
'FirstName': 'Clark',
'LastName': 'Fisher',
}
],
soap=True)

#REST Call
sfdc.Contact.create({
'FirstName': 'John',
'LastName': 'Varges'})

You can switch between REST and SOAP by passing soap parameter.


Supported APIs
--------------
get_auth_uri(self, **kwargs)

authenticate(self, soap=None, **kwargs)

query(self, query_string, soap=None)

query_all(self, query_string, soap=None)

query_more(self, query_url, soap=None)

search(self, search_string, soap=None)

get(self, get_url, params=None, soap=None, **kwargs)

post(self, post_url, data, soap=None)

On sObject:

describe(self, soap=None)

create(self, data, soap=None)

update(self, data, soap=None)

delete(self, record_id, soap=None)

post(self, data, record_id=None, soap=None)

get(self, record_id=None, params=None, soap=None)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salesforce-python-sdk-0.1.3.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file salesforce-python-sdk-0.1.3.tar.gz.

File metadata

File hashes

Hashes for salesforce-python-sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7f0a54201e7282bbe8be9c12aa3015e74d40030b25856b166b7f2c3da05af257
MD5 b938cd1f200ec2c20264b2173b8862ab
BLAKE2b-256 823266625bb00425c0c74364a964eea29a5d66232b290e96dc2f63451f495d3f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page