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/sst/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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sst_sdk-4.14.1.tar.gz.
File metadata
- Download URL: sst_sdk-4.14.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ae449cc430936d32944b21e0b6f4c46f947e124e2d1e23407e0e2145b3044bb
|
|
| MD5 |
1ddd6bea302096d12751e53a32d5a0d3
|
|
| BLAKE2b-256 |
ed162a07a0d8fc1654693bea2605270077b537004d022005e44e9ea1c296a8a6
|
Provenance
The following attestation bundles were made for sst_sdk-4.14.1.tar.gz:
Publisher:
release.yml on anomalyco/sst
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sst_sdk-4.14.1.tar.gz -
Subject digest:
0ae449cc430936d32944b21e0b6f4c46f947e124e2d1e23407e0e2145b3044bb - Sigstore transparency entry: 1519744627
- Sigstore integration time:
-
Permalink:
anomalyco/sst@343c3699e06f170fc32826e3b6b276ddefa5eb45 -
Branch / Tag:
refs/tags/v4.14.1 - Owner: https://github.com/anomalyco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@343c3699e06f170fc32826e3b6b276ddefa5eb45 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sst_sdk-4.14.1-py3-none-any.whl.
File metadata
- Download URL: sst_sdk-4.14.1-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f466d62e088626b19b1ef452d004fe27544dce8623b7f2f8dfe0b10fe0ae9c29
|
|
| MD5 |
bf07803d107f4dfe1e1f9c61ed59c38f
|
|
| BLAKE2b-256 |
53a018381814d513f5e2144945a49936a39f974446d5447ef4935f07f3863207
|
Provenance
The following attestation bundles were made for sst_sdk-4.14.1-py3-none-any.whl:
Publisher:
release.yml on anomalyco/sst
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sst_sdk-4.14.1-py3-none-any.whl -
Subject digest:
f466d62e088626b19b1ef452d004fe27544dce8623b7f2f8dfe0b10fe0ae9c29 - Sigstore transparency entry: 1519744635
- Sigstore integration time:
-
Permalink:
anomalyco/sst@343c3699e06f170fc32826e3b6b276ddefa5eb45 -
Branch / Tag:
refs/tags/v4.14.1 - Owner: https://github.com/anomalyco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@343c3699e06f170fc32826e3b6b276ddefa5eb45 -
Trigger Event:
push
-
Statement type: