Installation

rfserver is available on PyPI hence you can use pip to install it.

It is recommended to perform the installation in an isolated python virtual environment (env). You can create and activate an env using any tool of your preference (ie virtualenv, venv, pyenv).

Assuming you have ‘activated’ a python virtual environment:

python -m pip install rfserver

Simple Use Case

This application is the server for the rfmetadata application. The rfserver application creates the database for the user, populates it with dummy data, queries it and sends the response through the flask api.

First install the rfserver.

python -m pip install rfserver

Then start the rfserver to allow the client to query the database.

rfserver
running the server.

Now you can install and run the rfmetadata and query the data.

python3 -m pip install rfmetadata
rfmetadata
running the displayer.

See the server’s response when the displayer application queries it:

server responses.

If you don’t run the server and you try to search in the displayer, you will get errors:

rfmetada without the server.

Running PyTest

PyTest can be run from command line.
python -m pip install -e . rfserver[test]
pytest