- Python 3.x
- Requests library
- Dotenv library (for managing environment variables)
Before running the script, ensure you have Python 3 installed on your system.
It's recommended to run this script in a Python virtual environment to manage dependencies effectively.
- Create and activate a Virtual Environment:
python3 -m virtualenv venv && source venv/bin/activate
- Installing Dependencies:
Install the required Python libraries in your virtual environment:
pip install -r requirements.txt
Create a .env file in the same directory as your script with the following environment variables:
PRISMA_API_URL=your_prisma_api_url
PRISMA_ACCESS_KEY=your_access_key
PRISMA_SECRET_KEY=your_secret_key
Replace your_prisma_api_url, your_access_key, and your_secret_key with your actual Prisma Cloud API URL, access key, and secret key.
python3 main.py
Enable debug logging to get more detailed output:
python3 main.py --debug