Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install koansys.recipe.elasticsearch

How to install koansys.recipe.elasticsearch

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install koansys.recipe.elasticsearch
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
1.0.2 Available View build log
 
Author
License
LGPL 3
Lastest release
version 1.0.2 on Jan 9th, 2014

A brief documentation

This recipe takes a number of options:

url
The URL to download the jar.

Tests

We will define a buildout template used by the recipe:

>>> buildout_cfg = """
... [buildout]
... parts = elasticsearch
...
... [elasticsearch]
... recipe = koansys.recipe.elasticsearch
... url = http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.13.0.tar.gz
... """

We'll start by creating a buildout:

>>> import os.path
>>> write('buildout.cfg', buildout_cfg)

Running the buildout gives us:

>>> output = system(buildout)
>>> 'koansys.recipe.elasticsearch: downloading elasticsearch distribution...' in output
True

Check whether the binaries are copied:

>>> set(os.listdir('bin')).issuperset(['elasticsearch'])
True

A start script with the format 'start_PART-NAME_mongod.sh' should be generated.

>>> 'start_elasticsearch.sh' in os.listdir('bin')
True

It is possible to change the name of this start script with the 'script_name' option. Furthermore all options of mongod (version v1.6.0) are supported via buildout options. A more comprehensive recipe could be for example:

>>> buildout_cfg = """
... [buildout]
... parts = elasticsearch.sh
... [elasticsearch]
... recipe = koansys.recipe.elasticsearch
... url = http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.13.0.tar.gz
... script_name = start_es.sh
... quiet=true
... fork=true
... logpath=${buildout:parts-directory}/elasticsearch/log
... dbpath=${buildout:parts-directory}/elasticsearch/data
... """
1.0.2 2013-01-17
  • PyPI release
1.0.0 2010-11-30
  • Initial release

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.