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.

Source Distribution

eae-0.1.3.tar.gz (4.1 kB view hashes)

Uploaded source

Built Distribution

eae-0.1.3-py3-none-any.whl (4.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page