Skip to main content

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

  1. The package is installed with its dependencies
  2. On first import, the sidecar binary is downloaded from GitHub releases
  3. 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/

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

predicate_authority_sidecar-0.3.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

predicate_authority_sidecar-0.3.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file predicate_authority_sidecar-0.3.4.tar.gz.

File metadata

File hashes

Hashes for predicate_authority_sidecar-0.3.4.tar.gz
Algorithm Hash digest
SHA256 d0f38abfb22e9fc26e997f5c80178134a8aba51ffeae66558e0d6a6b966744dc
MD5 e8f9774255f1b4f7874c92d7bab87e3e
BLAKE2b-256 4aff1f9820f661e3d2e6244ee31e437096a52dcaf3ea0960aa51a7d6035ca225

See more details on using hashes here.

File details

Details for the file predicate_authority_sidecar-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for predicate_authority_sidecar-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bd5ccdd08d6de6ae9429865839a4a80343ddc6ac0333eebc0f3085c92638a4a6
MD5 24113de0bfca86a6f63022a88bbc25e6
BLAKE2b-256 949bf3301b78ef60b265f9d6bb76d59c6bcb2f2199d094de76a7ff47d9363b84

See more details on using hashes here.

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