eaasi-uvi-client
About
Python client for getting emulation environment recommendations from the EaaSI software platform's Universal Virtual Interactor, or UVI.
Usage
Command-line interface
After installing package with pip, use get-eaasi-recommendations:
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.
Python library
The 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; raisesrequests.ConnectionErrororeaasi_uvi_client.ResultNotFoundon error.EaaSIUVIClient.parse_suggested_environments(): returns list of dictionaries with suggested emulation environments from JSON returned by EaaSI's EnvironmentProposer API endpoints; raiseseaasi_uvi_client.ResultNotFoundifget_recommendations()has not yet been called.
See cli/cli.py for an implementation example.
Installation
Install eaasi_uvi_client package
eaasi-uvi-client requires Python 3.6+.
Via PyPI
pip install eaasi-uvi-client
Manually
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 .
Development
Installation
For development, it may be useful to install eaasi-uvi-client with
pip install -e ., which will apply changes made to the source code
immediately.
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:
make package-check
To upload the package to PyPI (this requires PyPI credentials and being
listed as a collaborator on the auditmatica project):
make package-upload
To clean up package distribution files:
make clean
Metadata
Release files for eaasi-uvi-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| eaasi-uvi-client-0.1.0.tar.gz | 4.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eaasi_uvi_client-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / eaasi-uvi-client-0.1.0.tar.gz
| Download URL | eaasi-uvi-client-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e961040915e6c35994f8982c553270cbceb5116477f2480f77fccc5c6adc9aa
|
|
BLAKE2b-256 checksum How to use checksums |
0a2b468a1b0dd419ed244ddc7d7e12f1551333d52d4c9900fbffbbcd8bc2af1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.63.0 importlib-metadata/3.10.1 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9
|
Release files / eaasi_uvi_client-0.1.0-py2.py3-none-any.whl
| Download URL | eaasi_uvi_client-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1aa2cd4de1920eee1a9879c8c034c018db61b768fc3c83773f6181a85dedc7dd
|
|
BLAKE2b-256 checksum How to use checksums |
f7bead113579d18795c1f01d3716088a6cce7877454bcf2a642273cb3ed20356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.63.0 importlib-metadata/3.10.1 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9
|
Security for eaasi-uvi-client 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.