Python client to get emulation environment recommendations from the EaaSI UVI.
Python client for getting emulation environment recommendations from the EaaSI software platform's Universal Virtual Interactor, or UVI.
After installing package with
Usage: get-eaasi-recommendations [OPTIONS] Get emulation environment suggestions from EaaSI API. Options: --eaasi-url TEXT EaaSI host URL. [required] --data-url TEXT Data URL for content to characterize. [required] --data-type TEXT Data type. Allowed values: "zip", "tar", "bagit+zip", "bagit+tar" [default: zip] --help Show this message and exit.
eaasi_uvi_client Python library consists mainly of the
EaaSIUVIClient class, which has the following public methods:
EaaSIUVIClient.get_recommendations(): returns dictionary representation of the JSON returned by EaaSI's EnvironmentProposer API endpoints; raises
EaaSIUVIClient.parse_suggested_environments(): returns list of dictionaries with suggested emulation environments from JSON returned by EaaSI's EnvironmentProposer API endpoints; raises
get_recommendations()has not yet been called.
cli/cli.py for an implementation example.
Install eaasi_uvi_client package
eaasi-uvi-client requires Python 3.6+.
pip install eaasi-uvi-client
Download this repo:
git clone https://github.com/artefactual-labs/eaasi-uvi-client.git
Change into the cloned directory and install:
cd eaasi-uvi-client/ pip install .
For development, it may be useful to install
pip install -e ., which will apply changes made to the source code
Publishing to PyPI
This repository contains a Makefile with commands to aid in building packages and publishing to [PyPI][pypi].
To check that the package is valid:
To upload the package to PyPI (this requires PyPI credentials and being
listed as a collaborator on the
To clean up package distribution files:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for eaasi_uvi_client-0.1.0-py2.py3-none-any.whl