Skip to main content

Library that uses Python to connect to Smartsheet services (using API 2.0).

Project description

Smartsheet Python SDK

Build Status Coverage Status PyPI version

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:

  1. 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.

  2. Install the Smartsheet Python SDK (see the installation instructions above)

  3. 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:

  1. Smartsheet Python SDK sample project
  2. Python SDK documentation
  3. Smartsheet API Documentation

Contributing

We welcome contributions! Before submitting code changes, please review our Issue First approach for creating effective issues that work well with both human reviewers and AI-powered Cloud Agents. For additional contribution guidelines, see CONTRIBUTING.md.

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:

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

smartsheet_python_sdk-4.0.0.tar.gz (284.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartsheet_python_sdk-4.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file smartsheet_python_sdk-4.0.0.tar.gz.

File metadata

  • Download URL: smartsheet_python_sdk-4.0.0.tar.gz
  • Upload date:
  • Size: 284.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for smartsheet_python_sdk-4.0.0.tar.gz
Algorithm Hash digest
SHA256 d0af4caed13dd136b6a0d14a724bcea5e4cecb91941f781c167c8ceb4862421e
MD5 8866b18026cd40d354123bfc2f4dedba
BLAKE2b-256 202b16988191f37cb6c4c6a335399f3c154830e014e88a90cf2f838c3f22cfe1

See more details on using hashes here.

File details

Details for the file smartsheet_python_sdk-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: smartsheet_python_sdk-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for smartsheet_python_sdk-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f123def55f3436f2e8603196e2093e5940a708ff4631f98cae333b99c0c84a9d
MD5 e5737493d125e745b4c6c807240aad04
BLAKE2b-256 ace420488d29cf0157d40f949ece1d988f3314ae56e527222b438a82bd13bc60

See more details on using hashes here.

Supported by

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