Name: nmos-registration
Owner: BBC
Description: AMWA NMOS IS-04 Registration API Service
Created: 2017-10-05 18:21:10.0
Updated: 2018-03-29 20:03:34.0
Pushed: 2018-03-23 13:57:27.0
Size: 63
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Provides a service implementing the NMOS Registration API, specified in AMWA IS-04.
The API will present itself at [http://localhost:8235/x-nmos/registration/].
Before installing this library please make sure you have installed the NMOS Common Library, on which this API depends. The registration API also requires etcd to be installed. For debain distributions this can be installed using apt:
apt-get install etcd
Once all dependencies are satisfied run the following commands to install the API:
install setuptools
python setup.py install
Run the following script to start the Registration API in a non-blocking manner, and then stop it again at a later point:
from nmosregistration.registryaggregatorservice import RegistryAggregatorService
service = RegistryAggregatorService()
service.start()
# Do something else until ready to stop
service.stop()
It is also possible to run Registration API in a blocking manner:
nmosregistration.registryaggregatorservice import RegistryAggregatorService
ice = RegistryAggregatorService()
ice.run() # Runs forever
Unit tests are provided. Currently these have hard-coded dummy/example hostnames, IP addresses and UUIDs. You will need to edit the Python files in the test/ directories to suit your needs and then “make test”.
Debian packaging files are provided for internal BBC R&D use. These packages depend on packages only available from BBC R&D internal mirrors, and will not build in other environments. For use outside the BBC please use python installation method.