Skip to content
Snippets Groups Projects
Select Git revision
  • b17407360c6525d0ccd0c3cdcc5b4a4004babe54
  • master default protected
  • interactive
  • v1.7.15
  • v1.7.14
  • v1.7.13
  • v1.7.12
  • v1.7.11
  • v1.7.10
  • v1.7.9
  • v1.7.8
  • v1.7.7
  • v1.7.6
  • v1.7.5
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0
  • v1.6.2
  • v1.6.1
  • v1.6.0
  • v1.5.2
23 results

beat.backend.python

user avatar
Philip Abbet authored
b1740736
History

Biometrics Evaluation and Testing Platform

This package contains the source code for a python-based backend for the BEAT platform.

Installation

Really easy, with zc.buildout:

$ python bootstrap-buildout.py
$ ./bin/buildout

These 2 commands should download and install all non-installed dependencies and get you a fully operational test and development environment.

Note

If you are on the Idiap filesystem, you may use /idiap/project/beat/environments/staging/usr/bin/python to bootstrap this package instead. It contains the same setup deployed at the final BEAT machinery.

Documentation

To build the documentation, just do:

$ ./bin/sphinx-apidoc --separate -d 2 --output=doc/api beat/backend/python
$ ./bin/sphinx-build doc sphinx

Testing

After installation, it is possible to run our suite of unit tests. To do so, use nose:

$ ./bin/nosetests -sv

If you want to skip slow tests (at least those pulling stuff from our servers) or executing lengthy operations, just do:

$ ./bin/nosetests -sv -a '!slow'

To measure the test coverage, do the following:

$ ./bin/nosetests -sv --with-coverage --cover-package=beat.backend.python

To produce an HTML test coverage report, at the directory ./htmlcov, do the following:

$ ./bin/nosetests -sv --with-coverage --cover-package=beat.backend.python --cover-html --cover-html-dir=htmlcov

Our documentation is also interspersed with test units. You can run them using sphinx:

$ ./bin/sphinx -b doctest doc sphinx