-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from zscaler/zia-#45-example-scripts
feat: Added examples, githubactions, flake8 linter fixes etc
- Loading branch information
Showing
119 changed files
with
4,628 additions
and
1,999 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
max-line-length = 127 | ||
max-doc-length = 127 | ||
extend_ignore = E203, W503, W605, F841 | ||
extend_ignore = E203, W503, W605, F841, C901 | ||
exclude = build,dist,.git,docs,docsrc,examples,.venv,venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Python package | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 zscaler/ --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 zscaler/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
# - name: Unit test with pytest | ||
# run: | | ||
# pytest tests/unit | ||
# - name: Integration test with pytest | ||
# run: | | ||
# pytest tests/integration |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Zscaler Python SDK Changelog | ||
|
||
## v1.0.0 | ||
- Initial Release | ||
|
||
## v1.0.0-alpha.1 | ||
|
||
- Official Release of v1.0.0-alpha.1 Zscaler Python Management SDK | ||
|
||
### Python Versions Supported: | ||
|
||
- 3.8 | ||
- 3.9 | ||
- 3.10 | ||
|
||
### Functional Files Added: | ||
|
||
### Functional Files Deleted | ||
|
||
- N/A | ||
|
||
### Deleted Models: | ||
|
||
- N/A |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Zscaler SDK Python | ||
=============== | ||
|
||
Zscaler SDK Python provides a uniform and easy-to-use interface for each of the Zscaler product APIs. | ||
|
||
Getting Started | ||
--------------- | ||
``` $ pip install zscaler-sdk-python ``` | ||
|
||
What you need | ||
-------------------- | ||
|
||
Before you can interact with any of the Zscaler APIs, you 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 Zscaler SDK Python, you're ready to go. | ||
|
||
- [ZPA API Credentials](https://help.zscaler.com/zpa/getting-started-zpa-api) | ||
- [ZIA API Credentials](https://help.zscaler.com/zia/getting-started-zia-api) | ||
|
||
Look for our quickstart guide here! | ||
- https://github.com/zscaler/zscaler-sdk-python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include CHANGELOG.md LICENSE.md README.md LONG_DESCRIPTION.md tox.ini requirements.txt | ||
recursive-include tests * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.