fystash
Python SDK for the Fystash public API. Catalog operations are generated from
the same operation catalog as TypeScript. Ergonomic handles (Revision,
Branch, Plan, Run, Evidence) live in a handwritten layer above that
transport (ADR-0091). This package is not a second CLI.
Install
pip install fystash
Configure
Set environment variables, or pass them explicitly. The SDK does not read
~/.fystash/credentials.json unless you call Fystash.from_cli_context().
FYSTASH_API_URL default https://api.fystash.ai/v1
FYSTASH_ACCESS_TOKEN
FYSTASH_PROJECT_ID
from fystash import Fystash
fystash = Fystash.from_env()
# or: Fystash.connect(api_url=..., access_token=..., project_id=...)
Quickstart
fystash = Fystash.from_env()
revision = fystash.environments.compile_file("environment.yaml")
branch = fystash.branches.create(
revision=revision.id,
name="dev"
)
plan = fystash.runs.plan(
revision=revision.id,
branch=branch.id
)
run = plan.apply()
run.wait_ready()
run.exec(["pytest", "-q"])
evidence = run.evidence.list()
run.stop()
plan.apply() submits the digest stored on that Plan object. Retrying apply()
on the same handle reuses one idempotency key; constructing a new Plan starts a
new intent.
run.exec(argv) maps to catalog execProcess with component=workspace and
actor=agent unless overridden. It never invokes a local shell.
Errors
Failures keep the canonical envelope code. Convenience classes
(AuthenticationError, PermissionError, CapabilityUnavailableError,
ApprovalRequiredError, ConflictError, TimeoutError) wrap that envelope.
License
Apache-2.0
Metadata
Release files for fystash 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fystash-0.6.0.tar.gz | 35.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fystash-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.0 kB
Release files / fystash-0.6.0.tar.gz
| Download URL | fystash-0.6.0.tar.gz |
|---|---|
| Size | 35.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89768d0f5a6ca7a7262d1bf97a4dfe996872d34020d5d4c9045a2c30569d0cfe
|
|
BLAKE2b-256 checksum How to use checksums |
79f63fd0820f57c2bebff683074025005a1f4b615ead341327752caff295034f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / fystash-0.6.0-py3-none-any.whl
| Download URL | fystash-0.6.0-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6d9a065ab214cdd612e86e572ab1410f9c5dde21ff72323520a36b57b574212
|
|
BLAKE2b-256 checksum How to use checksums |
f7a61e0b1c89e6578819b0334633ff269f1c84e8274298eba664166bbdfc236a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for fystash 0.6.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.