Skip to content

4Quant/meta

 
 

Repository files navigation

A meta crawler for PACS

Build Status

Purpose

This web application lets the user search through a PACS meta data. The data needs to be stored on a Apache Solr instance.

Running the application

Installation

To run the it, python 3.5 is needed. To manage the python environment Anaconda should be used.

Python libraries needed are:

  • Flask
  • requests

Configuration

There is a settings.py file which holds all configuration options to setup

On the same level as meta, doc and so on directory called instance should be created with a file called config.cfg. This holds all instance specifig configuration options which should not be overwritten by updates. An example would be:

DEBUG=False
# Don't show transfer and download options
DEMO=True
SOLR_HOSTNAME='solr'
SOLR_CORE_NAME='grouping'

Run

To run the application run

python runserver.python

this will also automatically reload on changes made. The application will the accessible on port 5000 with default settings. Another option is to use nodemon which also allows to reload on changes. The advantage is that even with compile errors the nodemon is still able to reload while the flask dev server crashes and needs to be manually restarted. To run with nodemon run

nodemon --exec "python" runserver.py

Run tests and coverage

python -m unittest
coverage run --source=. -m unittest

# generate console reports
coverage report

# generate html reports
coverage html -d coverage

About

Webinterface to Apache Solr to make the PACS searchable

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 54.2%
  • JavaScript 19.1%
  • Python 14.1%
  • HTML 10.5%
  • CSS 1.9%
  • Shell 0.1%
  • Nginx 0.1%