Installation Guide - madhawav/DASPythonClient GitHub Wiki

DAS Python Client can be installed as a Python Library from Source Code. No binary releases are available as of now.

Prerequisites

The following dependencies should be installed prior to installation of library.

  • Python 2.7+ or Python 3.3+
  • WSO2 Data Analytics Server 4.0.
    • Clone WSO2 DAS 4.0 from Github Repository.
    • Compile the code via Maven (mvn install from source root).
    • Extract product-das/modules/distribution/target/wso2das-4.0.0-SNAPSHOT.zip to a suitable location (say DAS_HOME).
  • Requests for Python (pip install requests)
  • Future for Python (pip install future)
  • Enum34 for Python if Python 3.3 is used (pip install enum34)
  • Java 8.0 and Maven (maven is required for installation of WSO2 DAS 4 from source)

Installation

This is the easiest method to install DAS Python Client to quickly try-out its features. Alternatively, you may download the source code and install from local copy if you are looking forward to contribute to the code.

Before installation, make sure all the prerequisites (dependencies) are resolved.

Install DAS Python Client from Online Code

Using the following PIP command, DAS Python Client can be directly installed from online code available in GitHub.

pip install git+https://github.com/madhawav/DASPythonClient.git

Note: In case of permission errors, use sudo

Install from Downloaded Code

Clone or download code from GitHub Repo.

Navigate to source code root and execute the following PIP command.

pip install .

Note the period (.) at end of command. In case of permission errors, use sudo

Uninstall

If the library has been installed as explained above, it could be uninstalled using the following pip command.

pip uninstall pydas