Inheritance diagram of TaurusDeviceNameValidator
class TaurusDeviceNameValidator(*p, **k)[source]

Base class for Device name validators. The namePattern will be composed from URI segments as follows:


Derived classes must provide attributes defining a regexp string for each URI segment (they can be empty strings):

  • scheme

  • authority

  • path

  • query

  • fragment

Additionally, the namePattern resulting from composing the above segments must contain a named group called “devname” (normally within the path segment).

Import from taurus.core.taurusvalidator as:

from taurus.core.taurusvalidator import TaurusDeviceNameValidator
pattern = '^(?P<scheme>%(scheme)s):((?P<authority>%(authority)s)($|(?=[/#?])))?(?P<path>%(path)s)(\\?(?P<query>%(query)s))?(#(?P<fragment>%(fragment)s))?$'