Add implementation of SDL in python

Added implementation for the SDL API functions:
* Functions to set, get and remove synchronously key-values from
  SDL storage.
* Functions to set, get and remove synchronously group members from
  SDL storage.
* Functions to acquire, manipulate and release a lock.

Added also simple examples how to use SDL API functions.

Added configuration file for the tox tool to run unittests.

Added configuration file for the tox tool to generate documents.

Added sonar pom and tox hooks to verify code coverage.

Change-Id: I1f12879f725d903397ee8f9e788edf7890db381d
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
diff --git a/ricsdl-package/ricsdl/exceptions.py b/ricsdl-package/ricsdl/exceptions.py
new file mode 100644
index 0000000..41f05af
--- /dev/null
+++ b/ricsdl-package/ricsdl/exceptions.py
@@ -0,0 +1,65 @@
+# Copyright (c) 2019 AT&T Intellectual Property.
+# Copyright (c) 2018-2019 Nokia.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# This source code is part of the near-RT RIC (RAN Intelligent Controller)
+# platform project (RICP).
+#
+
+
+"Exceptions raised by the Shared Data Layer (SDL)."
+
+
+class SdlTypeError(TypeError):
+    """
+    Exception for passing a function argument of wrong type.
+    It is likely that the same request will fail repeatedly. It is advised to investigate the exact
+    reason for the failure from the logs.
+    """
+    pass
+
+
+class SdlException(Exception):
+    """Base exception class for Shared Data Layer (SDL) exceptions."""
+    pass
+
+
+class NotConnected(SdlException):
+    """
+    Exception for SDL not being connected to the database backend.
+    SDL is not connected to the backend data storage and therefore could not deliver the request
+    to the backend data storage. Data in the backend data storage has not been altered.
+    Client is advised to try the operation again later.
+    """
+    pass
+
+
+class BackendError(SdlException):
+    """
+    Exception for request processing failure in SDL database backend.
+    In case of a write type request, data in the backend data storage may or may not have been
+    altered. Client is advised to try the operation again later.
+    """
+    pass
+
+
+class RejectedByBackend(SdlException):
+    """
+    Exception for SDL database backend rejecting the request.
+    Backend data storage rejected the request. In case of a write type request, data in the backend
+    data storage may or may not have been altered. It is likely that the same request will fail
+    repeatedly. It is advised to investigate the exact reason for the failure from the logs.
+    """
+    pass