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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stackless_sdk-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 806415f565252d02002a561d82dfe0971ffaa159be14db9f17003fbe91e3879d
MD5 7149bc6406cad1c12ee6436e84ffa839
BLAKE2b-256 2e5b817a3d7359dc72f20c94359495d014fa16614e39fd785d6de772a3e29bde

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: stackless_sdk-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9df5c6a031c25e2e4bc24f85b7bdb9bc733544cc54e6f615edbef944ba6ddf01
MD5 4a13be166de8d8d445255abd2b4b5610
BLAKE2b-256 7a1d98bd6480b4b156f62d0fd2375670e08c612f96d943954203d88717582412

See more details on using hashes here.

Provenance

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