Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
81a3b75
added gitignore
katzy687 Oct 1, 2021
59eef4b
refactored all post requests
katzy687 Oct 1, 2021
be7d449
refactored folder structure
katzy687 Oct 2, 2021
23475df
added auth methods
katzy687 Oct 5, 2021
25d1987
components class added
katzy687 Oct 8, 2021
e722362
added state management to start / stop commands
katzy687 Oct 9, 2021
faa1d66
basic tests added
katzy687 Oct 22, 2021
d5c65f5
changed init files to remove author
katzy687 Oct 24, 2021
7dd06cd
testing init changes
katzy687 Oct 24, 2021
c67b632
refactored exception formatting and added tests
katzy687 Oct 25, 2021
038cd3f
commiting tests
katzy687 Oct 26, 2021
b959702
saving sample in main
katzy687 Oct 28, 2021
e2f15db
black formatted
katzy687 Oct 28, 2021
a6c162f
updated docs
katzy687 Nov 26, 2021
e324a77
updated gitignore
katzy687 Nov 26, 2021
29998c6
all tests passing
katzy687 Nov 27, 2021
ea56813
black reformatted
katzy687 Nov 27, 2021
94a53f2
isort fix
katzy687 Nov 27, 2021
c386fcd
black formatted
katzy687 Nov 27, 2021
8baa18e
all linting passed!
katzy687 Nov 27, 2021
5755e95
Delete cloudshell/__pycache__ directory
katzy687 Nov 27, 2021
7ec3398
Delete cloudshell/sandbox_rest/__pycache__ directory
katzy687 Nov 27, 2021
b096ac9
modify git ignore
katzy687 Nov 27, 2021
51a8512
black formatted init
katzy687 Nov 27, 2021
c12d9c3
Merge branch 'class-refactor' of https://github.com/QualiSystemsLab/S…
katzy687 Nov 27, 2021
b028c41
added utility token refresh method
katzy687 Nov 27, 2021
675b9b7
added new test
katzy687 Nov 27, 2021
c79e90d
refactored project files
katzy687 Nov 28, 2021
9173692
tests passing
katzy687 Dec 6, 2021
81a2895
edit signature
katzy687 Dec 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea/
.pytest_cache/
*.egg
*.egg-info
tests/.env
*.zip
dist/
build/
*.pyc
venv
44 changes: 44 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.4.2
hooks:
- id: isort
language_version: python3.7
args: [ --line-length=127 ]
- repo: https://github.com/python/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
args: [ --line-length=127 ]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
additional_dependencies: [
flake8-docstrings,
flake8-builtins,
flake8-comprehensions,
flake8-print,
flake8-eradicate,
]
language_version: python3.7
args: [
--max-line-length=127,
'--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D200,D205,D210,D400,D401,W503,E203,F403,F405,T001'
]
# See https://stackoverflow.com/questions/61238318/pylint-and-pre-commit-hook-unable-to-import/61238571#61238571
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [ python ]
args: [
--max-line-length=127,
--max-public-methods=32,
--max-args=13,
'--disable=too-few-public-methods,logging-fstring-interpolation,too-many-instance-attributes,no-else-return,too-many-locals,no-self-use,duplicate-code,broad-except,logging-not-lazy,unspecified-encoding, unused-wildcard-import,missing-function-docstring,missing-module-docstring,import-error,wildcard-import,invalid-name,redefined-outer-name,no-name-in-module, arguments-differ',
'--good-names=ip,rc,eval'
]
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

MIT License

Copyright (c) 2021

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 NON-INFRINGEMENT. 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.
20 changes: 20 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python/)
[![PyPI version](https://badge.fury.io/py/cloudshell-sandboxapi-wrapper.svg)](https://badge.fury.io/py/cloudshell-sandboxapi-wrapper)

# Cloudshell Sandbox API Wrapper
A python client implementation of the [cloudshell sandbox api](https://help.quali.com/Online%20Help/0.0/Portal/Content/API/CS-Snbx-API-Topic.htm?Highlight=sandbox%20api).

This client provides an object-oriented interface to instantiating an api session and interacting with the endpoints.
All methods return a loaded python dictionary/list of the [documented](https://help.quali.com/Online%20Help/0.0/Portal/Content/API/RefGuides/Sndbx-REST-API/REST-API-V2-Ref-Guide.htm?tocpath=CloudShell%20API%20Guide%7CCloudShell%20Sandbox%20API%7C_____3) json responses.
No additional library object wrapping implemented.


### Installation

```
pip install cloudshell_sandboxapi_wrapper
```
## Usage
```python
pass
```
27 changes: 0 additions & 27 deletions README.rst

This file was deleted.

Loading