Contains the REDHAWK python implementation of the generic REST API
REDHAWK Website: www.redhawksdr.org
This work is protected by Copyright. Please refer to the Copyright File for updated copyright information.
REDHAWK REST Python is licensed under the GNU Lesser General Public License (LGPL).
For Development/Test environments there are scripts to automatically create a local environment and run the server.
./setup.sh install
./start.sh --port=<desired_port>
The tools above will create a virtual environment in the current directory.
For a more permanent solution, consult the requirements.txt
and run the following command as a service:
./pyrest.py --port=<desired_port>
supervisord
is a common tool for running commands as a service and a sample configuration snippet
can be found at deploy/rest-python-supervisor.conf
.
Once running the REST Interface can be tested at http://localhost:<desired_port>/rh/rest/domains
.