Skip to content

Commit

Permalink
Release 1.0.5 (#103)
Browse files Browse the repository at this point in the history
Release 1.0.5
  • Loading branch information
ddl-alexpanin committed Sep 17, 2021
1 parent 8874122 commit 260ce22
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ All notable changes to the `python-domino` library will be documented in this fi

### Added

### Changed

## 1.0.5

### Added

* Added support for launching Dask jobs
* Added the ability to choose which exceptions to ignore (if any) while polling for `job_start_blocking`
* Added several new unit tests in `test_basic_auth.py` and `test_jobs.py`
* Added a public method to re-authenticate if a token expires (assuming a long-running process)
Expand Down
39 changes: 30 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Python bindings for the Domino API.

Permits interaction with a Domino deployment from Python using the [Domino API](https://dominodatalab.github.io/api-docs/).

The latest released version is [1.0.4](https://github.com/dominodatalab/python-domino/archive/1.0.4.zip).
The latest released version is [1.0.5](https://github.com/dominodatalab/python-domino/archive/1.0.5.zip).

## Version Compatibility Matrix

Expand All @@ -15,7 +15,7 @@ The latest released version is [1.0.4](https://github.com/dominodatalab/python-d
| 3.6.x or Lower | [0.3.5](http://github.com/dominodatalab/python-domino/archive/0.3.5.zip) |
| 4.1.0 or Higher | [1.0.0](https://github.com/dominodatalab/python-domino/archive/1.0.0.zip) or Higher |

## Installation
## Installation

At this time, these Domino Python bindings are not in PyPi. You can install the latest version of this package from our Github `master` branch with the following:

Expand All @@ -30,7 +30,7 @@ You can also add `python-domino` to your `requirements.txt` file with the follow
git+git://github.com/dominodatalab/python-domino.git

Note: To install lower version of library, for example `0.3.5` use the following command:

pip install https://github.com/dominodatalab/python-domino/archive/0.3.5.zip

## Overview
Expand All @@ -53,9 +53,9 @@ The parameters are:
* *domino_token_file:* (Optional) Path to domino token file containing auth token. If not provided the library will expect to find one
in the DOMINO_TOKEN_FILE environment variable.

Note:
Note:
1. In case both api_key and domino_token_file are available, then preference will be given to domino_token_file.
2. By default the log level is set to `INFO`, to set log level to `DEBUG`, set `DOMINO_LOG_LEVEL` environment variable to `DEBUG`
2. By default the log level is set to `INFO`, to set log level to `DEBUG`, set `DOMINO_LOG_LEVEL` environment variable to `DEBUG`
<hr>

## Methods
Expand Down Expand Up @@ -87,7 +87,7 @@ Start a new run on the selected project. The parameters are:
* *isDirect:* (Optional) Whether or not this command should be passed directly to a shell.
* *commitId:* (Optional) The commitId to launch from. If not provided, will launch from latest commit.
* *title:* (Optional) A title for the run.
* *tier:* (Optional) The hardware tier to use for the run. This is the human-readable name of the hardware tier, such as "Free", "Small", or "Medium". Will use project default tier if not provided.
* *tier:* (Optional) The hardware tier to use for the run. This is the human-readable name of the hardware tier, such as "Free", "Small", or "Medium". Will use project default tier if not provided.
* *publishApiEndpoint:* (Optional) Whether or not to publish an API endpoint from the resulting output.

<hr>
Expand Down Expand Up @@ -163,7 +163,7 @@ Publishes an app in the Domino project, or republish an existing app. The parame

### app_unpublish()

Stops all running apps in the Domino project.
Stops all running apps in the Domino project.

<hr>

Expand All @@ -177,7 +177,7 @@ Starts a new Job (run) in the project
* *environment_id (string):* (Optional) The environment id to launch job with. If not provided it will use the default environment for the project
* *on_demand_spark_cluster_properties (dict):* (Optional) On demand spark cluster properties. Following properties
can be provided in spark cluster

```
{
"computeEnvironmentId": "<Environment ID configured with spark>"
Expand All @@ -191,15 +191,36 @@ Starts a new Job (run) in the project
(optional defaults to 0; 1GB is 1000MB Here)
}
```
* *param compute_cluster_properties (dict):* (Optional) The compute cluster properties definition contains parameters for
launching any Domino supported compute cluster for a job. Use this to launch a job that uses a compute cluster instead of
the deprecated `on_demand_spark_cluster_properties` field. If `on_demand_spark_cluster_properties` and `compute_cluster_properties`
are both present, `on_demand_spark_cluster_properties` will be ignored. `compute_cluster_properties` contains the following fields:

```
{
"clusterType": <string, one of "Ray", "Spark">,
"computeEnvironmentId": <string, The environment ID for the cluster's nodes>,
"computeEnvironmentRevisionSpec": <one of "ActiveRevision", "LatestRevision",
{"revisionId":"<environment_revision_id>"} (optional)>,
"masterHardwareTierId": <string, the Hardware tier ID for the cluster's master node>,
"workerCount": <number, the total workers to spawn for the cluster>,
"workerHardwareTierId": <string, The Hardware tier ID for the cluster workers>,
"workerStorage": <{ "value": <number>, "unit": <one of "GiB", "MB"> },
The disk storage size for the cluster's worker nodes (optional)>
"maxWorkerCount": <number, The max number of workers allowed. When
this configuration exists, autoscaling is enabled for the cluster and
"workerCount" is interpreted as the min number of workers allowed in the cluster
(optional)>
}
```
<hr>

### job_stop(*job_id*, *commit_results=True*):

Stops the Job (run) in the project

* *job_id (string):* Job identifier
* *commit_results (boolean):* Defaults to `True`, if `false` job results will not be committed
* *commit_results (boolean):* Defaults to `True`, if `false` job results will not be committed

<hr>

Expand Down
2 changes: 1 addition & 1 deletion domino/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.4'
__version__ = '1.0.5'
19 changes: 14 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from setuptools import setup
import pathlib
from setuptools import setup, find_packages
import re

PACKAGE_NAME = 'domino'

# The directory containing this file
HERE = pathlib.Path(__file__).parent

# The text of the README file
README = (HERE / "README.md").read_text()

def get_version():
try:
Expand All @@ -22,12 +28,15 @@ def get_version():
version=get_version(),
author='Domino Data Lab',
author_email='support@dominodatalab.com',
packages=[PACKAGE_NAME],
packages=find_packages(),
scripts=[],
url='http://www.dominodatalab.com',
license='LICENSE.txt',
url='https://github.com/dominodatalab/python-domino',
download_url='https://github.com/dominodatalab/python-domino/' + get_version() + '.zip',
license='Apache Software License (Apache 2.0)',
description='Python bindings for the Domino API',
long_description='',
long_description=README,
long_description_content_type="text/markdown",
keywords=['Domino Data Lab', 'API'],
install_requires=[
'requests>=2.4.2',
'bs4==0.*,>=0.0.1',
Expand Down

0 comments on commit 260ce22

Please sign in to comment.