Skip to main content

Pip package to interact with the eAE-interface

Project description

# eAE for python
Python pip package to interact with the eAE.

# Install

eAE has two pre-requisites: requests and requests_toolbelt.
The simplest way to install eAE is to use the **Py**thon **P**ackage **I**ndex (PyPI):

# For a first installation
pip install eAE

# For upgrading to the latest release
pip install --upgrade eAE

## *Example of an eAE script to submit a job*

# We import the eAE package
from eAE import eAE

directory = ''

# We create the connection to the backend
eae = eAE.eAE("admin", "admin", "")

# We list the jobs with their associated parameters
parameters = ["first_analysis_type 0 1"]

# We list the required files for the analysis to be sent to the back-end
data_files = ["", "faust.txt"]

# We submit a job
answer = eae.submit_jobs("python2", "", parameters, data_files)

# We check that the submission has been successful

answer = { "status": "OK",
"jobID": "5c47530c6ad68800121c72be",
"jobPosition": 1,
"carriers": [

# We check the current status of the job
status = eae.get_job(answer['jobID'])


status = {
'status': ['eae_job_completed', 'eae_job_done', 'eae_job_running', 'eae_job_scheduled', 'eae_job_queued', 'eae_job_transferring_data', 'eae_job_created'],
'startDate': '2018-01-22T17:29:53.983Z',
'main': '',
'endDate': '2018-01-22T17:30:14.077Z',
'executorPort': '9000',
'executorIP': '',
'stdout': 'Hello World !\n',
'output': ['test_out.txt'],
'params': ['first_analysis_type 0 1'],
'statusLock': False,
'stderr': '',
'requester': 'admin',
'swiftData': {},
'input': ['', 'faust.txt'],
'message': {'context': 'success'},
'_id': '5c47530c6ad68800121c72be',
'type': 'python2',
'exitCode': 0

# We download the results
result = eae.get_job_result(directory, answer['jobID'])

# We have a look at the computed result
Hello World !
The Project Gutenberg EBook of Faust, by Johann Wolfgang Von Goethe

This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for eae, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size eae-0.1.3-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size eae-0.1.3.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page