Skip to main content

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)

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 not yet on PyPi. So, you have to install it by first cloning the repository and then calling pip install -e .

## 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

home_run-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

home_run-0.1.0-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file home_run-0.1.0.tar.gz.

File metadata

  • Download URL: home_run-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for home_run-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e41a4b6ed26c99a0908a8009a8e4f3a4bad39fe7d74fe6eb78b1d7dad313acf
MD5 2a1e37776e6851a46acba99a7583632b
BLAKE2b-256 20552ddd1ef6d3d07d8f58b36e94ff2759e91510c04ee49f3e46c60c2dbcb51a

See more details on using hashes here.

File details

Details for the file home_run-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: home_run-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.8 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for home_run-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3abd12390dcda3c78f90708dc5bdb22cd7d99ede4a9ba8a3350d132d78539705
MD5 b76c25fa07281661882c11b45a30acae
BLAKE2b-256 763a059bbb382c69a3fc0d8bbc03a47acdca58e2387da838f1e0d3715a88220e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page