Predicate Authority Sidecar binary installer (downloads on install)
Project description
predicate-authority-sidecar
Predicate Authority Sidecar binary installer for Python.
This package automatically downloads the Predicate Authority sidecar binary for your platform.
Installation
pip install predicate-authority-sidecar
Or as an optional dependency of predicate-authority:
pip install predicate-authority[sidecar]
What happens on install
- The package is installed with its dependencies
- On first import, the sidecar binary is downloaded from GitHub releases
- The binary is placed in your platform's data directory:
- macOS:
~/Library/Application Support/predicate-authority/bin/ - Linux:
~/.local/share/predicate-authority/bin/ - Windows:
%LOCALAPPDATA%/predicate-authority/bin/
- macOS:
Manual download
You can also trigger a download manually:
predicate-download-sidecar
Or with a specific version:
predicate-download-sidecar --version v0.1.0
Usage
After installation:
from predicate_authority import run_sidecar, get_sidecar_path
# Check path
print(get_sidecar_path())
# Run sidecar
process = run_sidecar(port=8787, policy_file="policy.json")
Or from command line:
# Get the binary path
python -c "from predicate_authority import get_sidecar_path; print(get_sidecar_path())"
# Run it
$(python -c "from predicate_authority import get_sidecar_path; print(get_sidecar_path())") run --port 8787
Supported Platforms
| Platform | Architecture |
|---|---|
| macOS | Apple Silicon (arm64) |
| macOS | Intel (x64) |
| Linux | x64 |
| Linux | arm64 |
| Windows | x64 |
License
MIT / Apache-2.0
Project details
Release history Release notifications | RSS feed
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