Installation

Stable release

To install the Palo Alto Networks Cloud Python SDK, run this command in your terminal:

$ pip install pancloud

To upgrade the Palo Alto Networks Cloud Python SDK, run this command in your terminal:

$ pip install pancloud --upgrade

If you don’t have pip installed, this Python installation guide can guide you through the process.

Using Pipenv

(The officially recommended Python packaging tool from Python.org)

To install the Palo Alto Networks Cloud Python SDK using pipenv, start by creating a virtualenv:

$ pipenv install

You can optionally specify which python version to use in your virtualenv using the following:

$ pipenv --three install

or

$ pipenv --two install

I highly recommend you move to python3 as python2 will be retiring soon.

Now it’s time to install pancloud:

$ pipenv install pancloud

To upgrade pancloud using pipenv:

$ pipenv update pancloud

From sources

The sources for the Palo Alto Networks Cloud Python SDK can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/PaloAltoNetworks/pancloud

Or download the tarball:

$ curl  -OL https://github.com/PaloAltoNetworks/pancloud/tarball/master

Once you have a copy of the source, you can install it with:

$ python setup.py install