Skip to main content

A BRAPI server instance that functions as a proxy to merge and combine endpoints from existing BRAPI services

Project description

BrAPI proxy solution

A BrAPI server instance that functions as a proxy to merge and combine endpoints from existing BrAPI services.

Installation

  • Step 1: Install BrAPI Proxy
    • To install the BrAPI Proxy, run the following command:
      pip install brapi_proxy
      
  • Step 2: Test the Installation (Optional)
    • To ensure that the installation was successful, you can run the BrAPI Proxy in demo mode with the following command:
      brapi_proxy --demo
      
      This will start a service on port 8080 from a configuration based on the BrAPI Test Server

Usage

  • Step 1: Create Configuration File

    • Create a file named config.ini.
    • Populate this file with the necessary configuration settings.
  • Step 2: Start the Service

    • Start the service by running the command:
      brapi_proxy
      
    • If the config.ini file is located outside the working directory, use the --config option to specify its location. For example:
      brapi_proxy --config /path/to/config.ini
      

Currently Supported

BrAPI Versions

  • version 2.1

Endpoints

  • BrAPI-Core
    • /commoncropnames
    • /lists
    • /lists/{listDbId}
    • /locations
    • /locations/{locationDbId}
    • /people
    • /people/{personDbId}
    • /programs
    • /programs/{programDbId}
    • /seasons
    • /seasons/{seasonDbId}
    • /studies
    • /studies/{studyDbId}
    • /trials
    • /trials/{trialDbId}
  • BrAPI-Phenotyping
    • /ontologies
    • /ontologies/{ontologyDbId}
  • BrAPI-Genotyping
    • /allelematrix
    • /callsets
    • /callsets/{callSetDbId}
    • /plates
    • /plates/{plateDbId}
    • /references
    • /references/{referenceDbId}
    • /referencesets
    • /referencesets/{referenceSetDbId}
    • /samples
    • /samples/{sampleDbId}
    • /variants
    • /variants/{variantDbId}
    • /variantsets
    • /variantsets/{variantSetDbId}
  • BrAPI-Germplasm
    • /breedingmethods
    • /breedingmethods/{breedingMethodDbId}

ToDo

  • Implement additional endpoints

Structure Configuration File

Create a config.ini file with the necessary configuration settings.

Basic Configuration

Include at least the brapi section:

[brapi]
port=8080
host=0.0.0.0
location=/
threads=4
debug=False
version=2.1

Optional: Serverinfo

Optionally, provide serverinfo entries:

contactEmail=noreply@wur.nl
documentationURL=https://github.com/matthijsbrouwer/brapi-proxy/
location=Wageningen
organizationName=Wageningen University and Research
organizationURL=https://www.plantbreeding.wur.nl/
serverDescription=Demo-version proxy to combine multiple BrAPI services
serverName=BrAPI-Proxy

Optional: Authorization

Optionally, provide authentication tokens to restrict access in the authorization section:

[authorization]
john=tokenjohn123abc
mary=tokenmary456def

Server Definitions

Within sections prefixed with server., define the underlying servers:

[server.test1]
url=https://test-server.brapi.org/brapi/v2
calls=commoncropnames,variants,allelematrix
authorization=XXXX
prefix.variants=barley:
prefix.variantsets=barley:
prefix.references=barley:
prefix.referencesets=barley:
prefix.callsets=barley:

[server.test2]
url=https://test-server.brapi.org/brapi/v2
calls=commoncropnames,variants,allelematrix
prefix.variants=wheat:
prefix.variantsets=wheat:
prefix.references=wheat:
prefix.referencesets=wheat:
prefix.callsets=wheat:

[server.test3]
url=https://test-server.brapi.org/brapi/v2
calls=samples,studies,plates,callsets,variantsets,referencesets,references

This software has been developed for the AGENT project

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

brapi_proxy-0.0.9.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

brapi_proxy-0.0.9-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file brapi_proxy-0.0.9.tar.gz.

File metadata

  • Download URL: brapi_proxy-0.0.9.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.4

File hashes

Hashes for brapi_proxy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 7984de2583d87b0469ae147032ee555c2a1f5dbe9082022b9cc4fbd259c054b8
MD5 2ad14fee7028407a9713e96b7450317e
BLAKE2b-256 7853a3c28b1776c1c428be285c108ffcfeeb2f2e3a97bac6d6d3d2e84fecfb2b

See more details on using hashes here.

File details

Details for the file brapi_proxy-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: brapi_proxy-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.4

File hashes

Hashes for brapi_proxy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 812a076848de7b14e0873997cfaf746176a3d82b9a744f78117ae12402325bd1
MD5 059cddead05d030f0077080f79854736
BLAKE2b-256 2060942ed541cfeac5ec6dfb7c9d5b08d69fa32980141a59238fdfe12e43fdeb

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