Code Monkey home page Code Monkey logo

dos-indexd-lambda's Introduction

dos-indexd-lambda

This presents an Amazon Lambda microservice following the Data Object Service(view the OpenAPI description!). It allows data in indexd to be accessed using Data Object Service APIs.

Using the service

A development version of this service is available at https://mkc9oddwq0.execute-api.us-west-2.amazonaws.com/api/ . To make proper use of the service, one can either use cURL or an HTTP client to write API requests following the OpenAPI description.

# Will request the first page of Data Objects from the service.
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{}' 'https://mkc9oddwq0.execute-api.us-west-2.amazonaws.com/api/ga4gh/dos/v1/dataobjects/list'

There is also a Python client available, that makes it easier to use the service from code.

from ga4gh.dos.client import Client
client = Client("https://mkc9oddwq0.execute-api.us-west-2.amazonaws.com/api/")
local_client = client.client
models = client.models
local_client.ListDataObjects(body={}).result()

For more information refer to the Data Object Service.

Development

Status

This software is being actively developed to provide the greatest level of feature parity between DOS and indexd. It also presents an area to explore features that might extend the DOS API. Current development items can be seen in the Issues.

Feature development

The Data Object Service can present many of the features of indexd naturally. This lambda should present a useful client for the latest releases of the indexd API.

In addition, the DOS schemas may be extended to present features available in indexd, but not yet in DOS.

indexd/fence Features

  • Authentication/Authorization
  • Aliases
  • Index management
  • Storage management

DOS Features

  • Bundle listing
    • Associate arbitrary data objects with each other.

Installing and Deploying

The gateway portion of the AWS Lambda microservice is provided by chalice. So to manage deployment and to develop you'll need to install chalice.

Once you have installed chalice, you can download and deploy your own version of the service.

pip install chalice
git clone https://github.com/DataBiosphere/dos-indexd-lambda.git
cd dos-indexd-lambda
chalice deploy

Chalice will return a HTTP location that you can issue DOS requests to. You can then use HTTP requests in the style of the Data Object Service.

Accessing data using DOS client

A Python client for the Data Object Service is made available here. Install this client and then view the example in Example Usage. This notebook will guide you through basic read access to data in indexd via DOS.

Issues

If you have a problem accessing the service or deploying it for yourself, please head over to the Issues to let us know!

TODO

  • Validation
  • Error handling
  • Aliases
  • Filter by URL

dos-indexd-lambda's People

Contributors

david4096 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.