{"id":19873048,"url":"https://github.com/checkpointsw/cp_mgmt_api_python_sdk","last_synced_at":"2025-05-16T03:04:19.539Z","repository":{"id":25280104,"uuid":"101538066","full_name":"CheckPointSW/cp_mgmt_api_python_sdk","owner":"CheckPointSW","description":"Check Point API Python Development Kit simplifies the use of the Check Point Management APIs.","archived":false,"fork":false,"pushed_at":"2025-02-06T12:28:13.000Z","size":148,"stargazers_count":96,"open_issues_count":4,"forks_count":60,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-05-16T03:04:12.855Z","etag":null,"topics":["gaia-api","management-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CheckPointSW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-27T07:56:35.000Z","updated_at":"2025-04-17T06:47:15.000Z","dependencies_parsed_at":"2024-06-21T16:42:05.953Z","dependency_job_id":"5cd8b60b-8920-4869-bd52-fe6a8c4371c4","html_url":"https://github.com/CheckPointSW/cp_mgmt_api_python_sdk","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp_mgmt_api_python_sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp_mgmt_api_python_sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp_mgmt_api_python_sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CheckPointSW%2Fcp_mgmt_api_python_sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CheckPointSW","download_url":"https://codeload.github.com/CheckPointSW/cp_mgmt_api_python_sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"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":["gaia-api","management-api"],"created_at":"2024-11-12T16:17:39.152Z","updated_at":"2025-05-16T03:04:14.498Z","avatar_url":"https://github.com/CheckPointSW.png","language":"Python","readme":"# cp_mgmt_api_python_sdk\nCheck Point API Python Development Kit simplifies the use of the Check Point Management APIs. The kit contains the API library files, and sample files demonstrating the \ncapabilities of the library. The kit is compatible with python 2 and 3.\n\n## Content\n`cpapi` - the API library project.\n\n`add_access_rule` - demonstrates a basic flow of using the APIs: performs a login command, adds an access rule to the top of the access policy layer, and publishes the changes.\n\n`clone_host` - demonstrates cloning and replacing an existing host with a cloned host.\n\n`discard_sessions` - demonstrates how to discard the changes to the database for un-published sessions.\n\n`find_duplicate_ip` - demonstrates searching for all the hosts that share the same IP address.\n\n###### For examples, see the relevant Python version folder.\n\n## Instructions\n### SDK usage from a remote machine\nInstall the SDK by using the pip tool or by downloading the repository.\n\n#### Install with pip\nRun:\n```\npip install cp-mgmt-api-sdk\n```\nOr:\n```\npip install git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk\n```\n###### Note: you might be required to use \"sudo\" for this command.\n#### Download the repository\nClone the repository with this command:\n```\ngit clone https://github.com/CheckPointSW/cp_mgmt_api_python_sdk\n```\nor by clicking on the _‘Download ZIP’_ button and using unzip. \u003cbr\u003e\n\nNavigate to `.../cp_mgmt_api_python_sdk/` directory and run:\n```\npip install .\n```\n\n#### Upgrade \nUpgrade the SDK by using pip tool:\n```\npip install --upgrade git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk\n```\n###### Note: you might be required to use \"sudo\" for this command.\n\n#### Uninstall\nUninstall the SDK by using pip tool:\n```\npip uninstall cp-mgmt-api-sdk\n```\n###### Note: you might be required to use \"sudo\" for this command.\n\n### SDK usage from a management machine\nFollow the instructions above in the [\"Download the repository\"](#download-the-repository) section, to download the repository but do *not* run `pip install .`\n\nAfter the downloading, copy the SDK to the machine (use scp, WinSCP or similar tool).\n\nConfigure your environment variables\n```\nexport PYTHONPATH=$PYTHONPATH:\u003c“CP-SDK” FULL PATH\u003e\n```\nFor example, if you copied the SDK to the path “/home/admin/” the command will be: \u003cbr\u003e\n```export PYTHONPATH=$PYTHONPATH:/home/admin/cp_mgmt_api_python_sdk/```\n###### Note: When downloading the repository, directory name will be cp_mgmt_api_python_sdk-master.\n\n## Development Environment\nThe kit is developed using Python versions 2.7 and 3.7\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckpointsw%2Fcp_mgmt_api_python_sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckpointsw%2Fcp_mgmt_api_python_sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckpointsw%2Fcp_mgmt_api_python_sdk/lists"}