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
Metadata
Release files for sst-sdk 4.17.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sst_sdk-4.17.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sst_sdk-4.17.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / sst_sdk-4.17.1.tar.gz
| Download URL | sst_sdk-4.17.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
157f3be5ca45bf31df726e94e783f4aae1dfad88b0cfe75280a099814f62eb45
|
|
BLAKE2b-256 checksum How to use checksums |
172751857c06b3fca57b5ca026c2d7f00e1b01899923176ec2ab73a1b979a67a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logRelease files / sst_sdk-4.17.1-py3-none-any.whl
| Download URL | sst_sdk-4.17.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72dac8ae894c0298e4a5a109c5bf593cc80f7bcf1abc42281c181665204fc3d8
|
|
BLAKE2b-256 checksum How to use checksums |
a038fc677cf6e186051678f92f417a17bb72a8de9da7fa00d3d72d9c2e91e51e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency log