Upload data files via REST API

Once you made the metadata file, you can upload the files by following steps.

Note

The registration is required. Follow the guide video (main page) if you didn’t already.

0. Init

You have to install the environment.

$ pip install iemap

Then the login is required using username and password via iemap module.

from iemap import IEMAP

# usr is the user's email
api = IEMAP(usr, pwd)
# login
api.login()

1. Upload metadata

api.save(metadata = "path/to/metadata.json")

2. Upload data files

files = ["path/to/datafile.csv", "path/to/datafile.in", ...]
api.save_project_files(project_files = files)

Note

It is necessary to repeat the steps n.1 and n.2 for each process.

Running Example

A Jupyter notebook has been created as tutorial (notebook).

The Jupyter notebook is available on Google Colab/Drive .

Note

For any issue, you can contact the management team by emailing at: info@mission-innovation.it.