Skip to content

antmicro/distant-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distant-rs

Copyright (c) 2019-2020 Antmicro

This repository contains code of distant-rs, a library for uploading and processing invocations in services implementing Google's ResultStore API.

Installation

In order to install the library, clone this repository and run pip3 install distant-rs/.

Configuration

If an application implementing this library is running inside the Compute Engine, all requests will be authenticated using Application Default Credentials and the project ID will be pulled from the GCE's Metadata Server.

However, if that's not the case, the GOOGLE_APPLICATION_CREDENTIALS and GOOGLE_PROJECT_ID environment variables must be set to the path of a file containing JSON-encoded service account credentials and to the project number, respectively.

Additionally, make sure that the DISTANT_RS_BUCKET environment is set to the name of a Google Cloud Storage bucket where log files and artifacts will be uploaded. The aforementioned service account must have the write access to the bucket and the bucket must be publicly accessible (i.e. the allUsers role has the Storage Object Viewer permission).

All of the parameters specified above override the values provided in the constructor of the Invocation class.

Examples

See the examples directory for potential use cases of the library.

License

Apache 2.0

Releases

No releases published

Packages

 
 
 

Languages