Installation
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
Now you can install and run the rfmetadata and query the data.
python3 -m pip install rfmetadata
rfmetadata
See the server’s response when the displayer application queries it:
If you don’t run the server and you try to search in the displayer, you will get errors:
Running PyTest
python -m pip install -e . rfserver[test]
pytest