Turns DLHub metadata into functional Python objects
Project description
# DLHub home_run
[![Build Status](https://travis-ci.org/DLHub-Argonne/home_run.svg?branch=master)](https://travis-ci.org/DLHub-Argonne/home_run) [![Coverage Status](https://coveralls.io/repos/github/DLHub-Argonne/home_run/badge.svg?branch=master)](https://coveralls.io/github/DLHub-Argonne/home_run?branch=master) [![PyPI version](https://badge.fury.io/py/home-run.svg)](https://badge.fury.io/py/home-run)
home_run is a tool used by [the Data and Learning Hub for Science](https://www.dlhub.org) internally to turn a bunch of files and a recipe into an functional Python object.
## Installation
home_run is on PyPi. Install it by calling
`bash pip install home_run `
home_run is designed to be as light-weight as possible, and has only requests as a dependency.
## Technical Details
The key ingredients for using home_run are files describing a function that will be served by DLHub. These include a metadata file describing the servable (see [dlhub_sdk](http://github.com/dlhub-argonne/dlhub_sdk) for tools for creating these files, and [dlhub_schemas](http://github.com/dlhub-argonne/dlhub_schemas) for the schemas), and the actual files that make up the servable (e.g., a Keras hdf5 file).
Each particular type of servable has its own recipe for going from these files to a Python object. All recipes are a subclass of BaseServable, which provides the general framework for defining a servable object. Each subclass has a matching BaseMetadataModel class in dlhub_sdk. For example, the type of servable that can be described by the PythonStaticMethodModel can be run by the PythonStaticMethodServable.
## Project Support This material is based upon work supported by Laboratory Directed Research and Development (LDRD) funding from Argonne National Laboratory, provided by the Director, Office of Science, of the U.S. Department of Energy under Contract No. DE-AC02-06CH11357.
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
Built Distribution
File details
Details for the file home_run-0.3.1.tar.gz
.
File metadata
- Download URL: home_run-0.3.1.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e5a35828bff89df85d9a819d5c74fcf81b8dae7e6aeb83ff34e3da148ab4eb |
|
MD5 | 7b3a0e6030052e10a8609f42c643979d |
|
BLAKE2b-256 | 8c14a417138b1242a9f4b6cc0b67df878104d28ff9e7b4e76fca788e0388f290 |
File details
Details for the file home_run-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: home_run-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81bb87e4f90fc32b4d5e5d817d88e3273e7eb7c81ed60cd90305e24ce395e570 |
|
MD5 | 5bcb4e47acf4bdac082615f2de7068e0 |
|
BLAKE2b-256 | c07ee598799efa7831acb56776d69a2bdeef99fc852ef27fce2c4f38d800fbbe |