Skip to content

bitem-heg-geneve/ebiodiv-matching-backend

Repository files navigation

Context

See bitem-heg-geneve/ebiodiv-matching-frontend#44

This backend saves the occurrence relations including when the user has not made a choice.

How to run

pip install -e .
ebiodiv-backend --production  # or python -m ebiodiv --production

Create a config.ini file to configured the server:

[server]
root_path=/
host=localhost
port=8888
default_proc_name=ebiodiv
# worker=8
# ssl_keyfile=
# ssl_certfile=

[datasource]
url=https://tb.plazi.org/GgServer/gbifOccLinkData/
timeout=180

Development

usage: python -m ebiodiv [-h] [--production | --profile PROFILE_FILENAME]

optional arguments:
  -h, --help            show this help message and exit
  --production          Run in production mode
  --profile PROFILE_FILENAME
                        Run cProfile in developpment mode and record the a .prof file

debug

Without either option --production or option --profile option, the server starts in debug mode: enable auto-reload (content referenced by .gitignore is ignored).

profiling

pip install snakeviz
ebiodiv-backend --profile test.prof
snakeviz ./test.prof

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published