Skip to main content

Python module to wrap the Salesforce APIs

Project description

PySalesforce


The purpose of this project is to replicate the Salesforce REST APIs in a Python library.

Usage


The authentication method used in PySalesforce.Authentication.getOAuthLogin uses the Salesforce OAuth Password flow. You can choose to build and use your own authentication method, but if you want to use the OAuth flow, you'll need to create a connected app in Salesforce. YOu can do this from Setup->Create->Apps, then scroll down to the bottom and click the New button for Connected Apps. THE Callback URL is irrelavent, so you can put in anything you want. Make sure the Selected Scope OAuth Scopes = Full Access. After setting it up you'll receive a Consumer Key and Consumer Secret, which are the loginClientId and loginClientSecret parameters in the getOAuthLogin method respectively.

Salesforce Documentation


As I continue to update this library, I'll be adding reference links to the Salesforce documentation.

Notes


I had issues with OS X not being able to connect to any sandbox environments. The issue was related to my OpenSSL version not being up to date enough.

You can run this test to check if your machine is up to date with SSL. Make sure it can run TLS 1.1 or 1.2

import WebService response = WebService.Tools.getHTResponse("https://www.howsmyssl.com/a/check", {}) print(response.text)

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

pysalesforceutils-1.0.4.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

pysalesforceutils-1.0.4-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file pysalesforceutils-1.0.4.tar.gz.

File metadata

  • Download URL: pysalesforceutils-1.0.4.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for pysalesforceutils-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fdc60a7334ecb6a175c16479e489e8396e3ede8c21b24ad3ccd6949cc8f105f9
MD5 df6fdd5158b956036bf475a419e657b8
BLAKE2b-256 b171808bb49956e35bf6bba73e99add35a514e4fd807f977b593afaa6d2a9daf

See more details on using hashes here.

File details

Details for the file pysalesforceutils-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pysalesforceutils-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for pysalesforceutils-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 06a7102cb0facd1ba34b0c593f262f246ddc14683b6d222e4d0571a6fa5d4a9a
MD5 e00ed4230e65a90e4c566788a201e2d3
BLAKE2b-256 4ec97665eaaa2edc82a3081f5d86f859260cd9dfe5f8da30d9dd02075d651e51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page