Skip to main content

A python API for accessing RESTful resources on the platform.

Project description


Rest Force offers a python API for easily working with RESTful resources exposed by the platform. Typical usage often looks like this:


from restforce.login import SalesforceAuthenticationFailedException
from import Resources, RestInvocationException

    r = Resources()
    print'hello', '{ "postData" : "world"}')
    print r.get('hello/1')
    print r.delete('hello/1')
except SalesforceAuthenticationFailedException as e:
    print e
except RestInvocationException as e:
    print e

Salesforce REST Example

Creating a REST resource on the platform is easy. Here’s an example::

global class HelloResource {

    global static String doGet()
        return 'Hello, world!';

    global static String doDelete()
        return 'Good bye, cruel world!';


Project details

Download files

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

Files for RestForce, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size RestForce-1.0.0.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page