Skip to main content

CLI-backed Python SDK for stackless lifecycle verbs

Project description

stackless-sdk (Python)

CLI-backed SDK for stackless. Spawns the stackless binary with --json and parses stdout envelopes (see ../PROTOCOL.md).

The PyPI distribution is stackless-sdk; the import package remains stackless.

Install

pip install stackless-sdk

Editable (from this repo):

pip install -e "sdks/python[dev]"

Usage

from stackless import Client, Create, Resume

client = Client.system()
out = client.up(Create(on="local", file="stackless.toml", name="demo"))
print(out.origins["web"])
print(out.integrations.get("clerk", {}))
client.down("demo")

Binary resolution: STACKLESS_BIN, then stackless on PATH.

Secrets

Successful up --json stdout may include integration credentials. Do not log raw JSON in CI without redaction.

Tests

cd sdks/python && python -m pytest

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

stackless_sdk-0.1.71.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

stackless_sdk-0.1.71-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file stackless_sdk-0.1.71.tar.gz.

File metadata

  • Download URL: stackless_sdk-0.1.71.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for stackless_sdk-0.1.71.tar.gz
Algorithm Hash digest
SHA256 a3bac811cbebfec5d62656631a7006ae447f4e95b3a7d40059f43e4191ca26a0
MD5 1dcc62c88abeddb357f26b4c38091509
BLAKE2b-256 40c6fc56bcf103702c23648c066fa78c7493775f766562bad1bc346f9eb8d367

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackless_sdk-0.1.71.tar.gz:

Publisher: publish-packages.yml on snowmead/stackless

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

File details

Details for the file stackless_sdk-0.1.71-py3-none-any.whl.

File metadata

  • Download URL: stackless_sdk-0.1.71-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for stackless_sdk-0.1.71-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b7a61012a11843f2cee9e0da6789d2e599baadf7907256b41843aa32e80e95
MD5 165eff424d520361d33dc591c2ce958b
BLAKE2b-256 c2593a8f5c4e6b748037cfd19273e6c3e3408a140113e1ff17f7a9cd46b9d8e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackless_sdk-0.1.71-py3-none-any.whl:

Publisher: publish-packages.yml on snowmead/stackless

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