fastr Package¶
fastr Package¶
Initialize self. See help(type(self)) for accurate signature.
-
fastr.__init__.__dir__() → list¶ default dir() implementation
-
fastr.__init__.__format__()¶ default object formatter
-
fastr.__init__.__init_subclass__()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
fastr.__init__.__new__()¶ Create and return a new object. See help(type) for accurate signature.
-
fastr.__init__.__reduce__()¶ helper for pickle
-
fastr.__init__.__reduce_ex__()¶ helper for pickle
-
fastr.__init__.__sizeof__() → int¶ size of object in memory, in bytes
-
fastr.__init__.__subclasshook__()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
exceptions Module¶
This module contains all Fastr-related Exceptions
-
exception
fastr.exceptions.FastrAttributeError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,AttributeErrorAttributeError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrCannotChangeAttributeError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorAttempting to change an attribute of an object that can be set only once.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrCardinalityError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorThe description of the cardinality is not valid.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrCollectorError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorCannot collect the results from a Job because of an error
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrDataTypeFileNotReadable(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorCould not read the datatype file.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrDataTypeMismatchError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorWhen using a DataType as the key for the DataTypeManager, the DataTypeManager found another DataType with the same name already in the DataTypeManager. The means fastr has two version of the same DataType in the system, which should never happen!
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrDataTypeNotAvailableError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorThe DataType requested is not found by the fastr system. Typically this means that no matching DataType is found in the DataTypeManager.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrDataTypeNotInstantiableError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorThe base classes for DataTypes cannot be instantiated and should always be sub-classed.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrDataTypeValueError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorThis value in fastr did not pass the validation specificied for its DataType, typically means that the data is missing or corrupt.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrError(*args, **kwargs)[source]¶ Bases:
ExceptionThis is the base class for all fastr related exceptions. Catching this class of exceptions should ensure a proper execution of fastr.
-
__init__(*args, **kwargs)[source]¶ Constructor for all exceptions. Saves the caller object fullid (if found) and the file, function and line number where the object was created.
-
__module__= 'fastr.exceptions'¶
-
__weakref__¶ list of weak references to the object (if defined)
-
-
exception
fastr.exceptions.FastrErrorInSubprocess(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrExecutionErrorEncountered an error in the subprocess started by the execution script
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrExecutableNotFoundError(executable=None, *args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrExecutionErrorThe executable could not be found!
-
__init__(executable=None, *args, **kwargs)[source]¶ Constructor for all exceptions. Saves the caller object fullid (if found) and the file, function and line number where the object was created.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrExecutionError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorBase class for all fastr execution related errors
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrFileNotFound(filepath, message=None)[source]¶ Bases:
fastr.exceptions.FastrErrorCould not find an expected file
-
__init__(filepath, message=None)[source]¶ Constructor for all exceptions. Saves the caller object fullid (if found) and the file, function and line number where the object was created.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrIOError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,OSErrorIOError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
__weakref__¶ list of weak references to the object (if defined)
-
-
exception
fastr.exceptions.FastrImportError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,ImportErrorImportError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
__weakref__¶ list of weak references to the object (if defined)
-
-
exception
fastr.exceptions.FastrIndexError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,IndexErrorIndexError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrIndexNonexistent(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrIndexErrorThis is an IndexError for samples requested from a sparse data array. The sample is not there but is probably not there because of sparseness rather than being a missing sample (e.g. out of bounds).
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrKeyError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,KeyErrorKeyError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrLockNotAcquired(directory, message=None)[source]¶ Bases:
fastr.exceptions.FastrErrorCould not lock a directory
-
__init__(directory, message=None)[source]¶ Constructor for all exceptions. Saves the caller object fullid (if found) and the file, function and line number where the object was created.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrLookupError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorCould not find specified object in the fastr environment.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrMountUnknownError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorTrying to access an undefined mount
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNetworkMismatchError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorTwo interacting objects belong to different fastr network.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNetworkUnknownError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorReference to a Tool that is not recognised by the fastr system. This typically means the specific id/version combination of the requested tool has not been loaded by the ToolManager.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNoValidTargetError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorCannot find a valid target for the tool
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNodeAreadyPreparedError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrStateErrorA attempt is made at preparing a NodeRun for the second time. This is not allowed as it would wipe the current execution data and cause data-loss.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNodeNotPreparedError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrStateErrorWhen trying to access executation data of a NodeRun, the NodeRun must be prepare. The NodeRun has not been prepared by the execution, so the data is not available!
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNodeNotValidError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrStateErrorA NodeRun is not in a valid state where it should be, typically an invalid NodeRun is passed to the executor causing trouble.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNotExecutableError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrExecutionErrorThe command invoked by subprocess is not executable on the system
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrNotImplementedError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,NotImplementedErrorThis function/method has not been implemented on purpose (e.g. should be overwritten in a sub-class)
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrOSError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,OSErrorOSError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
__weakref__¶ list of weak references to the object (if defined)
-
-
exception
fastr.exceptions.FastrObjectUnknownError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorReference to a Tool that is not recognised by the fastr system. This typically means the specific id/version combination of the requested tool has not been loaded by the ToolManager.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrOptionalModuleNotAvailableError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrNotImplementedErrorA optional modules for Fastr is needed for this function, but is not available on the current python installation.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrOutputValidationError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrExecutionErrorAn output of a Job does not pass validation
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrParentMismatchError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorTwo interactive objects have different parent where they should be the same
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrPluginCapabilityNotImplemented(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrNotImplementedErrorA plugin did not implement a capability that it advertised.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrPluginNotAvailable(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorIndicates that a requested Plugin was not found on the system.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrPluginNotLoaded(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrStateErrorThe plugin was not successfully loaded. This means the plugin class cannot be instantiated.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrResultFileNotFound(filepath, message=None)[source]¶ Bases:
fastr.exceptions.FastrFileNotFound,fastr.exceptions.FastrExecutionErrorCould not found the result file of job that finished. This means the executionscript process was killed during interruption. Generally this means a scheduler killed it because of resource shortage.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrScriptNotFoundError(interpreter=None, script=None, paths=None, *args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrExecutionErrorScript could not be found
-
__init__(interpreter=None, script=None, paths=None, *args, **kwargs)[source]¶ Constructor for all exceptions. Saves the caller object fullid (if found) and the file, function and line number where the object was created.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrSerializationError(message, serializer, original_exception=None)[source]¶ Bases:
fastr.exceptions.FastrErrorThe serialization encountered a serious problem
-
__init__(message, serializer, original_exception=None)[source]¶ Constructor for all exceptions. Saves the caller object fullid (if found) and the file, function and line number where the object was created.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrSerializationIgnoreDefaultError(message, serializer, original_exception=None)[source]¶ Bases:
fastr.exceptions.FastrSerializationErrorThe value and default are both None, so the value should not be serialized.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrSerializationInvalidDataError(message, serializer, original_exception=None)[source]¶ Bases:
fastr.exceptions.FastrSerializationErrorEncountered data to serialize that is invalid given the serialization schema.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrSerializationMethodError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorThe desired serialization method does not exist.
-
__module__= 'fastr.exceptions'¶
-
Bases:
fastr.exceptions.FastrKeyErrorCould not find the Sink data for the desire sink.
-
exception
fastr.exceptions.FastrSizeInvalidError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorThe given size cannot be valid.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrSizeMismatchError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorThe size of two object in fastr is not matching where it should.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrSizeUnknownError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorThe size of object is not (yet) known and only a theoretical estimate is available at the moment.
-
__module__= 'fastr.exceptions'¶
-
Bases:
fastr.exceptions.FastrKeyErrorCould not find the Source data for the desire source.
-
exception
fastr.exceptions.FastrStateError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorAn object is in an invalid/unexpected state.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrSubprocessNotFinished(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrExecutionErrorEncountered an error before the subprocess call by the execution script was properly finished.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrToolNotAvailableError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError- The tool used is not available on the current platform (OS and architecture
combination) and cannot be used.
-
__module__= 'fastr.exceptions'¶
-
exception
fastr.exceptions.FastrToolTargetNotFound(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorCould not determine the location of the tools target binary/script. The tool cannot be used.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrToolUnknownError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorReference to a Tool that is not recognised by the fastr system. This typically means the specific id/version combination of the requested tool has not been loaded by the ToolManager.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrToolVersionError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrErrorVersion mismatch, usually the installed tool version and version requested by the network mismatch.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrTypeError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,TypeErrorTypeError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrUnknownURLSchemeError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrKeyErrorFastr encountered a data URL with a scheme that was not recognised by the IOPlugin manager.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrValueError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrError,ValueErrorValueError in the fastr system
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrVersionInvalidError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrValueErrorThe string representation of the version is malformatted.
-
__module__= 'fastr.exceptions'¶
-
-
exception
fastr.exceptions.FastrVersionMismatchError(*args, **kwargs)[source]¶ Bases:
fastr.exceptions.FastrValueErrorThere is a mismatch between different parts of the Fastr environment and integrity is compromised.
-
__module__= 'fastr.exceptions'¶
-
-
fastr.exceptions.get_message(exception)[source]¶ Extract the message from an exception is a safe manner
- Parameters
exception (BaseException) – exception to extract from
- Returns
message string
- Return type
version Module¶
This module keeps track of the version of the currently used Fastr framework. It can check its version from mercurial or a saved file
-
fastr.version.get_hg_info()[source]¶ Read information about the current mercurial branch and revision
Subpackages¶
- api Package
- core Package
- data Package
- datatypes Package
- execution Package
- helpers Package
helpersPackagechecksumModuleclasspropertyModuleclear_pycsModuleconfigmanagerModuleeventsModulefilesynchelperModuleiohelpersModulejsonschemaparserModulelazy_moduleModulelockfileModuleprocutilsModulereportModulerest_generationModuleschematotableModuleshellescapeModulesysinfoModulexmltodictModule
- planning Package
- plugins Package
- test Package
- utils Package
- web Package