illumio/illumio-py — reverse-engineered prompt
Reverse engineered prompt
Build me a small Python library for working with the Illumio Policy Compute Engine API. I want one clear main client object, something like a PolicyComputeEngine, where I can pass the PCE hostname, port, and org ID, then set an API key and secret and start calling endpoints in a simple way.
The goal is to make common API calls feel easy and Pythonic, especially things like fetching workloads with filters such as managed status or enforcement mode, and getting back clean Python objects instead of raw messy responses. It should be aimed at Python 3 and work with Illumio Core PCE 21.2 and newer.
Please make it feel like a real reusable package, with sensible structure, basic tests, and docs or examples that show setup, authentication, and a few typical calls. If there are existing Illumio API docs or references you need, look them up and match the client behavior to those.
Want more depth? Deep Reverse