Nemesis Client

Nemesis client is the main object you will use to interface with Elasticsearch.

Nemesis

class nemesis.Nemesis(username, password, es_host=None, cloud_id=None)

Nemesis is our main class for which the whole project revolves around.

Parameters
  • username (str) – username to Auth against Elasticsearch

  • password (str) – password to Auth against Elasticsearch

  • es_host (str, optional) – URL where to Auth against Elasticsearch

  • cloud_id (str, optional) – Cloud ID where to Auth against Elasticsearch

get_client_for(resource)

For a given resource, return the right python client.

Parameters

resource (nemesis.resources) – Nemesis resource

launch(verbose=False)

Method to deploy resources to Elasticsearch.

preview(verbose=False)

Preview a resource vs the existing resource in Elasticsearch.

register(resource, force=False, pre_deploy=None, post_deploy=None)

Register a resource with Nemesis to be deployed to Elasticsearch.