CLI for PSA workspace
Project description
psa-strategy-cli
Command-line interface for PSA strategy evaluation contracts.
Run commands from the cli/ directory:
cd cli
Commands
psa evaluate-point --input <path|-> --output <path|-> [--pretty]psa evaluate-rows --input <path|-> --output <path|-> [--pretty]psa evaluate-ranges --input <path|-> --output <path|-> [--pretty]psa --version
- means standard stream (stdin for --input, stdout for --output).
Input and output
- Input must be a JSON request matching the command request schema.
- Output is JSON response (
{"row": ...}or{"rows": [...]}). - By default, output JSON is compact.
--prettyenables indented output.
Examples
Evaluate point from file to stdout
uv run psa evaluate-point \
--input ../examples/bear_accumulate_point.json \
--output -
Evaluate rows with pretty output file
uv run psa evaluate-rows \
--input ../examples/batch_timeseries_rows.json \
--output /tmp/rows.json \
--pretty
Evaluate ranges with stdin/stdout
cat ../examples/range_timeseries_rows.json | \
uv run psa evaluate-ranges --input - --output -
Exit codes
0: success2: CLI argument error3: I/O or JSON parsing error4: schema/contract/runtime validation error1: unexpected internal error
Schema loading
CLI searches request schemas in this order:
PSA_SCHEMA_DIR(if set)- packaged schemas bundled inside the installed
psa-strategy-clidistribution - repository
schemas/directory (development fallback)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psa_strategy_cli-0.1.0.tar.gz.
File metadata
- Download URL: psa_strategy_cli-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eed8da4fb8c1ebbda7484d66621e95a449d60306fc5d55836d0c953ca32c285
|
|
| MD5 |
8391a39c2f864990c862fa3f629adf56
|
|
| BLAKE2b-256 |
30353b2d832d819ccfc3d5702cb153b998d0361a5d62042e3e355f2a3d7b4e15
|
File details
Details for the file psa_strategy_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: psa_strategy_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c85bc7906849520fdb5391abe3144131bab3564d97be1bc71b8729c580a80e7b
|
|
| MD5 |
d769957f8bd5ef9f19ec402435ff9251
|
|
| BLAKE2b-256 |
423f3d9bd358878799a15e5404230f905c24da55a3c8c92cc66cea4c650b9087
|