{"id":19925739,"url":"https://github.com/paloaltonetworks/prismacloud-api-python","last_synced_at":"2025-05-16T11:06:01.869Z","repository":{"id":37497338,"uuid":"439389735","full_name":"PaloAltoNetworks/prismacloud-api-python","owner":"PaloAltoNetworks","description":"Prisma Cloud utility scripts, and a Python SDK for Prisma Cloud APIs.","archived":false,"fork":false,"pushed_at":"2025-04-08T11:22:06.000Z","size":597,"stargazers_count":66,"open_issues_count":9,"forks_count":56,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-05-16T11:05:52.564Z","etag":null,"topics":["prisma-cloud","prisma-cloud-compute-edition"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PaloAltoNetworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-17T16:11:06.000Z","updated_at":"2025-04-09T12:46:35.000Z","dependencies_parsed_at":"2022-07-12T23:30:36.155Z","dependency_job_id":"d898dbf5-720b-4127-ac80-a5e9e2bcebdb","html_url":"https://github.com/PaloAltoNetworks/prismacloud-api-python","commit_stats":{"total_commits":462,"total_committers":21,"mean_commits":22.0,"dds":"0.33766233766233766","last_synced_commit":"ee0ca4bc5dd2be1dc20e203c2443f629ac9c0d7f"},"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaloAltoNetworks%2Fprismacloud-api-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaloAltoNetworks%2Fprismacloud-api-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaloAltoNetworks%2Fprismacloud-api-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaloAltoNetworks%2Fprismacloud-api-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaloAltoNetworks","download_url":"https://codeload.github.com/PaloAltoNetworks/prismacloud-api-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["prisma-cloud","prisma-cloud-compute-edition"],"created_at":"2024-11-12T22:23:58.457Z","updated_at":"2025-05-16T11:05:56.860Z","avatar_url":"https://github.com/PaloAltoNetworks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python SDK for the Prisma Cloud APIs\n\nThis project includes a Python SDK for the Prisma Cloud APIs (CSPM, CWPP, and CCS) in the form of a Python package.\nIt also includes reference scripts that utilize this SDK.\n\nMajor changes with Version 5.0:\n\n* Command-line argument and configuration file changes.\n\n## Table of Contents\n\n* [Setup](#Setup)\n* [Support](#Support)\n\n\n## Setup\n\nInstall the SDK via `pip3`:\n\n```\npip3 install prismacloud-api\n```\n\nPlease refer to [PyPI](https://pypi.org/project/prismacloud-api) for details.\n\n### Example Scripts\n\nPlease refer to this [scripts](https://github.com/PaloAltoNetworks/prismacloud-api-python/tree/main/scripts) directory for configuration, documentation, and usage.\n\nIf you prefer to use this SDK without using command-line options, consider these minimal examples:\n\n#### Prisma Cloud Enterprise Edition\n\n```\nimport os\nfrom prismacloud.api import pc_api\n\n# Settings for Prisma Cloud Enterprise Edition\n\nsettings = {\n    \"url\":      \"https://api.prismacloud.io/\",\n    \"identity\": \"access_key\",\n    \"secret\":   \"secret_key\"\n}\n\npc_api.configure(settings)\n\nprint('Prisma Cloud API Current User:')\nprint()\nprint(pc_api.current_user())\nprint()\nprint('Prisma Cloud Compute API Intelligence:')\nprint()\nprint(pc_api.statuses_intelligence())\nprint()\n\nprint('Prisma Cloud API Object:')\nprint()\nprint(pc_api)\nprint()\n```\n\n#### Prisma Cloud Compute Edition\n\n```\nimport os\nfrom prismacloud.api import pc_api\n\n# Settings for Prisma Cloud Compute Edition\n\nsettings = {\n    \"url\":      \"https://console.example.com/\",\n    \"identity\": \"username\",\n    \"secret\":   \"password\"\n}\n\npc_api.configure(settings)\n\nprint('Prisma Cloud Compute API Intelligence:')\nprint()\nprint(pc_api.statuses_intelligence())\nprint()\n\nprint('Prisma Cloud API Object:')\nprint()\nprint(pc_api)\nprint()\n```\n\nSettings can also be defined as environment variables:\n\n#### Environment Variables\n\n```\nsettings = {\n    \"url\":      os.environ.get('PC_URL'),\n    \"identity\": os.environ.get('PC_IDENTITY'),\n    \"secret\":   os.environ.get('PC_SECRET')\n}\n```\n\n## Support\n\nThis project has been developed by members of the Prisma Cloud CS and SE teams, it is not Supported by Palo Alto Networks.\nNevertheless, the maintainers will make a best-effort to address issues, and (of course) contributors are encouraged to submit issues and pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaloaltonetworks%2Fprismacloud-api-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaloaltonetworks%2Fprismacloud-api-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaloaltonetworks%2Fprismacloud-api-python/lists"}