Library that uses Python to connect to Smartsheet services (using API 2.0).
Project description
Smartsheet Python SDK
A library for connecting to the Smartsheet API from Python applications.
Requirements
The SDK is compatible with actively supported Python versions 3.10
, 3.9
, 3.8
, 3.7
.
Installation
To install using pip:
pip install smartsheet-python-sdk
Getting Started
To get started with the Smartsheet Python SDK:
-
Set SMARTSHEET_ACCESS_TOKEN in your environment, using your Smartsheet API key. Find out more about Authentication and Access Tokens in the Smartsheet API Documentation. You can generate an access token in Smartsheet UI under Account > Personal Settings > API Access.
-
Install the Smartsheet Python SDK (see the installation instructions above)
-
The following snippet shows how to create a Smartsheet client and perform some basic actions using the SDK. Ensure your Smartsheet user has access to at least one sheet.
import smartsheet
smart = smartsheet.Smartsheet() # Create a Smartsheet client
response = smart.Sheets.list_sheets() # Call the list_sheets() function and store the response object
sheetId = response.data[0].id # Get the ID of the first sheet in the response
sheet = smart.Sheets.get_sheet(sheetId) # Load the sheet by using its ID
print(f"The sheet {sheet.name} has {sheet.total_row_count} rows") # Print information about the sheet
Documentation
Use the following resources to learn more about the SDK capabilities:
Advanced Topics
For details about logging, testing, how to use a passthrough option, and how to override HTTP client behavior, see Advanced Topics.
Developer Agreement
Review the Developer Program Agreement.
Acknowledgements
We would like to thank the following people for their contributions to this project:
- Tim Wells - timwellswa
- Scott Wimer - happybob007
- Steve Weil - seweil
- Kevin Fansler - kfansler
- Nathan Armstrong - armstnp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file smartsheet-python-sdk-3.0.4.tar.gz
.
File metadata
- Download URL: smartsheet-python-sdk-3.0.4.tar.gz
- Upload date:
- Size: 333.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c38e3cc7a42564e06e265ac4bd169673e8ecc2405ac1dd32c4bdc3799e900462 |
|
MD5 | 827cc12a05f05344ea00ebd022ee75f6 |
|
BLAKE2b-256 | 8c32052a6734c3aac0353de1e44ed8e2ca37f85c17772ea8b50456ba135e8a5b |
File details
Details for the file smartsheet_python_sdk-3.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: smartsheet_python_sdk-3.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 229.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5af68d177964814cd2930bbad618d5bf965a5a6194e09ef059fa2968030f7b9 |
|
MD5 | 89c205ec65dfe54ffb004b3ef1f4f210 |
|
BLAKE2b-256 | 3e36931beac1bb6b600c515d48f3cb78ec6abca05dea75e209fada7285d21518 |