The Smartsheet Python SDK is a library for connecting Python applications to Smartsheet services using API 2.0. It provides a programmatic interface to manage sheets, rows, columns, users, and other Smartsheet resources. The library simplifies interaction with the Smartsheet API, handling authentication, request serialization, and response deserialization. It is actively maintained, with the current version being 3.7.2, and typically sees updates for API endpoint changes and new features.
pip install smartsheet-python-sdkVerified import paths — ran on the pinned version, not inferred.
This quickstart initializes the Smartsheet client using an API access token from environment variables. It then lists the user's sheets and retrieves details for the first one found. It also demonstrates how to enable exceptions for API errors.
Generate an API access token from your Smartsheet personal settings and set it as the `SMARTSHEET_ACCESS_TOKEN` environment variable. For OAuth, follow the official Smartsheet API documentation.
Call `smartsheet_client.errors_as_exceptions(True)` after initializing your client to make the SDK raise `smartsheet.exceptions.SmartsheetException` instances for API errors, allowing for standard Python exception handling.
Always keep the `smartsheet-python-sdk` up-to-date (`pip install --upgrade smartsheet-python-sdk`). Consult the `CHANGELOG.md` in the GitHub repository for breaking changes and new endpoint support.
When calling list methods, review the documentation for pagination parameters. Use `include_all=True` for convenience, or loop through `page` and `page_size` for fine-grained control.
When creating or manipulating objects, ensure you're using the correct methods on the client's service objects (e.g., `smart.Sheets.create_sheet()`) or correctly instantiating model classes with `smartsheet.Smartsheet.models.Sheet({'name': 'New Sheet'})` before passing them to service methods.No dependency data recorded yet.