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.2.0.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.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stackless_sdk-0.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 93ac87da0b010fb81eeccc7bf8081f68407a24ddd32e1ce7e55773655dd00acf
MD5 09f635c41cf3016baac50b8efcf8c791
BLAKE2b-256 6e8c58c4c2442f45e9dad47e64a2d6853e1ba85f07cab52d102e1aaee49bb5c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackless_sdk-0.2.0.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: stackless_sdk-0.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d59a50ac27d3dc1e387f79fc63daa919492f1c499d73d2359e4b11ef94c9d0bb
MD5 19b858d53311c4070c420f8fe3c67415
BLAKE2b-256 cd8686481cfc610c4e33f6fe07f8cce5c295e1bf664d43a4787aabe8434fda32

See more details on using hashes here.

Provenance

The following attestation bundles were made for stackless_sdk-0.2.0-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