pip install devex-sdk
or
pip install git+https://github.com/DISHDevEx/dish-devex-sdk.git
- Navigate into the root devex_sdk directory.
cd dish-devex-sdk
- Run the following command to create the wheel file
python setup.py bdist_wheel --version <VERSION_NUMBER>
NOTE: the <VERSION_NUMBER> only effects your local build. You can use any version number you like. This can be helpful in testing prior to submitting a pull request. Alternatively, you can eclude the --version <VERSION_NUMBER> flag and the .whl file name will output as devex_sdk-VERSION_PLACEHOLDER-py3-none-any.whl
- Next, pip install the wheel file by running the following command, note that the version will change depending upon the release:
pip install /dist/devex_sdk-<VERSION_NUMBER>-py3-none-any.whl
Once complete, devex_sdk will be available in your Python evironment for use. Enter your Python environment and import devex_sdk as you would with any other library or package.
>>> import devex_sdk
All functions contained in devex_sdk available for use can be listed by listing the package directory structure:
>>> dir(devex_sdk)
The package and included functions can then be used like any other Python library. Functions can be used via dot notation with the specified packages:
>>> devex_sdk.multiply(2,3)
6
Alternatively, you can import all algorithms from the devex_sdk library and use each without the use of dot notation:
>>> from devex_sdk import *
>>> multiply(2,3)
6
View version history and release notes in HISTORY.
Learn how about CONTRIBUTING to devex_sdk.
View all DevEx SDK releases on GitHub.
View all DevEx SDK release history on PyPi.