-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README file and a build script; minor changes in error handling…
… in the *.py files
- Loading branch information
Showing
6 changed files
with
60 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Python-based command line tools for accessing a WebCTRL server via its WSDL interface | ||
|
||
Prerequisits | ||
------------ | ||
|
||
1) Python 2.7 | ||
2) In order to use the WSDL API you need to download and install the SUDS python package | ||
Download suds-0.4.tar.gz here: https://pypi.python.org/pypi/suds | ||
Install via command line: $ sudo pip install suds-0.4.tar.gz | ||
3) If you don't want to execute the scripts from within an IDE (e.g. Pycharm) you could install pythoninstaller | ||
to build the tools: $ sudo pip install pyinstaller | ||
|
||
Building the tools | ||
------------------ | ||
|
||
webctrl$ ./build_project.sh | ||
|
||
The executables can be found in ./dist/wc_*/wc_* | ||
|
||
Running the tools | ||
----------------- | ||
|
||
e.g.: webctrl$ ./dist/wc_query/wc_query | ||
|
||
When you run the tools without any arguments you will be prompted with how to use the commands and which | ||
arguments to pass. | ||
|
||
|
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,11 @@ | ||
#!/bin/bash | ||
|
||
PYDIR=. | ||
INSTALLDIR=dist/. | ||
|
||
for FILE in ${PYDIR}/*.py; do | ||
pyinstaller --distpath ${INSTALLDIR} ${FILE} | ||
done | ||
|
||
|
||
|
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
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