Skip to main content

A python SDK for Zscaler.

Project description

pyZscaler - An unofficial SDK for the Zscaler API

PyPI pyversions Documentation Status GitHub release

pyZscaler is an SDK that provides a uniform and easy-to-use interface for each of the Zscaler product APIs.

This SDK is not affiliated with, nor supported by Zscaler in any way.

Installation

The most recent version can be installed from pypi as per below.

$ pip install pyzscaler

Usage

You may need to generate API keys or retrieve tenancy information for each product that you are interfacing with. Once you have the requirements and you have installed pyZscaler, you're ready to go.

Quick ZIA Example

from pyzscaler.zia import ZIA
from pprint import pprint

zia = ZIA(api_key='API_KEY', cloud='CLOUD', username='USERNAME', password='PASSWORD')
for user in zia.users.list():
    pprint(user)

Quick ZPA Example

from pyzscaler.zpa import ZPA
from pprint import pprint

zpa = ZPA(client_id='CLIENT_ID', client_secret='CLIENT_SECRET', customer_id='CUSTOMER_ID')
for app_segment in zpa.app_segments.list():
    pprint(app_segment)

Contributing

Please see the Contribution Guidelines for more information.

Issues

Please feel free to open an issue using Github Issues if you run into any problems using pyZscaler.

License

MIT License

Copyright (c) 2021 Mitch Kelly

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyzscaler-0.6.0.tar.gz (59.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyzscaler-0.6.0-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file pyzscaler-0.6.0.tar.gz.

File metadata

  • Download URL: pyzscaler-0.6.0.tar.gz
  • Upload date:
  • Size: 59.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.5 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for pyzscaler-0.6.0.tar.gz
Algorithm Hash digest
SHA256 637dd6d8751caecbec84c3077c4ace2e8a00f15c7f88e021a95506a3dbfdfe49
MD5 e9baef78f46dc112f1cea9f5b6243fa9
BLAKE2b-256 84efd850fc858b8bc4d165fb4f548dcc26e7cf8f2062d4e866bee24f159f5172

See more details on using hashes here.

File details

Details for the file pyzscaler-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: pyzscaler-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.5 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for pyzscaler-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b782f2a1e90d1f032d4cacd2bf74089bb54273742f578c4480ef804d24fa9f43
MD5 1c4f02e6d3b5509e2499dbeae045c431
BLAKE2b-256 16a3394350881599085ed277f7cf447ed894bf33bdab5c54d4a0edf4cd860f6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page