Anyscale
This package contains the command line interface and the sdk for the Anyscale platform.
View Anyscale docs here View CLI docs here View SDK docs here
Environment variables
ANYSCALE_LOG_STREAM
Selects the stream used for informational CLI and SDK output — progress messages,
block headings and spinners. Accepts stderr (the default) or stdout;
unrecognized values are treated as stderr. Warnings, errors and
ANYSCALE_DEBUG output always go to stderr, whatever this is set to.
Set ANYSCALE_LOG_STREAM=stdout when a log collector classifies everything on
stderr as an error — the GKE logging agent, for example — so that a normal
deployment stops showing up as a failure.
Commands asked for a machine-readable payload (--json, --yaml, -o json,
-o yaml) ignore this setting and keep informational output on stderr, so the
payload on stdout stays parseable.
One thing to know before turning it on: informational output can contain
sensitive values — tokens the CLI prints on purpose (anyscale service token add, anyscale service-account create) and anything echoed back from a config
you pass in, including a workload's env_vars. Treat stdout as no less
sensitive than stderr wherever the two are collected or retained differently.
ANYSCALE_EXTRA_HEADERS
Adds HTTP headers to every request the CLI and the Python SDK send to the
Anyscale API, for example a token that a corporate reverse proxy in front of
ANYSCALE_HOST requires. The value is a JSON object of header names to string
values:
export ANYSCALE_EXTRA_HEADERS='{"X-Proxy-Token": "abc", "X-Team": "ml"}'
For a single command, pass --header 'Name: Value' before the command name,
repeating it for more than one header:
anyscale --header 'X-Proxy-Token: abc' job list
In the SDK, anyscale.Anyscale(headers={...}) does the same for one client.
When more than one source sets a header of the same name, ignoring letter case,
Anyscale(headers=...) wins over --header, which wins over
ANYSCALE_EXTRA_HEADERS. Headers named in only one source are always sent.
- The client sets
Accept,Content-Length,Content-Type,Cookie,Host,Transfer-Encoding,traceparent,X-Anyscale-ClientandX-Anyscale-Client-Versionitself, so these names are rejected. Names must be HTTP tokens. Values must not be blank, and they can contain only printable ASCII characters and tabs. - Headers are read when a client is created. The CLI reads them once per
command. In an SDK script, module-level calls such as
anyscale.job.list()share one client, so setANYSCALE_EXTRA_HEADERSbefore the first call. - Requests to other hosts never carry these headers, including a redirect away from the Anyscale API, cloud storage uploads and downloads, cluster connections and the PyPI version check.
- The hidden
anyscale sessioncommands and the web terminal's command log send their API calls after the credential check with plainrequests. These calls do not carry the custom headers. - Header values are never printed or sent in usage telemetry; with
ANYSCALE_DEBUG=1the CLI prints only their names. Prefer the environment variable for secrets, because command-line arguments end up in shell history and process listings.
After making any changes to the CLI, be sure to run pip install -U -e . from within the frontend/cli directory to update your environment with the latest modifications.
Metadata
Release files for anyscale 0.26.118
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 | Actions |
|---|---|---|---|---|
| anyscale-0.26.118.tar.gz | 2.3 MB | Without provenance | Details for anyscale-0.26.118.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anyscale-0.26.118-py3-none-any.whl | Python 3 | none | any | Details for anyscale-0.26.118-py3-none-any.whl |
Total release size: 6.5 MB
Release files / anyscale-0.26.118.tar.gz
| Download URL | anyscale-0.26.118.tar.gz |
|---|---|
| Size | 2.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc00a4f52c9b1daab6438e5f145553317a53ba505f4be6b8bf6d6e6ce08c4781
|
|
BLAKE2b-256 checksum How to use checksums |
fe500d7466a96a9aa5c48f4a56811fa1dea1c75a7fe2046b172d39056dcea471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / anyscale-0.26.118-py3-none-any.whl
| Download URL | anyscale-0.26.118-py3-none-any.whl |
|---|---|
| Size | 4.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7aa41fba9fe137438cb46d8ea05dcad8438ded397c48c16e7abf00cc6f73fbf1
|
|
BLAKE2b-256 checksum How to use checksums |
cf9617d0e6b46daccf715c072eedad08e6ae4ecdbd07ddc3612053defd9fea23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for anyscale 0.26.118
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.