niprov.locationfactory module

class niprov.locationfactory.LocationFactory(dependencies=<niprov.dependencies.Dependencies object>)

Bases: object

Creates Location objects.

completeString(locationString)

Validates a location string.

If locationString only contains a filesystem path, computer info will be added.

fromString(locationString)

Creates a Location object.

Parameters:locationString (str) – String with path and optionally computer id.