Skip to main content

OCI Policy Analysis

Project description

OCI Policy Analysis

Analyze Oracle Cloud IAM policies and identity data.

📘 Full documentation:
👉 https://agregory999.github.io/oci-policy-analysis

For standalone MCP deployment on OCI Container Instances (OCIR image + instance principal), see:

For optional OAuth protection of remote MCP deployments with OCI Identity Domains, see:

Limited Mode (Web)

Quick Start (Desktop App)

python3 -m venv .venv
source .venv/bin/activate
pip install -e .
python -m oci_policy_analysis.main

Quick Start (Web App Only)

If you want web mode only (no desktop/Tk workflow):

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[web]"
oci-policy-analysis-web --host 127.0.0.1 --port 8000

Then open: http://127.0.0.1:8000

Quick Start (Using Local Helper Scripts)

Build and run by mode:

./local-build.sh --mode web
./local-run.sh --mode web --host 127.0.0.1 --port 8000

Other supported modes:

  • desktop
  • web
  • cli
  • mcp
  • all (build script only)

Server / Nohup Example (Web)

nohup ./local-run.sh --mode web --host 0.0.0.0 --port 8080 > oci-policy-analysis-web.log 2>&1 &

Check process/logs:

ps -ef | grep oci-policy-analysis-web
tail -f oci-policy-analysis-web.log

Run the Web App via PyPI (no repo clone)

(Won't work until out of beta)

Install in a virtual environment and run the packaged web entrypoint:

python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install "oci-policy-analysis[web]"
oci-policy-analysis-web

For server usage, you can run with explicit bind options:

oci-policy-analysis-web --host 0.0.0.0 --port 8080

Example startup script (start-oci-policy-analysis-web.sh):

#!/usr/bin/env bash
set -euo pipefail

source /opt/oci-policy-analysis/.venv/bin/activate
exec oci-policy-analysis-web --host 0.0.0.0 --port 8080

Then make executable and run:

chmod +x start-oci-policy-analysis-web.sh
./start-oci-policy-analysis-web.sh

Or run a packaged release right from your desktop:

oci-policy-analysis.exe   # Windows
oci-policy-analysis.app   # macOS

For the executables, disable the OS Security for the application so it can run.

  • MAC: Settings -> Privacy & Security - Open Anyway
  • Windows: Double-click EXE -> More Info - Run Anyway

Mac Windows

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

oci_policy_analysis-6.3.0.tar.gz (663.9 kB view details)

Uploaded Source

Built Distribution

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

oci_policy_analysis-6.3.0-py3-none-any.whl (598.0 kB view details)

Uploaded Python 3

File details

Details for the file oci_policy_analysis-6.3.0.tar.gz.

File metadata

  • Download URL: oci_policy_analysis-6.3.0.tar.gz
  • Upload date:
  • Size: 663.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for oci_policy_analysis-6.3.0.tar.gz
Algorithm Hash digest
SHA256 bb52a8eab97deff416c303d6cd1aea304e991aa762d49052a5ef903ce47fb23d
MD5 5172c5f4bbbd0b6d0978affa02af3eca
BLAKE2b-256 79617cba9fab6829ea05de4780357661368a96634660fe67f07251398c37b4eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for oci_policy_analysis-6.3.0.tar.gz:

Publisher: build.yml on agregory999/oci-policy-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oci_policy_analysis-6.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for oci_policy_analysis-6.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 960992345e5b07f6bd1ae010bead71f584f9349a5d382b2fce8fae04b971d8dc
MD5 e6674e0635c7add85de7b0a540722590
BLAKE2b-256 9fd3ae7cdc7e3fa03e935c30cdf3248143a6036bc090642ff761aa1551244f87

See more details on using hashes here.

Provenance

The following attestation bundles were made for oci_policy_analysis-6.3.0-py3-none-any.whl:

Publisher: build.yml on agregory999/oci-policy-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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