This library is intended to simplify connecting to the Smartsheet API from Python applications.
The SDK currently supports Python 2.7, 3.4, 3.5, 3.6, pypy, and pypy3.
Note that Python version 3.4 or higher is required for Unicode support. (E.g. if your Smartsheet data includes non-ASCII characters.)
The following packages are required.
There are many security vulnerabilities in SSL and early TLS versions. To remain compliant with PCI standards, most companies are now removing support for TLS 1.0.
Smartsheet Python SDK versions earlier than 1.3.0 do not support TLS 1.1. Once Smartsheet disables support for TLS 1.0 on 5/22/2018 any user who is still using an earlier version of the Python SDK will receive a SSL handshake error. Please upgrade your Smartsheet Python SDK, preferably to 1.3.2 by 5/22/2018 to avoid any impact.
To upgrade a current installation using pip:
$ pip install smartsheet-python-sdk --upgrade
If this is your first time installing the Python SDK, follow the installation steps in the following section.
The SDK can be installed by using a package manager (pip) or manually by downloading the SDK directly from Git. These two steps are outlined below.
If unfamiliar with pip, please review the pip documentation.
This SDK's Python package is called smartsheet-python-sdk. To install using pip:
$ pip install smartsheet-python-sdk
To install this SDK manually, download the source code from GitHub and then run:
$ python setup.py install
Getting started with the Python SDK is easy:
-
Set SMARTSHEET_ACCESS_TOKEN in your environment. Find out more about Authentication and Access Tokens in the Smartsheet API Documentation.
-
Install the Smartsheet Python SDK from the Python Package Index, or by using "pip install smartsheet-python-sdk".
-
Import the smartsheet module:
import smartsheet -
Refer to the Smartsheet API Documentation for Python SDK usage examples.
See a sample application here: https://github.com/smartsheet-samples/python-read-write-sheet
For details about logging, testing, how to use a passthrough option, and how to override HTTP client behavior, see Advanced Topics.
The Smartsheet API is documented here: http://smartsheet-platform.github.io/api-docs/
The Python SDK documentation can be viewed here: http://smartsheet-platform.github.io/smartsheet-python-sdk/.
If you would like to contribute a change to the SDK, please fork a branch and then submit a pull request.
If you have any questions or issues with this SDK please post on StackOverflow using the tag "smartsheet-api" or contact us directly at api@smartsheet.com.
Each release with notes is available for download on the Github Releases page.