nutshell

A minimal python library to access Nutshell CRM:s JSON-RPC API.


Keywords
nutshell, nutshell-crm, json-rpc
License
Other
Install
pip install nutshell==0.2

Documentation

python-nutshell

A minimal python library to access Nutshell CRM:s JSON-RPC API.

Build Status PyPi version PyPi downloads

Installation

pip install nutshell

Example of usage

First create a Nutshell APIKEY. Then use the e-mail address of one of your existing nutshell users as the USERNAME (Note that nutshell allows one user to have multiple e-mail addresses; the API requires that you use the primary one).

from nutshell import NutshellAPI

USERNAME = "example@example.com"
APIKEY = "000000000000000000000000000000000000000000000"

api = NutshellAPI(USERNAME, APIKEY)
accounts = api.findAccounts()
for account in accounts:
    print("-" * 80)
    print("Account:")
    for field, value in account.items():
        print("%30s: %s" % (field, value))

The api object converts all method calls on it to JSON-RPC calls against Nutshell's API. The API documentation has a list possible calls, including parameters.

Run the tests

python setup.py test