Git Product home page Git Product logo

rdmo-plugins-radar's Introduction

rdmo-plugins-radar

This repo implements several plugins to connect RDMO with RADAR:

  • rdmo_radar.exports.RadarExport, which lets users download their RDMO datasets as RADAR-XML metadata files,
  • rdmo_radar.exports.RadarExportProvider, which lets push their RDMO datasets directly to RADAR,
  • rdmo_radar.imports.RadarImport, which lets users import RADAR-XML metadata files (exported from RADAR) into RDMO.

The RadarExportProvider plugin uses OAUTH 2.0, so that users use their respective accounts in both systems.

Setup

Install the plugin in your RDMO virtual environment using pip (directly from GitHub):

pip install git+https://github.com/rdmorganiser/rdmo-plugins-radar

For the RadarExport, add the plugin to PROJECT_EXPORTS in config/settings/local.py:

PROJECT_EXPORTS += [
    ('radar-xml', _('as RADAR XML'), 'rdmo_radar.exports.RadarExport')
]

For the RadarExportProvider an App has to be registered with RADAR. Please contact the RADAR support for the nessesary steps. The radar_url, the client_id, the client_secret, and the redirect_uri need to be configured in config/settings/local.py, e.g. for the RADAR test service:

RADAR_PROVIDER = {
    'radar_url': 'https://test.radar-service.eu',
    'client_id': '',
    'client_secret': '',
    'redirect_uri': 'https://rdmo.example.com/services/oauth/radar/callback/'
}

Then, add the plugin to PROJECT_EXPORTS in config/settings/local.py:

PROJECT_EXPORTS += [
    ('radar', _('directly to RADAR'), 'rdmo_radar.exports.RadarExportProvider')
]

For the RadarImport, add the plugin to PROJECT_IMPORTS in config/settings/local.py:

PROJECT_IMPORTS += [
    ('radar', _('from RADAR XML'), 'rdmo_radar.imports.RadarImport')
]

Usage

The plugins apear as export/import options on the RDMO project overview.

The export provider fetches the available RADAR workspaces, and then lets the user choose which dateset should be archived in which workspace. The plugin creates a RADAR datasets. The actual data can be uploaded through the RADAR interface.

rdmo-plugins-radar's People

Contributors

jochenklar avatar afuetterer avatar triole avatar henningtimm avatar mypydavid avatar

Watchers

 avatar  avatar  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.