Skip to main content

Python SDK for SST — access linked resources in your SST app

Project description

SST Python SDK

The Python SDK for SST lets you access linked resources in your Python Lambda functions.

Installation

pip install sst-sdk

Or with uv:

uv add sst-sdk

Migrating from the Git dependency

If you were previously installing the SDK from GitHub:

# Before
[project]
dependencies = ["sst"]

[tool.uv.sources]
sst = { git = "https://github.com/anomalyco/sst", subdirectory = "sdk/python" }

Update your pyproject.toml to use the PyPI package instead:

# After
[project]
dependencies = ["sst-sdk"]

That's it — remove the [tool.uv.sources] entry for sst and replace the dependency name. No code changes needed; from sst import Resource works the same way.

Usage

Use Resource to access any resource linked to your function in sst.config.ts:

from sst import Resource

# Access linked resources by name
bucket_name = Resource.MyBucket.name
table_name = Resource.MyTable.name

Resources are defined and linked in your sst.config.ts:

const bucket = new sst.aws.Bucket("MyBucket");

new sst.aws.Function("MyFunction", {
  handler: "handler.main",
  link: [bucket],
});

The SDK reads resource bindings from encrypted environment variables set by SST at deploy time. In sst dev, resources are available automatically through the local development bridge.

Supported Python Versions

  • Python 3.9+

Links

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

sst_sdk-4.14.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

sst_sdk-4.14.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file sst_sdk-4.14.3.tar.gz.

File metadata

  • Download URL: sst_sdk-4.14.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sst_sdk-4.14.3.tar.gz
Algorithm Hash digest
SHA256 d1459a9cae9a11cca3d0536e0e5ed2a93b985921f426981b884fccb160213b56
MD5 ae18f94fedb2c13b572b5e2dde216744
BLAKE2b-256 9eaafa01df8b39e82ba9d066af0785dc520ff7fe731da813d6f02157b7cd4326

See more details on using hashes here.

Provenance

The following attestation bundles were made for sst_sdk-4.14.3.tar.gz:

Publisher: release.yml on anomalyco/sst

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sst_sdk-4.14.3-py3-none-any.whl.

File metadata

  • Download URL: sst_sdk-4.14.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sst_sdk-4.14.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0a2c4b827a7877845f8c0b4ae5b1a069d438ffe979f3afd1260f4d1f4128a83f
MD5 89beabea54eadf4a6db6661b9f7fed8e
BLAKE2b-256 03b127db251d8f86b1a8b6e134c1788fbfa9faeff9f5621f24c21dfba03554cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for sst_sdk-4.14.3-py3-none-any.whl:

Publisher: release.yml on anomalyco/sst

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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