/rest-python

Contains the REDHAWK python implementation of the generic REST API

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

REDHAWK REST Python

Description

Contains the REDHAWK python implementation of the generic REST API

REDHAWK Documentation

REDHAWK Website: www.redhawksdr.org

Copyrights

This work is protected by Copyright. Please refer to the Copyright File for updated copyright information.

License

REDHAWK REST Python is licensed under the GNU Lesser General Public License (LGPL).

Running

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.