Coder Social home page Coder Social logo

ens-lgil / pgs_template_validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pgscatalog/pgs_template_validator

0.0 2.0 0.0 1.36 MB

Standalone Python validator for the PGS Catalog Curation Template (Metadata)

License: Apache License 2.0

Python 100.00%

pgs_template_validator's Introduction

PGS Catalog template validator

Standalone Python validator for the PGS Catalog Curation Template (Metadata)

For more information about the PGS Catalog submission and its template, go to this page: https://www.pgscatalog.org/submit/

Installation

pip install -r requirements.txt

Example of command

As command line

python pgs_metadata_validator.py -f <my_template_file>.xlsx

As REST API endpoint

To launch the REST API (Flask)

python main.py

and then send the request to validate the file, e.g. with curl:

curl -X POST -H "Content-Type: application/json" -d "{ \"filename\": \"<my_template_file>.xlsx\" }" http://127.0.0.1:5000/validate

Deploy it as a REST API service on Google Cloud (App Engine)

Only possible if you already have a Google Cloud account!

To deploy it:

  • Rename app.yaml_template to app.yaml
  • Update app.yaml by replacing the variable(s) between <> with the right value(s)
  • Install the Cloud SDK if you don't have it
  • Run gcloud app deploy in this repository

pgs_template_validator's People

Contributors

ens-lgil 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.