Skip to content

Commit 39c6bc3

Browse files
committed
v2.2 Added new functions and bug fixed
• Functions for System Security Rules • Functions for Objects • Functions for License • Functions for tags • Added pFilter param in generic Attributes • Normalized puid as uuid parameter
1 parent 2ab5ca3 commit 39c6bc3

File tree

6 files changed

+187
-45
lines changed

6 files changed

+187
-45
lines changed

ChangeLog.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
Change Log, updated 16/09/2020
1+
Change Log, updated 22/10/2020
2+
v2.2 Added new functions and bug fixed
3+
� Functions for System Security Rules
4+
� Functions for Objects
5+
� Functions for License
6+
� Functions for tags
7+
� Added pFilter param in generic Attributes
8+
� Normalized puid as uuid parameter
9+
10+
v2.1 Refactored package
11+
� Splitted modules for controller and interfaces
12+
� Unlinked package version from API version
213

314
v2.0 Restructured as package
4-
thanks to xmatthias for this work
15+
Thanks to @xmatthias for this work
516
� Splitted the code into files according to package requirements
617

718
v1.9 NTLM & vproxy improvements

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ qsAPI is a client for Qlik Sense QPS and QRS interfaces written in python that p
55

66
You could use your preferred IDE (Eclipse, Visual Code, NetBeans, etc.) with the python interpreter 3.x or directly in console. Take a look at (https://www.python.org). Once the module is loaded you can view a list of available commands with the autocomplete tooltips.
77

8-
Just execute in the command line (`requests` library and dependencies will be installed):
8+
Just execute in the command line (libraries and dependencies will be installed):
99

1010
```python
1111
pip install qsAPI
@@ -65,7 +65,7 @@ for app in qrs.AppGet(pFilter="stream.name ne 'None'"):
6565

6666
#### Retrieve security rules using a filter
6767
```python
68-
qrs.SystemRules("type eq 'Custom'")
68+
qrs.SystemRulesGet("type eq 'Custom'")
6969
```
7070

7171
#### Retrieve a list of sessions for a user
@@ -87,13 +87,13 @@ Alternative use as command line is available too, examples:
8787

8888
```
8989
qsAPI --help
90-
qsAPI -s myServer -c dir/client.pem -Q QRS StreamDictAttributes
90+
qsAPI -s myServer -c dir/client.pem -Q QRS TaskStartbyName "Reload License Monitor"
9191
qsAPI -s myServer -c dir/client.pem -Q QRS -v INFO AppExport d8b120d7-a6e4-42ff-90b2-2ac6a3d92233
9292
qsAPI -s myServer -c dir/client.pem -Q QRS -v INFO AppReload 79f0c591-67de-4ded-91ae-4865934a5746
9393
```
9494

9595
## TODO
96-
The module is in progress, a subset of methods are implemented. But all the endpoints could be handled through the inner class `driver` and the methods `get, post, put, delete`.
96+
The module is in progress, a subset of methods are implemented. But all the endpoints could be implemented through the inner class `driver` and the methods `get, post, put, delete`.
9797

9898
```python
9999
qps.driver.get('/qrs/about/api/enums')

qsAPI/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
'''
2222

23-
__version__ = "2.1.0"
24-
__updated__ = '16/10/2020'
23+
__version__ = "2.2.0"
24+
__updated__ = '22/10/2020'
2525

2626

2727
from ._interfaces import QPS, QRS
2828

29-
__all__ = ('QPS','QRS')
29+
__all__ = ['QPS','QRS']

qsAPI/__main__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
def main():
66
'''
77
Alternative command line invocation, examples:
8-
qsAPI -s myServer -c dir/client.pem -Q QRS AppDictAttributes
9-
qsAPI -s myServer -c dir/client.pem -Q QRS -v INFO AppExport d8b120d7-a6e4-42ff-90b2-2ac6a3d92233
10-
python -m qsAPI -s myServer -c dir/client.pem -Q QRS -v INFO AppReload d8b120d7-a6e4-42ff-90b2-2ac6a3d92233
8+
qsAPI -s myServer -c dir/client.pem -Q QRS TaskStartbyName "Reload License Monitor"
9+
qsAPI -s myServer -c dir/client.pem -Q QRS -v ERROR AppExport d8b120d7-a6e4-42ff-90b2-2ac6a3d92233
10+
python -m qsAPI -s myServer -c dir/client.pem -Q QRS -v WARNING AppReload d8b120d7-a6e4-42ff-90b2-2ac6a3d92233
1111
1212
'''
1313
from argparse import ArgumentParser
@@ -25,8 +25,7 @@ def main():
2525
help='path to client.pem certificate.')
2626
parser.add_argument('-P', dest='vproxy', required=False,
2727
help='virtual proxy preffix if needed.')
28-
parser.add_argument(
29-
"-Q", dest="api", choices=['QPS', 'QRS'], default='QRS', required=True, help="service API")
28+
parser.add_argument("-Q", dest="api", choices=['QPS', 'QRS'], default='QRS', help="service API")
3029
parser.add_argument("-v", dest="verbose", choices=[
3130
'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], default='INFO', help="set verbosity level")
3231
parser.add_argument('--version', action='version',

0 commit comments

Comments
 (0)