bbc/nmos-registration

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

Homepage:

Size: 63

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NMOS Registry Registration API Service

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/].

Installing with Python

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
Running the Registration API
Non-blocking

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()
Blocking

It is also possible to run Registration API in a blocking manner:

 nmosregistration.registryaggregatorservice import RegistryAggregatorService

ice = RegistryAggregatorService()
ice.run() # Runs forever
Tests

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

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.